我已经在windows主机上安装和配置了NSClient++,并将默认密码设置为测试,该密码将位于C:程序Files\NSClient++\NSC.ini中。
nagios显示的是windows服务,但上面写着NSClient - ERROR:无效密码。
我使用的是默认密码,这是在那里的NSC.ini文件。当我在linux机器上运行下面的命令时,它也能工作,而且我还启用了端口。
检查CPU负载
/usr/lib/nagios/plugins/check_nt -H '192.168.36.177‘-s’密码‘-p 12489 -v CPULOAD -w 80 -c 90 -l 5,80,90,10,80,90
检查已使用的磁盘空间
/usr/lib/nagios/plugins/check_nt -H '192.168.36.177‘-s’密码‘-p 12489 -v USEDDISKSPACE -d显示所有-l c
谁能告诉我我哪里出了问题?
发布于 2011-08-02 13:00:22
这可能意味着在运行命令时,“秘密密码”没有被正确地传递给Nagios。有时,它可能是奇怪的扩展问题或引用问题。
我建议启用Nagios中的调试器来查看实际运行的命令:
debug_level=-1
# DEBUG VERBOSITY
# This option determines how verbose the debug log out will be.
# Values: 0 = Brief output
# 1 = More detailed
# 2 = Very detailed
debug_verbosity=2
# DEBUG FILE
# This option determines where Nagios should write debugging information.
debug_file=/usr/local/nagios/var/nagios.debughttps://serverfault.com/questions/296636
复制相似问题