At /home nrpe-plugins.tar.gz should be copied then
tar zxvf nrpe-plugins.tar.gz; mv nagios /usr/local ; mv nrpe.cfg /etc/ ; mv nrpe /usr/local/sbin
configure nrpe.cfg as you like and whatever you want to monitor then,
chmod 644 /etc/nrpe.cfg
in /etc/services add following line at end
nrpe 5666/tcp # NRPE
copy nrpe or create nrpe file as under:
service nrpe
{
disable = no
flags = REUSE
type = UNLISTED
port = 5666
socket_type = stream
wait = no
user = nobody
group = nobody
server = /usr/local/sbin/nrpe
server_args = -n -c /etc/nrpe.cfg --inetd
log_on_failure += USERID
only_from = 127.0.0.1 nagios_server_ip
}
as nrpe plugin is running under xinetd therefore run following command
/usr/sbin/rcxinetd restart
Tuesday, February 2, 2010
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment