Page 1 of 2
How to configure WMI agent on existing nagios core 3.5.0
Posted: Wed Jan 31, 2018 7:04 am
by rohithroki
Hello Experts,
Can anyone help me out to configure the WMI agent ( Agentless monitoring for windows machine) configuration on the existing Nagios server.
Version: Nagios core 3.5.0
OS version :Centos 6.5
I have gone through the link
http://www.edcint.co.nz/checkwmiplus/ but there is no proper installation steps in detail and got lot of dependency error.
I am looking for detailed procedure to deploy the WMI configuration level and to monitor the windows machines through agentless in the existing nagios Monitoring dashboard.
Thanks in Advance.
Cheers
Simbu
Re: How to configure WMI agent on existing nagios core 3.5.0
Posted: Wed Jan 31, 2018 9:16 am
by mcapra
For the Windows side of things, do everything on the first 11 pages of this documentation:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
I realize the documentation says Nagios XI, but the first few steps are just as valid with Nagios Core.
For check_wmi_plus, I do not know of any "step by step" procedure for setting this up beyond
the official documentation written by the maintainer. Practically every solution is going to depend on the system on which you are installing check_wmi_plus. If you can share the package/dependency failures you encountered, specific advice can probably be offered.
Re: How to configure WMI agent on existing nagios core 3.5.0
Posted: Wed Jan 31, 2018 1:06 pm
by dwhitfield
Thanks
@mcapra!
OP, did you have any other questions?
Re: How to configure WMI agent on existing nagios core 3.5.0
Posted: Fri Feb 02, 2018 7:46 am
by rohithroki
Hello mcapra,
Thanks for reply.
I have done changes on windows side as per the procedure provided in the link.
I followed the procedure for installing check_wmi plus and while doing testing I got the below error.
[root@nagios_test plugins]# ./check_wmi_plus.pl -m checkcpu -H <hostname> -u wmiagent -p XXXX
Can't locate Number/Format.pm in @INC (@INC contains: /usr/lib/nagios/plugins /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./check_wmi_plus.pl line 52.
BEGIN failed--compilation aborted at ./check_wmi_plus.pl line 52.
Please help me out to clear the dependencies error.
Thanks in Advance.
Cheers,
Simbu
Re: How to configure WMI agent on existing nagios core 3.5.0
Posted: Fri Feb 02, 2018 2:21 pm
by npolovenko
@rohithroki, You could probably install the missing module with:
Re: How to configure WMI agent on existing nagios core 3.5.0
Posted: Mon Feb 05, 2018 2:43 am
by rohithroki
Hello,
The package is already been installed
Package 1:perl-TimeDate-1.16-13.el6.noarch already installed and latest version
Nothing to do
but still I am getting the below error.
[root@nagios_test plugins]# ./check_wmi_plus.pl -m checkcpu -H <hostname> -u wmiagent -p <XXX>
Can't locate Number/Format.pm in @INC (@INC contains: /usr/lib/nagios/plugins /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/sh are/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./check_wmi_plus.pl line 52.
BEGIN failed--compilation aborted at ./check_wmi_plus.pl line 52.
Please help me to solve.
Cheers,
Simbu
Re: How to configure WMI agent on existing nagios core 3.5.0
Posted: Mon Feb 05, 2018 12:05 pm
by npolovenko
@rohithroki, I'd like to see the list of all perl modules installed on your OS. Please run these commands:
Code: Select all
yum list installed | grep -i perl > installed1.txt
cpan -l > installed2.txt
That will create 2 test files: installed1.txt and installed2.txt that you can upload here.
Re: How to configure WMI agent on existing nagios core 3.5.0
Posted: Tue Feb 06, 2018 5:12 am
by rohithroki
Hi npolovenko,
Thanks for the reply.
I have taken the files and uploaded
But I am unable to run the command.
[root@nagios_test ~]# cpan -l > installed2.txt
Unknown option: l
Nothing to install!
Cheers,
Simbu
Re: How to configure WMI agent on existing nagios core 3.5.0
Posted: Tue Feb 06, 2018 4:12 pm
by npolovenko
@rohithroki, Please install this package:
Code: Select all
yum install perl-Scalar-List-Utils.x86_64
Re: How to configure WMI agent on existing nagios core 3.5.0
Posted: Wed Feb 14, 2018 8:25 am
by rohithroki
Hi,
I'm getting the depending error while installing the package.
warning: perl-Scalar-List-Utils-1.27-248.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
error: Failed dependencies:
perl(:MODULE_COMPAT_5.16.3) is needed by perl-Scalar-List-Utils-1.27-248.el7.x86_64
Please help me to fix the issue.
Cheers,
Simbu