ncpa error while trying to monitor hard disks.
Posted: Wed Feb 05, 2014 12:43 pm
Has anyone successfully monitored the percent free of a standard windows logical hard disk. I have tried various syntax however it fails with the following error depending on the syntax.
eg: check_command check_ncpa_agent! -t abc -M api/disk/logical/C:|/used_percent --warning 10 --critical 20
error: (Return code of 127 is out of bounds - plugin may be missing)
eg: check_command check_ncpa_agent! -t abc -M api/disk/logical/C:%7C/used_percent --warning 10 --critical 20
error: UNKNOWN: Error occurred while running the plugin.
if i run the command directly on the server from a web gui it works..
_https://localhost:5693/api/disk/logical/C:%7C/used_percent?token=abc&warning=1&critical=2&check=true
output:
{
"value": {
"returncode": 2,
"stdout": "CRITICAL: Used_percent was 26.8%|'used_percent_0'=26.8%;1;2"
}
}
eg: check_command check_ncpa_agent! -t abc -M api/disk/logical/C:|/used_percent --warning 10 --critical 20
error: (Return code of 127 is out of bounds - plugin may be missing)
eg: check_command check_ncpa_agent! -t abc -M api/disk/logical/C:%7C/used_percent --warning 10 --critical 20
error: UNKNOWN: Error occurred while running the plugin.
if i run the command directly on the server from a web gui it works..
_https://localhost:5693/api/disk/logical/C:%7C/used_percent?token=abc&warning=1&critical=2&check=true
output:
{
"value": {
"returncode": 2,
"stdout": "CRITICAL: Used_percent was 26.8%|'used_percent_0'=26.8%;1;2"
}
}