monitor process with ncpa 1.8.1

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
doneil326
Posts: 82
Joined: Fri Aug 14, 2015 3:26 pm

monitor process with ncpa 1.8.1

Post by doneil326 »

when i connect to the ncpa agent webinterface with this url "https://server:5693/api/process?name=pm ... critical=1:" i successfully can return a check:


{
"value": {
"returncode": 0,
"stdout": "OK: Process count for processes named pmrepagent was 1c | 'process_count_0'=1c;1:;1:;"
}
}

however when i run this from nagios i get improper warning/critical format. what is the proper format for the command via the check_ncpa.py?

./check_ncpa.py -H server -t password -M "process?name=pmrepagent&warning=1:&critical=1:&check=true" -T 60
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: monitor process with ncpa 1.8.1

Post by lmiltchev »

Try:

Code: Select all

./check_ncpa.py -H server -t 'password' -P 5693 -M 'process/pmrepagent/count' -w 1 -c 1 -T 60
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked