This plugin requires the linux implementation of wmic eg fro

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: This plugin requires the linux implementation of wmic eg

Post by bosecorp »

done

now I am getting this error

root@gearmandce1:(03-26 19:20): /root
# /usr/local/nagios/libexec/check_wmi_plus.pl -H xxxxxxxx.com -u 'us_nt_bose\svcnagios' -p 'password' -m checkcpu -w '80' -c '90'
UNKNOWN - Plugin Timed out (15 sec). There are multiple possible reasons for this, some of them include - The host usmadcops01.bose.com might just be really busy, it might not even be running Windows.

by the way, I am getting this errors on one of the workers

can WMI check run on workers or only in the JOB server
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: This plugin requires the linux implementation of wmic eg

Post by jdalrymple »

It is possible to run anywhere, however you'll have to copy your conf and ini file to the worker servers.

Can you verify connectivity to the host?

Code: Select all

telnet usmadcops01.bose.com 135
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: This plugin requires the linux implementation of wmic eg

Post by bosecorp »

root@gearmandcn1:(03-27 11:58): /root
# telnet usmadcops01.bose.com 135
Trying 10.100.21.134...
Connected to usmadcops01.bose.com.
Escape character is '^]'.

and I did put the copy if the INI and conf in the workers
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: This plugin requires the linux implementation of wmic eg

Post by tgriep »

Did you enable WMI on your windows server?

Here are the instructions for doing that.
http://assets.nagios.com/downloads/nagi ... ios-XI.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: This plugin requires the linux implementation of wmic eg

Post by bosecorp »

Yes and it;s running
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: This plugin requires the linux implementation of wmic eg

Post by jdalrymple »

You wondered if it would only work from the Job server, the answer is no, any server should be able to run check_wmi_plus.pl - as mentioned. The corollary question I have is does it work currently from the job server but not from the worker server?
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: This plugin requires the linux implementation of wmic eg

Post by bosecorp »

I tried from the worker and same

this is the error I get

UNKNOWN - Plugin Timed out (15 sec). There are multiple possible reasons for this, some of them include - The host usmasblts05.bose.com might just be really busy, it might not even be running Windows.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: This plugin requires the linux implementation of wmic eg

Post by jdalrymple »

The check_wmi_plus.pl script is very reliable when the proper permissions and firewall rules are in place.

I suggest you try the following:

1) You could try to add the user account you're using to local administrators on the server temporarily to see if that solves the problem)
2) Try the steps in the document tmdonald shared (see below) on a fresh windows server (not joined to your domain) to verify that there are no domain policies being pushed down that are denying remote WMI access

If neither of those work then potentially there is something wrong with your Nagios server, but right now the errors you're sharing lead me to believe that it is a configuration problem on the Windows side which we can't really help with outside of our documentation indicating how to configure your Windows accounts for WMI access.

http://assets.nagios.com/downloads/nagi ... ios-XI.pdf
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: This plugin requires the linux implementation of wmic eg

Post by bosecorp »

if I moved the client to the job SERVER WORKS. but it does not work from the worker
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: This plugin requires the linux implementation of wmic eg

Post by tgriep »

Can you ping the windows server from your gearman worker system?
Check the firewall on the Windows system to see if it is blocking your gearman worker system.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked