my idea is to check one process alive.
Then i get :
check_procs -C oidmon
But when no oidmon process is up, Nagios tell me:
[nagios@oidovsaadminpreprod ~]$ /usr/local/nagios/libexec/check_procs -C oidmon
PROCS OK: 0 process with command name ‘oidmon’
Then…why nagios is not CRITICAL state?
If the process is not alive why get me a OK state?
How could i say that only if i get 1 process is OK and the other cases are critical?
FORGET this post:
-c 1:1 works
/usr/local/nagios/libexec/check_procs -c 1:1 -C pollo
PROCS CRITICAL: 0 processes with command name ‘pollo’