How to configure WMI agent on existing nagios core 3.5.0

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
rohithroki
Posts: 138
Joined: Mon Nov 30, 2015 6:12 am

How to configure WMI agent on existing nagios core 3.5.0

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: How to configure WMI agent on existing nagios core 3.5.0

Post 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.
Former Nagios employee
https://www.mcapra.com/
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: How to configure WMI agent on existing nagios core 3.5.0

Post by dwhitfield »

Thanks @mcapra!

OP, did you have any other questions?
rohithroki
Posts: 138
Joined: Mon Nov 30, 2015 6:12 am

Re: How to configure WMI agent on existing nagios core 3.5.0

Post 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
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: How to configure WMI agent on existing nagios core 3.5.0

Post by npolovenko »

@rohithroki, You could probably install the missing module with:

Code: Select all

yum install perl-TimeDate
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rohithroki
Posts: 138
Joined: Mon Nov 30, 2015 6:12 am

Re: How to configure WMI agent on existing nagios core 3.5.0

Post 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
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: How to configure WMI agent on existing nagios core 3.5.0

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rohithroki
Posts: 138
Joined: Mon Nov 30, 2015 6:12 am

Re: How to configure WMI agent on existing nagios core 3.5.0

Post 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
Attachments
installed1.txt
(7.09 KiB) Downloaded 498 times
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: How to configure WMI agent on existing nagios core 3.5.0

Post by npolovenko »

@rohithroki, Please install this package:

Code: Select all

yum install perl-Scalar-List-Utils.x86_64
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rohithroki
Posts: 138
Joined: Mon Nov 30, 2015 6:12 am

Re: How to configure WMI agent on existing nagios core 3.5.0

Post 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
Locked