Page 1 of 1

NCPA 2.1.3 Process Count Check Problem

Posted: Tue Apr 10, 2018 9:04 am
by numje009
The following process count check was working fine in NCPA 2.0.5 on a Windows 2008 Client :

$ /usr/local/nagios/libexec/check_ncpa.py -H ctelpsa345 -t 'xxxxx' -P 5693 -M 'process/TC2m.exe/-c1:'
OK: Process count for processes named tc2m.exe was 1 | 'process_count'=1;;;


But it's no longer working since upgrading to NCPA 2.1.3 :

$ /usr/local/nagios/libexec/check_ncpa.py -H ctelpsa344 -t 'xxxxx' -P 5693 -M 'process/TC2m.exe/-c1:'
The node (process) requested does not exist. You may be trying to access the 'processes' node.

I have attached a copy of the ncpa_listener.log in debug mode.

Re: NCPA 2.1.3 Process Count Check Problem

Posted: Tue Apr 10, 2018 11:06 am
by lmiltchev
The "old" syntax won't work. You would need to modify your check to look something like this:

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H ctelpsa344 -t 'xxxxx' -P 5693 -M 'processes' -c 1: -q 'exe=TC2m,match=regex'
or this:

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H ctelpsa344 -t 'xxxxx' -P 5693 -M 'processes' -c 1: -q 'name=TC2m.exe,match=search'
The new syntax would provide you with more info - not only the process count, but also CPU and Memory.

Re: NCPA 2.1.3 Process Count Check Problem

Posted: Tue Apr 10, 2018 1:43 pm
by numje009
That works perfectly, even with older client version 2.0.5.

Thank You!

Re: NCPA 2.1.3 Process Count Check Problem

Posted: Tue Apr 10, 2018 1:55 pm
by lmiltchev
I am glad I could help! :) Is it ok to lock this topic? Thanks!

Re: NCPA 2.1.3 Process Count Check Problem

Posted: Tue Apr 10, 2018 2:01 pm
by numje009
Yes! Thanks!!!