check_procs elapsed time not working

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
npolite
Posts: 7
Joined: Fri Sep 02, 2016 9:39 am

check_procs elapsed time not working

Post by npolite »

Hello,

I'm trying to setup a check to alert me if a process runs over an hour. I've been testing using 10 seconds just to verify that the check is working:

/usr/local/nagios/libexec/check_procs -c 10 --metric=ELAPSED -a java
ELAPSED OK: 48 processes with args 'java' | procs=48;;;0; procs_warn=0;;;0; procs_crit=0;;;0;

7265 7092 187:49.07 3.7 0.2 20 0 S 3351m 0 178m 54321 java

As you can see it doesn't appear to be working properly. Is this a bug or am I not interpreting the elapsed time to mean what I think it does?
Locked