check_procs time elapsed

Aaron McKinnon mckinnon at caltech.edu
Fri Feb 13 19:03:32 CET 2009


I'm not getting the behavior I'd expect from some tests using 
check_procs for elapsed time. What I'm trying to accomplish is look for 
a process (string) and alert if it's been running for X time or more 
(from start time). For example:

./check_procs -m ELAPSED -a 'sshd' -w 0 -c 2

Time according to the man page is in seconds, so that should have sshd 
go critical:

# ./check_procs -m ELAPSED -a 'sshd' -w 0 -c 2
ELAPSED OK: 5 processes with args 'sshd'

That didn't work so well... All of my sshd processes are *old* at this 
point. Any idea what I'm missing?

-Aaron





------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list