NCPA 2.1.3 Process Count Check Problem

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
numje009
Posts: 3
Joined: Wed May 10, 2017 8:46 am

NCPA 2.1.3 Process Count Check Problem

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA 2.1.3 Process Count Check Problem

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
numje009
Posts: 3
Joined: Wed May 10, 2017 8:46 am

Re: NCPA 2.1.3 Process Count Check Problem

Post by numje009 »

That works perfectly, even with older client version 2.0.5.

Thank You!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA 2.1.3 Process Count Check Problem

Post by lmiltchev »

I am glad I could help! :) Is it ok to lock this topic? Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!
numje009
Posts: 3
Joined: Wed May 10, 2017 8:46 am

Re: NCPA 2.1.3 Process Count Check Problem

Post by numje009 »

Yes! Thanks!!!
Locked