check_xi_NCPA issue with process and count

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
wjoyner
Posts: 32
Joined: Thu Mar 22, 2018 7:28 am

check_xi_NCPA issue with process and count

Post 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.
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: check_xi_NCPA issue with process and count

Post 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.
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Locked