Review the options above for accuracy. If they look okay, type'make all' to compile the NRPE daemon and client or type'make' to get a list of make options.
也可以使用 make 命令列出 make 参数对应的功能:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
root@instance-2UkeKOzr:/usr/local/src/nrpe-4.0.2# make
Please enter make [option] where [option] is one of:
all builds nrpe and check_nrpe nrpe builds nrpe only check_nrpe builds check_nrpe only install-groups-users add the users and groupsif they do not exist install install nrpe and check_nrpe install-plugin install the check_nrpe plugin install-daemon install the nrpe daemon install-config install the nrpe configuration file install-inetd install the startup files for inetd, launchd, etc. install-init install the startup files for init, systemd, etc.
5.接下来依次执行 make all、make install、make install-plugin、make install-config 以及 make install-init:
root@instance-2UkeKOzr:/usr/local/src/nrpe-4.0.2# systemctl status nrpe.service ● nrpe.service - Nagios Remote Plugin Executor Loaded: loaded (/lib/systemd/system/nrpe.service; disabled; vendor preset: enabled) Active: active (running) since Fri 2024-05-10 21:07:16 CST; 8s ago Docs: http://www.nagios.org/documentation Main PID: 730499 (nrpe) Tasks: 1 (limit: 4661) Memory: 816.0K CPU: 11ms CGroup: /system.slice/nrpe.service └─730499 /usr/local/nrpe/bin/nrpe -c /usr/local/nrpe/etc/nrpe.cfg -f
May 10 21:07:16 instance-2UkeKOzr systemd[1]: Started Nagios Remote Plugin Executor. May 10 21:07:16 instance-2UkeKOzr nrpe[730499]: Starting up daemon May 10 21:07:16 instance-2UkeKOzr nrpe[730499]: Server listening on 0.0.0.0 port 5666. May 10 21:07:16 instance-2UkeKOzr nrpe[730499]: Server listening on :: port 5666. May 10 21:07:16 instance-2UkeKOzr nrpe[730499]: Listening for connections on port 5666 May 10 21:07:16 instance-2UkeKOzr nrpe[730499]: Allowing connections from: 127.0.0.1,::1
checking for Kerberos include files... configure: WARNING: could not find include files checking for pkg-config... no checking for SSL headers... configure: error: Cannot find ssl headers