check_nt对于64位的windows显示的内存其实是windows的实际内存加page file之和
nagios服务端:
nagios/objects/commands.cfg添加如下内容
# CheckWindowsPhysical Mem command definition
define command {
command_name CheckWindowsPhysicalMem
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckMEM -a MaxWarn=$ARG1$% MaxCrit=$ARG2$% ShowAll type=physical
}
XXXXX.cfg
define service{
use generic-service
host_name XXXXX
service_description Physical Memory
check_command CheckWindowsPhysicalMem!80!90
}
nagios客户端:
修改NSClient++\NSC.ini
[NRPE]下
将";allow_arguments=0"改为"allow_arguments=1"
无需重启服务