When I login to the windows host and go to the location - C:\Program Files (x86)\Nagios\NCPA\etc\ncpa.cfg.d and open the nrdp.cfg file this is the contents of the file:
Code: Select all
#
# AUTO GENERATED NRDP CONFIG FROM WINDOWS INSTALLER
#
[passive checks]
# Host check - This is to stop "pending check" status in Nagios
%HOSTNAME%|__HOST__ = system/agent_version
# Service checks
%HOSTNAME%|CPU Usage = cpu/percent --warning 80 --critical 90 --aggregate avg
%HOSTNAME%|Disk Usage = disk/logical/C:|/used_percent --warning 80 --critical 90 --units Gi
%HOSTNAME%|Swap Usage = memory/swap --warning 60 --critical 80 --units Gi
%HOSTNAME%|Memory Usage = memory/virtual --warning 80 --critical 90 --units Gi
%HOSTNAME%|Process Count = processes --warning 300 --critical 400
Code: Select all
define service {
host_name Svr-Veeam
service_description Disk Usage
check_command check_ncpa!-t 'CMPublic' -P 5693 -M disk/logical/C:|/used_percent -w 80 -c 90 -u G
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 60
notification_period 24x7
contacts nagiosadmin
register 1
}
Code: Select all
check_command check_ncpa!-t 'CMPublic' -P 5693 -M disk/logical/C:|/used_percent --warning 80 --critical 90 --units Gi
check_command check_ncpa!-t 'CMPublic' -P 5693 -M disk/logical/C:|/used_percent -w 80 -c 90 -u G
When I navigate to this path - /usr/local/nagios/libexec and run the command:
Code: Select all
./check_ncpa.py -H 172.17.20.4 -t CMPublic -M 'disk/logical/C:|/used_percent' --warning 90 --critical 95