Figure-Nagios
The configuration of the Nagios monitoring server is as follows:
1. Install nrpe
[Root @ UnixHot src] # tar zxvf nrpe-2.12.tar.gz
[Root @ UnixHot nrpe-2.12] #./configure & make all
[Root @ UnixHot nrpe-2.12] # make install-plugin
[Root @ UnixHot nrpe-2.12] # make install-daemon
[Root @ UnixHot nrpe-2.12] # make install-daemon-config
[Root @ UnixHot nrpe-2.12] # make install-xinetd
2. Configure nrep
[Root @ UnixHot nrpe-2.12] # vi/etc/xinetd. d/nrpe
Service nrpe
{
Flags = REUSE
Socket_type = stream
Port = 5666
Wait = no
User = nagios
Group = nagios
Server =/usr/local/nagios/bin/nrpe
Server_args =-c/usr/local/nagios/etc/nrpe. cfg -- inetd
Log_on_failure + = USERID
Disable = no
Only_from = 127.0.0.1 192.168.0.206 192.168.0.155 192.168.0.157
Add the IP address of the host to be monitored in only_from, separated by spaces.