Page 2 of 2

Re: websphere

Posted: Thu Jun 11, 2015 8:15 am
by ariarlet
yes, i know

these checks do not serve me

Re: websphere

Posted: Thu Jun 11, 2015 2:29 pm
by jdalrymple
jdalrymple wrote:Will you have a predictable number?

Code: Select all

check_procs -w 10:100 -c 9:1000 -C websphere
This will provide a warning alert if you have fewer than 10 or more than 100 websphere processes, and it will provide a critical alert if you have fewer than 9 or more than 1000.

Would this work?
Maybe everything took a wild turn somewhere that I didn't recognize, did this get answered?
ariarlet wrote:There is no way that this works just putting the name of the service?
Yes.

Code: Select all

[root@localhost libexec]# ./check_procs -w 10:100 -c 9:1000 -C httpd
PROCS OK: 13 processes with command name 'httpd' | procs=13;10:100;9:1000;0;
[root@localhost libexec]# ./check_procs -w 15:100 -c 9:1000 -C httpd
PROCS WARNING: 13 processes with command name 'httpd' | procs=13;15:100;9:1000;0;
[root@localhost libexec]# ./check_procs -w 20:100 -c 15:1000 -C httpd
PROCS CRITICAL: 13 processes with command name 'httpd' | procs=13;20:100;15:1000;0;