NCPA Plugin process filtering
Posted: Mon May 21, 2018 10:11 am
Hello Nagios Crew,
I am having some issues in finding a way to monitor jboss processes.
My process name is /bin/sh /opt/jboss-4.2.3.GA/bin/run.sh -c <someting> -b 0.0.0.0
The only command I am having success with is:
/usr/local/nagios/libexec/check_ncpa.py -H 192.168.144.118 -t 'token123' -P 5693 -M 'processes' -q 'name=run.sh' -c1:
I have not found a way to tie the run.sh to the >someting> string.
I tied:
/usr/local/nagios/libexec/check_ncpa.py -H 192.168.144.118 -t 'token123' -P 5693 -M 'processes' -q 'name=run.sh,combiner=and,match=<something>,check=true' -c1:
But it appears to just get the process run.sh ignoring the rest.
Can you give me any sugetions on how to do this and if there is a reference with examples?
Thankyou
Sandro
I am having some issues in finding a way to monitor jboss processes.
My process name is /bin/sh /opt/jboss-4.2.3.GA/bin/run.sh -c <someting> -b 0.0.0.0
The only command I am having success with is:
/usr/local/nagios/libexec/check_ncpa.py -H 192.168.144.118 -t 'token123' -P 5693 -M 'processes' -q 'name=run.sh' -c1:
I have not found a way to tie the run.sh to the >someting> string.
I tied:
/usr/local/nagios/libexec/check_ncpa.py -H 192.168.144.118 -t 'token123' -P 5693 -M 'processes' -q 'name=run.sh,combiner=and,match=<something>,check=true' -c1:
But it appears to just get the process run.sh ignoring the rest.
Can you give me any sugetions on how to do this and if there is a reference with examples?
Thankyou
Sandro