NCPA 1.7.2 process monitoring
Posted: Fri Oct 24, 2014 2:50 pm
We are trying to monitor a process on a linux host. This is a JBOSS Standalone process. There should only ever be one. However, the setup wants a number of instances for warning and critical.
I need to have ncpa say Critical if the process is not found.
When I try this
I get this
I have tried variations like -1 and nothing is working.
Is there no way for ncpa to check to see if a process is running and alert if it isnt?
I need to have ncpa say Critical if the process is not found.
When I try this
Code: Select all
-M 'process/run.sh/' -c 0Code: Select all
COMMAND: /usr/local/nagios/libexec/check_ncpa.py -H servername -t 'mytoken' -P 5693 -M 'process/run.sh/' -c 0
OUTPUT: CRITICAL: Process count for processes named run.sh was 1c | 'process_count_0'=1c;;0;Is there no way for ncpa to check to see if a process is running and alert if it isnt?