Page 1 of 1

Wmi login trouble

Posted: Fri May 02, 2014 8:42 am
by davide.bonicelli
Hi, in the same network i have some server that works ok with wmi, some other i get this error:
UNKNOWN - The WMI query had problems. You might have your username/password wrong or the user's access level is too low. Wmic error text on the next line.
but with the same user and password it works if i try from Configure->service->some check->Test check command
ouch!
also works if i try directly from linux with the command:
/usr/local/nagios/libexec/check_wmi_plus.pl -w _Total=1:1 -c 0 -H server -u 'domain\user' -p 'password' -m checkservice -a 'service'
also works
sudo -u nagios /usr/local/nagios/libexec/check_wmi_plus.pl -w _Total=1:1 -c 0 -H server -u 'domain\user' -p 'password' -m checkservice -a 'service'
any ideas?

Re: Wmi login trouble

Posted: Fri May 02, 2014 10:16 am
by sreinhardt
First suggestion would be to swap the domain\user for domain/user. I forget if this is due to perl or something else, but generally that is the case when logins are failing.

Re: Wmi login trouble

Posted: Fri May 02, 2014 10:27 am
by davide.bonicelli
big man! :)
it works!
more simple that than i thinked...

Re: Wmi login trouble

Posted: Fri May 02, 2014 11:08 am
by sreinhardt
Great! I'll lock it up.