我想在windows机器上添加一个check_logfiles命令。我是否必须使用NSClient++,还是已经安装了Icinga 2客户端就可以这样做了?我在卫星上配置了服务和check_command。但我得到了一条错误信息:
Command D:\icinga2\/sbin/check_logfiles-3.9/plugin-scripts/check_logfiles --criticalpattern ERROR --logfile D:\logdirectory\error.log --tag aplication-Log failed to execute: 2, "The system cannot find the file specified."我试图用"\“而不是"/”更改带有正确窗口路径的路径,但得到了相同的错误消息。
有什么想法吗?提前感谢!
发布于 2018-07-27 05:29:55
你好我能解决我的问题。在check命令中,您需要这样将perl与命令分离开来:
check_command = "perl", "D:\icinga2\sbin\check_logfiles-3.9\plugin-scripts\check_logfiles" 我不知道。现在一切都很顺利。谢谢你的帮助
https://serverfault.com/questions/923292
复制相似问题