Page 2 of 6

Re: This plugin requires the linux implementation of wmic eg

Posted: Thu Mar 26, 2015 6:02 pm
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

Re: This plugin requires the linux implementation of wmic eg

Posted: Fri Mar 27, 2015 9:00 am
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

Re: This plugin requires the linux implementation of wmic eg

Posted: Fri Mar 27, 2015 10:58 am
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

Re: This plugin requires the linux implementation of wmic eg

Posted: Fri Mar 27, 2015 11:19 am
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

Re: This plugin requires the linux implementation of wmic eg

Posted: Fri Mar 27, 2015 11:30 am
by bosecorp
Yes and it;s running

Re: This plugin requires the linux implementation of wmic eg

Posted: Fri Mar 27, 2015 1:05 pm
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?

Re: This plugin requires the linux implementation of wmic eg

Posted: Fri Mar 27, 2015 1:20 pm
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.

Re: This plugin requires the linux implementation of wmic eg

Posted: Fri Mar 27, 2015 2:04 pm
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

Re: This plugin requires the linux implementation of wmic eg

Posted: Sat Mar 28, 2015 8:05 am
by bosecorp
if I moved the client to the job SERVER WORKS. but it does not work from the worker

Re: This plugin requires the linux implementation of wmic eg

Posted: Mon Mar 30, 2015 9:23 am
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.