WMI Monitor issues
-
slocrystal
- Posts: 17
- Joined: Wed Jun 29, 2011 5:25 pm
WMI Monitor issues
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
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
I'm curios what version of wmi_plus and it's helper binary wmic your using.
could you post the following:
could you post the following:
Code: Select all
/usr/local/bin/wmic --version
/usr/local/nagios/libexec/check_wmi_plus.pl --version-
slocrystal
- Posts: 17
- Joined: Wed Jun 29, 2011 5:25 pm
Re: WMI Monitor issues
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.
Thanks.
Re: WMI Monitor issues
Try running:
Maybe it is in /usr/bin/.
Try:
Code: Select all
# locate wmicTry:
Code: Select all
# /usr/bin/wmic --versionBe 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
Sorry for the delay...
wmic is located in /usr/bin and the version command returns: "Version 4.0.0alpha3-GIT-UNKNOWN"
wmic is located in /usr/bin and the version command returns: "Version 4.0.0alpha3-GIT-UNKNOWN"
Re: WMI Monitor issues
What about the output of this command?
Code: Select all
/usr/local/nagios/libexec/check_wmi_plus.pl --versionBe 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
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
Try
Code: Select all
cat /usr/local/nagios/libexec/check_wmi_plus.pl | grep VERSION\=-
slocrystal
- Posts: 17
- Joined: Wed Jun 29, 2011 5:25 pm
Re: WMI Monitor issues
version 1.42
It is the same version as was installed on the VM I downloaded from the nagios site.
It is the same version as was installed on the VM I downloaded from the nagios site.
Re: WMI Monitor issues
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
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