Page 1 of 1

check_procs elapsed time not working

Posted: Tue Mar 09, 2021 9:11 am
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?