windows.cfg
d
Code: Select all
efine service{
use generic-service
host_name HOST
service_description Disk C: SSD
check_command check_ncpa!'disk/logical/C:|/used_percent'!80!90
}
define service{
use generic-service
host_name HOST
service_description Disk D: Data
check_command check_ncpa!'disk/logical/D:|/used_percent'!80!90
}
For C drive all works fine:
But for D drive same command fails:/usr/lib64/nagios/plugins/check_ncpa.py --hostname=192.168.1.11 --token='token' -M 'disk/logical/C:|/used_per
cent' -w 80 -c 90
OK: used_percent was 77% | 'used_percent_0'=77%;80;90
Code: Select all
/usr/lib64/nagios/plugins/check_ncpa.py --hostname=192.168.1.11 --token='token' -M 'disk/logical/D:|/used_per
cent' -w 80 -c 90
Unable to run check on non-child node. Revise your query