Page 1 of 2
WMI Monitor issues
Posted: Tue Feb 07, 2012 7:22 pm
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
Re: WMI Monitor issues
Posted: Wed Feb 08, 2012 11:07 am
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
Re: WMI Monitor issues
Posted: Wed Feb 08, 2012 11:26 am
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.
Re: WMI Monitor issues
Posted: Fri Feb 10, 2012 2:37 pm
by lmiltchev
Try running:
Maybe it is in /usr/bin/.
Try:
Re: WMI Monitor issues
Posted: Wed Feb 15, 2012 7:12 pm
by slocrystal
Sorry for the delay...
wmic is located in /usr/bin and the version command returns: "Version 4.0.0alpha3-GIT-UNKNOWN"
Re: WMI Monitor issues
Posted: Thu Feb 16, 2012 10:54 am
by lmiltchev
What about the output of this command?
Code: Select all
/usr/local/nagios/libexec/check_wmi_plus.pl --version
Re: WMI Monitor issues
Posted: Thu Feb 23, 2012 12:56 pm
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.
Re: WMI Monitor issues
Posted: Thu Feb 23, 2012 1:01 pm
by scottwilkerson
Try
Code: Select all
cat /usr/local/nagios/libexec/check_wmi_plus.pl | grep VERSION\=
Re: WMI Monitor issues
Posted: Thu Feb 23, 2012 1:43 pm
by slocrystal
version 1.42
It is the same version as was installed on the VM I downloaded from the nagios site.
Re: WMI Monitor issues
Posted: Thu Feb 23, 2012 2:34 pm
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