Monitoring my Nagios

Hi!

I have problem to monitoring my own nagios.

In the cofig file /usr/local/nagios/etc/nrpe.cfg i have this:

command[check_disk2]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p $ARG1$

when i execute this: /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 -c check_disk2 -a /backup/

the result is: CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.

and the log show:

Jun 22 18:04:13 nagios nrpe[9446]: Error: Request contained command arguments!
Jun 22 18:04:13 nagios nrpe[9446]: Client request was invalid, bailing out…

what’s the problem???
thanks!

why on earth are you using nrpe on the local box?!?!? :shock:
local checks are there exactly for this…

i would like to use this commands in the shell of my server nagios.
Is it possible or not???
I don’t understand your question… (on the local box!!!)

nrpe and nsca are used to execute local checks on remote boxes… you need the nrpe daemon to be running and i don’t see much sense in using nrpe on the localhost…

to monitor nagios itself you may check with ps -ef if the nagios process is runnning or run “/etc/init.d/nagios status”… or better have two separate boxes check each other if the nagios process is running… this would then require nrpe or nsca… but not the single host to check itself.

Luca