WMI checks are failing for a few hosts after upgrade XI2012

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
txwomansu
Posts: 36
Joined: Mon Oct 10, 2011 9:05 am

WMI checks are failing for a few hosts after upgrade XI2012

Post by txwomansu »

Hello,

Could you please help with this issue: after the upgrade to NagiosXI 2012, 2 hosts have issues with WMI checks of CPU, disk space, and other things. All WMI checks on these 2 hosts return: "UNKNOWN - Plugin Timed out". The account that queries WMI is a domain account with local admin rights on these 2 hosts, WMI service is running, there is no firewall in between nagiosXI and the hosts. When I give the wrong account WMI interface 'reacts' with failed logon message. I can run WMI queries locally on hosts. What do you suggest that I do? These 2 hosts had working WMI checks before the upgrade.

Thanks,
Svetlana
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: WMI checks are failing for a few hosts after upgrade XI2

Post by lmiltchev »

Can you show us the actual checks that you are running (the failing ones) from the command line and the output of them? What is the exact version that you upgraded Nagios XI to?
Be sure to check out our Knowledgebase for helpful articles and solutions!
txwomansu
Posts: 36
Joined: Mon Oct 10, 2011 9:05 am

Re: WMI checks are failing for a few hosts after upgrade XI2

Post by txwomansu »

Working WMI check output:
[root@nagiosxi libexec]# perl check_wmi_plus.pl -H workinghost.abc.com -u somewmiuser -p somepassword -m checkcpu
OK (Sample Period 17 sec) - Average CPU Utilisation 0.24%|'Avg CPU Utilisation'=0.24%;

Broken WMI check output:
[root@nagiosxi libexec]# perl check_wmi_plus.pl -H brokenhost.abc.com -u somewmiuser -p somepassword -m checkcpu
UNKNOWN - Plugin Timed out (15 sec)

I upgraded to NagiosXI 2012R1.6.

The OS of the remote host is Windows 2008 Enterprise 64 bit SP2.

Thanks.
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: WMI checks are failing for a few hosts after upgrade XI2

Post by yancy »

txwomansu,

Try removing the cached data and re-running the query

in the /tmp directory there should be some .state files

Code: Select all

 cd /tmp
ls *.state
[code]

remove any .state files

Thanks,

-Yancy
txwomansu
Posts: 36
Joined: Mon Oct 10, 2011 9:05 am

Re: WMI checks are failing for a few hosts after upgrade XI2

Post by txwomansu »

There were no .state files in the /tmp directory...
txwomansu
Posts: 36
Joined: Mon Oct 10, 2011 9:05 am

Re: WMI checks are failing for a few hosts after upgrade XI2

Post by txwomansu »

I have noticed that if I query the host by IP, WMI check works (on the non-working server); if I query by hostname - I get timeout error. Maybe the issue is dns-related.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: WMI checks are failing for a few hosts after upgrade XI2

Post by lmiltchev »

Yes, it is probably DNS-related if checks are working with an IP, but not with a hostname.
Be sure to check out our Knowledgebase for helpful articles and solutions!
txwomansu
Posts: 36
Joined: Mon Oct 10, 2011 9:05 am

Re: WMI checks are failing for a few hosts after upgrade XI2

Post by txwomansu »

I found the issue. The 2 hosts that were not working had hostname in the 'Address' field (vs. the IP address). After I changed this field to IP address, the problem resolved. DNS is fine. Thanks for your time.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: WMI checks are failing for a few hosts after upgrade XI2

Post by slansing »

Ahh, that would certainly do it, thanks for letting us know you got this resolved.
Locked