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.
NCPA 2.1.3 Process Count Check Problem
NCPA 2.1.3 Process Count Check Problem
You do not have the required permissions to view the files attached to this post.
Re: NCPA 2.1.3 Process Count Check Problem
The "old" syntax won't work. You would need to modify your check to look something like this:
or this:
The new syntax would provide you with more info - not only the process count, but also CPU and Memory.
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'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'Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NCPA 2.1.3 Process Count Check Problem
That works perfectly, even with older client version 2.0.5.
Thank You!
Thank You!
Re: NCPA 2.1.3 Process Count Check Problem
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!
Re: NCPA 2.1.3 Process Count Check Problem
Yes! Thanks!!!