Page 1 of 1

check_xi_NCPA issue with process and count

Posted: Tue Jul 27, 2021 1:49 pm
by wjoyner
-t 'token key' -P 5693 -M 'processes': -q 'name=Fax Integator' -w 60 -c 100

A few issues:

1. what is the syntax to make it work for process count? I cannot seem to find it anywhere.
2. When you are monitoring a process how does one verify the actual name, sounds silly but its not like monitoring a service where the name is more obvious.

Thank you for any help.

Re: check_xi_NCPA issue with process and count

Posted: Tue Jul 27, 2021 3:20 pm
by dchurch
The syntax for checking for running processes is such:

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H <IP> -t 'secretpassword' -M 'processes' -w 4: -c 3: -q 'cmd=Firefox,match=search'
If 4 or more Firefox.exe processes are running, it'll return an OK.
If 3 are running, it's a warning.
If 2 or less are running, it's a critical.

The cmd= matches the path of the .exe file instead of the "Name" of the process, which could be anything.