WMI Monitor issues

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
slocrystal
Posts: 17
Joined: Wed Jun 29, 2011 5:25 pm

WMI Monitor issues

Post by slocrystal »

I have followed the document at this link "http://assets.nagios.com/downloads/nagi ... ng_WMI.pdf" in order to setup my server to allow for the WMI monitoring. I have this all setup according to the document however I get the following error on the monitor: (Return code of 255 is out of bounds). This error is for the CPU Utilization monitor. When I try and run the same from the command line I get "Use of uninitialized value in subtraction (-) at .check_wmi_plus.pl line 1311" 4 times.

The command I am running at the command line is as follows: ./check_wmi_plus.pl -H <hostip> -u <domain/\user> -p <password> -m checkcpu -w 80 -c 90

I can get it to work for the drive size, page file and memory usage all working in the command line and the web interface. Please advise.

Thanks.

Tyler
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: WMI Monitor issues

Post by scottwilkerson »

I'm curios what version of wmi_plus and it's helper binary wmic your using.

could you post the following:

Code: Select all

/usr/local/bin/wmic --version

/usr/local/nagios/libexec/check_wmi_plus.pl --version
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
slocrystal
Posts: 17
Joined: Wed Jun 29, 2011 5:25 pm

Re: WMI Monitor issues

Post by slocrystal »

There is no wmic in the bin directory and the --version command does not work. The --inihelp does not seem to show the version either. I am running the trial of the nagios xi vm that is provided on the website and it is configured as default outside of the network information and password changes to get it running on our system. Is there another way to find the version, or is something not installed correctly?

Thanks.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: WMI Monitor issues

Post by lmiltchev »

Try running:

Code: Select all

# locate wmic
Maybe it is in /usr/bin/.

Try:

Code: Select all

# /usr/bin/wmic --version
Be sure to check out our Knowledgebase for helpful articles and solutions!
slocrystal
Posts: 17
Joined: Wed Jun 29, 2011 5:25 pm

Re: WMI Monitor issues

Post by slocrystal »

Sorry for the delay...

wmic is located in /usr/bin and the version command returns: "Version 4.0.0alpha3-GIT-UNKNOWN"
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: WMI Monitor issues

Post by lmiltchev »

What about the output of this command?

Code: Select all

/usr/local/nagios/libexec/check_wmi_plus.pl --version
Be sure to check out our Knowledgebase for helpful articles and solutions!
slocrystal
Posts: 17
Joined: Wed Jun 29, 2011 5:25 pm

Re: WMI Monitor issues

Post by slocrystal »

When I run ./check_wmi_plus.pl --version it comes back with no hostname specified. It does not look like the --version is an option and I can't seem to find the command that gets the version.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: WMI Monitor issues

Post by scottwilkerson »

Try

Code: Select all

cat /usr/local/nagios/libexec/check_wmi_plus.pl | grep VERSION\=
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
slocrystal
Posts: 17
Joined: Wed Jun 29, 2011 5:25 pm

Re: WMI Monitor issues

Post by slocrystal »

version 1.42

It is the same version as was installed on the VM I downloaded from the nagios site.
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: WMI Monitor issues

Post by yancy »

The latest WMI Wizard running 1.49 contains a number of bug fixes.

http://www.edcint.co.nz/checkwmiplus/?q=Change%20Log

We are currently testing 1.50, but for now try adding the latest wizard to upgrade your version to 1.49.

The latest wizard can be found here:
http://exchange.nagios.org/directory/Ad ... rd/details

Re-add the wizard from Nagios > admin > mangage config wizard

Once you re-add the wizard, check the version number to make sure your at 1.49
Locked