Page 2 of 4
Re: WMI Unknown
Posted: Thu Feb 16, 2012 4:53 pm
by cwscribner
Well, we're hoping to turn this into a Nagios hero story. We're positioning Nagios to be the stand alone monitoring software for the whole organization. So ideally we'll have Nagios handle everything. I think that the majority of servers are the same. They're pretty much all running updated Server 2008 more-or-less. I think what I'll start with is re-adding the trouble devices and if that doesn't work, I'll do a full backup and attempt the wmic upgrade. I'll let you know how it turns out...I hope everything doesn't go into an amazing tailspin of failure...
Re: WMI Unknown
Posted: Thu Feb 16, 2012 5:00 pm
by scottwilkerson
We're wishing you the best of luck! And no more talk of "tailspin of failures"....
Re: WMI Unknown
Posted: Wed Feb 22, 2012 2:03 pm
by yancy
Running the latest install script will update you to the latest version of WMIC if your not already running it already.
also, to upgrade check_wmi_plus.pl re-add the WMI Wizard:
http://exchange.nagios.org/directory/Ad ... rd/details
To see if you are running an older version, you can check with the following
Run the following to check version #
/usr/bin/wmic -V
Version 4.0.0tp4-SVN-build-UNKNOWN
cat /usr/local/nagios/libexec/check_wmi_plus.pl | grep "my \$VERSION"
my $VERSION="1.49";
We haven't seen many issues with the newest version of wmic, so upgrading wouldn't be a bad idea if your having issues with the older wmic.
Re: WMI Unknown
Posted: Wed Feb 22, 2012 2:39 pm
by cwscribner
The update didn't fix the problem unfortunately...
Here's how the error looks now.
Code: Select all
UNKNOWN: Could not retrieve all required data. [wmi/wmic.c:212:main()] ERROR: Retrieve result data.
NTSTATUS: NT code 0x80041017 - NT code 0x80041017
[wmi/wmic.c:212:main()] ERROR: Retrieve result data.
NTSTATUS: NT code 0x80041017 - NT code 0x80041017
Re: WMI Unknown
Posted: Thu Feb 23, 2012 2:21 pm
by yancy
Could you post the version # your running for "Check_WMI_Plus" & "WMIC" so we can verify the update succeeded.
/usr/bin/wmic -V
Version 4.0.0tp4-SVN-build-UNKNOWN
cat /usr/local/nagios/libexec/check_wmi_plus.pl | grep "my \$VERSION"
my $VERSION="1.49";
Re: WMI Unknown
Posted: Thu Feb 23, 2012 2:41 pm
by cwscribner
Code: Select all
[root@myserver ~]# /usr/bin/wmic -V
Version 4.0.0tp4-SVN-build-UNKNOWN
[root@myserver ~]# cat /usr/local/nagios/libexec/check_wmi_plus.pl |grep "my \$VERSION"
my $VERSION="1.42";
I uploaded the most recent WMI wizard per your link, but it looks like the .pl version didn't change.
Re: WMI Unknown
Posted: Thu Feb 23, 2012 4:05 pm
by scottwilkerson
What are the permissions on this file
Code: Select all
ls -l /usr/local/nagios/libexec/check_wmi_plus.pl
Re: WMI Unknown
Posted: Thu Feb 23, 2012 6:42 pm
by cwscribner
Code: Select all
-rwxr-xr-x 1 nagios users 135018 Sep 27 14:18 /usr/local/nagios/libexec/check_wmi_plus.pl
Re: WMI Unknown
Posted: Thu Feb 23, 2012 7:05 pm
by scottwilkerson
I don't know why that wouldn't update, but I'm going to attach the 1.49 file for you to move to your server
Re: WMI Unknown
Posted: Fri Feb 24, 2012 3:11 pm
by yancy
Check_wmi_plus needs a .conf and .ini file to work correctly
try removing (if they exist):
-rwxr-xr-x 1 nagios users 2405 Feb 17 12:59 check_wmi_plus.conf
-rwxr-xr-x 1 nagios users 46543 Feb 17 12:59 check_wmi_plus.ini
-rwxr-xr-x 1 nagios users 237155 Feb 17 12:59 check_wmi_plus.pl
cd /usr/local/nagios/libexec
rm check_wmi_plus.*
and then re-run the wizard which will install the .conf, .ini and .pl