websphere

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.
ariarlet
Posts: 61
Joined: Wed Apr 22, 2015 11:04 am

Re: websphere

Post by ariarlet »

yes, i know

these checks do not serve me
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: websphere

Post 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;
Locked