Hi all. It’s my first post.
I need to monitor if a certain process is running at least once in a remote linux machine. I can do it either with check_by_ssh or NRPE.But for the alarming procedure if the process is not running and correct me if I am wrong…
NRPE: When the process is not running the NRPE togeter with the check_procs plugin will generate a change of state to CRITICAL in the service. and also, when nagios is not able to communicate with the remote maching.
check_by_ssh: will only generate a change of state in the remote service when plugin is not able to connect. If the process is not running it will show OK but with the information that the process is not running (check by ssh will execute “ps fax | grep process | grep -v grep | wc -l”) So it will just alert me when nagios is not able to communicate via SSH.
Is this right? Can it be done other way?
Thank you in advance.