I’m trying to set up a command to check for running processes using nagios. I create a check command named ‘check_procs’ with the command line:
Then i set up a service check named SpamAssassin with the arguments:
When there is an instance of the SpamAssassin program running, this check always fails. When i run it on the command line like so:
I get the result: PROCS CRITICAL: 0 processes with command name ‘spamd’
When i do a manual check using the following command line:
I get the correct result:
Is this a bug in check_procs? Or am I executing it incorrectly.
Any help would be greatly appreciated!