首页 > 解决方案 > Nagios 插件 check_logfiles 用户和实施者在 windows 上的使用情况

问题描述

我正在寻找任何使用 Nagios Plugin check_logfiles for Windows 的人。

我有这个插件在 Linux 操作系统下工作。我真的很难让它在 Windows 操作系统下构建和工作。

这么多东西,但我无法为 Windows 构建一个好的插件。我一定做错了什么,因为我看到其他人在这方面取得了成功。另一件事是它是在 Perl 中的,由于这个原因,我现在只是在学习 Perl,所以,我对这个插件的编程语言不太感兴趣,这有点伤人。

C:\Program Files (x86)\Nagios\NCPA\plugins\check_logfiles-3.12\plugins-scripts>check_logfiles -f "C:\Program Files (x86)\Nagios\NCPA\contrib\chec
k_logfiles.cfg"
Can't locate object method "new" via package "Nagios::CheckLogfiles" at C:\Program Files (x86)\Nagios\NCPA\plugins\check_logfiles-3.12\plugins-sc
ripts\check_logfiles.pl line 360.

谢谢您的帮助

标签: windowspluginsnagios

解决方案


well, sometimes you just have to sit back and laugh at yourself sometimes.

this problem was / is due to the Perl Windows build process and I didn't have internet to CPAN install modules.

I set the env http_proxy= and https_proxy= and I can build successfully.

sorry I panicked. thanks everyone.


推荐阅读