[Nagiosplug-help] check_procs ?

Brian Ipsen bipsen-sender-67dee9 at andebakken.dk
Mon Nov 3 06:39:20 CET 2003


Hi!

 I'm trying to use check_procs from the plugins package 1.3.1 to chek
whether my ClamAV antivirus daemon is running... Using "ps aux | grep clamd"
I get:

qscand    1508  0.0  0.7 10688 7352 ?        S    14:37   0:00
/usr/sbin/clamd
root      1753  0.0  0.0  3684  556 pts/6    S    14:40   0:00 grep clamd

So to check it, I use:

check_procs -w 1 -c 1 -s S -C clamd

Result:

OK - 1 processes running with STATE = S, command name clamd

Then I stop the clamd process, and use the same check command, now it gives
me:

OK - 0 processes running with STATE = S, command name clamd

Why don't I get a warning or error-condition on this one - have I totally
misunderstood the concept of check_procs ??

regards,

/Brian




More information about the Help mailing list