WMI Unknown
-
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
- Contact:
Re: WMI Unknown
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...
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: WMI Unknown
We're wishing you the best of luck! And no more talk of "tailspin of failures"....
Re: WMI Unknown
lmiltchev wrote:Has this ever worked? Did you set it up following our documentation?
http://assets.nagios.com/downloads/nagi ... For_XI.pdf
http://assets.nagios.com/downloads/nagi ... ng_WMI.pdf
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.
-
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
- Contact:
Re: WMI Unknown
The update didn't fix the problem unfortunately...
Here's how the error looks now.
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
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";
/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";
-
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
- Contact:
Re: WMI Unknown
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";
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: WMI Unknown
What are the permissions on this file
Code: Select all
ls -l /usr/local/nagios/libexec/check_wmi_plus.pl
-
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
- Contact:
Re: WMI Unknown
Code: Select all
-rwxr-xr-x 1 nagios users 135018 Sep 27 14:18 /usr/local/nagios/libexec/check_wmi_plus.pl
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: WMI Unknown
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
You do not have the required permissions to view the files attached to this post.
Re: WMI Unknown
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
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