首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Windows上带有代理的Icinga 2 check_logfiles

Windows上带有代理的Icinga 2 check_logfiles
EN

Server Fault用户
提问于 2018-07-24 14:07:08
回答 1查看 849关注 0票数 0

我想在windows机器上添加一个check_logfiles命令。我是否必须使用NSClient++,还是已经安装了Icinga 2客户端就可以这样做了?我在卫星上配置了服务和check_command。但我得到了一条错误信息:

代码语言:javascript
复制
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."

我试图用"\“而不是"/”更改带有正确窗口路径的路径,但得到了相同的错误消息。

有什么想法吗?提前感谢!

EN

回答 1

Server Fault用户

回答已采纳

发布于 2018-07-27 05:29:55

你好我能解决我的问题。在check命令中,您需要这样将perl与命令分离开来:

代码语言:javascript
复制
check_command = "perl", "D:\icinga2\sbin\check_logfiles-3.9\plugin-scripts\check_logfiles" 

我不知道。现在一切都很顺利。谢谢你的帮助

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/923292

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档