1、监控windows服务器是,提示【NSClient - ERROR: Invalid password】

原因:在windows安装NSClient时设置了密码,而在nagios服务器上的命令配置中没有启用-s参数,

解决办法:

1、注释掉windows配置文件中的password那一行

2、编辑commnads.cfg,将-s参数后的密码设置为windows配置文件的密码一样

# 'check_nt' command definitiondefine command{ command_name check_nt command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -s 'somepasswd' -v $ARG1$ $ARG2$ }