Page 1 of 1

Nagios still monitoring

Posted: Tue Dec 30, 2014 1:14 pm
by mircica3d
Hy,
I install nagios core on centos and nrpe and plugin on remote server. Nagios core working but when i stop nrpe service on remote computer nagios still ok status from remote server for http, ssh, and curent user. Why?
Thanks and sory for bad english

Re: Nagios still monitoring

Posted: Tue Dec 30, 2014 1:18 pm
by mircica3d
ex for checl load:
define service {
use generic-service
host_name printpliante.ro
service_description Current Load
check_command check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
}

Re: Nagios still monitoring

Posted: Tue Dec 30, 2014 2:46 pm
by abrist
mircica3d wrote:define service {
use generic-service
host_name printpliante.ro
service_description Current Load
check_command check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
}
The command you are using is a local command: "check_local_load"
I bet the command only runs locally. You need to use the check_nrpe command and then call the specific remote command that is configured in your remote host's nrpe.cfg using check_nrpe's -c switch.

See:
http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf

XI specific (but still useful):

http://assets.nagios.com/downloads/nagi ... ios-XI.pdf