Anyone happen to have a command to do this?
Thanks
JJ
Anyone happen to have a command to do this?
Thanks
JJ
what about an snmp script? or a check_http looking for the “whooops! nagios is not running” webpage…
Luca
Use check_procs on the remote computer and have it send the check results via nsca to the central nagios server as a passive check.
define service{
use generic-service
host_name test
service_description Nagios-Is-Running
check_command check_procs2!1:6!"/export/home/nagios/bin/nagios -d /export/home/nagios/etc/nagios.cfg"
define command{
command_name check_procs2
command_line $USER1$/check_procs -c $ARG1$ -a $ARG2$
}
I aplogize for my ignorance first and foremost.
Suppose computer A wants to check if computer B is running nagios.
Should this change of the config file happen to A, B or both?
I added this to computer A, and get this warning on the site:
System call sent warnings to stderr
define command{
command_name check_procs2
command_line $USER1$/check_procs -c $ARG1$ -a $ARG2$
}
First, type
/usr/local/nagios/libexec/check_procs --help
You will notice, that there is NO PLACE to make an entry for a remote host, so it would be impossible to use this, and many other plugins like this one, to make checks on remote hosts.
If you are running nagios on computer A and B, then please do as instructed in my first reply. Perform the check on computer B’s nagios setup, and pass the information to Computer A as a passive check.