monitor process with ncpa 1.8.1
Posted: Wed May 04, 2016 4:19 am
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
{
"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