Page 1 of 1

WMI on Windows 2012 - permissions

Posted: Tue Feb 09, 2016 9:55 am
Hello,

I am trying to configure several Windows 2012 servers with WMI implementation. I have followed the pdf which explains how to add permissions to an AD user, but no luck for now. The plugin still says that user login is denied.

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Here does not explain anything about windows 2012 R2 users and this does not match with the manual.

I have tried to follow this one but it is not working yet:

https://technet.microsoft.com/en-ie/lib ... 71551.aspx


Thank you

Re: WMI on Windows 2012 - permissions

Posted: Tue Feb 09, 2016 11:19 am
by lmiltchev
The plugin still says that user login is denied.
Can you show us the actual command that you are running from the command line along with the output of it? Hide/obfuscate sensitive data.

Re: WMI on Windows 2012 - permissions

Posted: Thu Feb 11, 2016 5:37 am
Hello,

this is the plugin output:

Code: Select all

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.
[wmi/wmic.c:196:main()] ERROR: Login to remote object.
NTSTATUS: NT_STATUS_ACCESS_DENIED - Access denied
And this the used command:

Code: Select all

COMMAND: /usr/local/nagios/libexec/check_wmi_plus.pl -H 10.146.16.210 -u [b]username[/b] -p [b]password[/b] -m checkcpu 
Thanks

Re: WMI on Windows 2012 - permissions

Posted: Thu Feb 11, 2016 10:32 am
by tgriep
Under Windows 2012, there are some extra settings that have to be done to get access to the WMI remotely on a Windows 2012 server.
The link below has the instructions for setting up WMI on a 2012 server. Take a look at it and see if this helps.
http://www.edcint.co.nz/checkwmiplus/node/60