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?
Wmi login trouble
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Wmi login trouble
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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
davide.bonicelli
- Posts: 134
- Joined: Thu Feb 13, 2014 5:12 am
Re: Wmi login trouble
big man!
it works!
more simple that than i thinked...
it works!
more simple that than i thinked...
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Wmi login trouble
Great! I'll lock it up.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.