WMI Unknown

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Re: WMI Unknown

Post 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...
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: WMI Unknown

Post by scottwilkerson »

We're wishing you the best of luck! And no more talk of "tailspin of failures"....
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: WMI Unknown

Post by yancy »

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.
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Re: WMI Unknown

Post 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
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: WMI Unknown

Post 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";
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Re: WMI Unknown

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: WMI Unknown

Post by scottwilkerson »

What are the permissions on this file

Code: Select all

ls -l /usr/local/nagios/libexec/check_wmi_plus.pl
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Re: WMI Unknown

Post by cwscribner »

Code: Select all

-rwxr-xr-x 1 nagios users 135018 Sep 27 14:18 /usr/local/nagios/libexec/check_wmi_plus.pl
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: WMI Unknown

Post 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
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: WMI Unknown

Post 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
Locked