Page 1 of 1

problem with check_wmi_plus.pl

Posted: Mon Feb 12, 2018 12:29 pm
by Francesco
Hi all,
we have a problem with the following check_wmi_plus.pl command:

Code: Select all

$ ./check_wmi_plus.pl -H <IP addr> -A ini/.wmi_auth -m checkservice -a auto -w 0 -c 1
UNKNOWN - The WMI query had problems. The error text from wmic is: [wmi/wmic.c:212:main()] ERROR: Retrieve result data.
NTSTATUS: NT code 0x80041003 - NT code 0x80041003
If the dedicated domain user is in the local administrator group of the remote server, everything is fine.

We have configured the dedicated domain user as documented:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
with only the different that we added the user to "Performance Monitor Users" group, and added the privileges to the group and not to the user.

Other check works:

Code: Select all

$ ./check_wmi_plus.pl -H <IP addr> -A ini/.wmi_auth -m info -s os
OK - OS is Microsoft Windows Server 2008 R2 Standard [...]
checkservice not

Code: Select all

$ ./check_wmi_plus.pl -H <IP addr> -A ini/.wmi_auth -m checkservice -a auto -w 0 -c 1
UNKNOWN - The WMI query had problems. The error text from wmic is: [wmi/wmic.c:212:main()] ERROR: Retrieve result data.
NTSTATUS: NT code 0x80041003 - NT code 0x80041003
What is the problem?

Re: problem with check_wmi_plus.pl

Posted: Mon Feb 12, 2018 1:17 pm
by npolovenko
Hello, @Francesco. A similar issue was resolved by running the following command from the windows server admin command prompt:

Code: Select all

sc sdset SCMANAGER D:(A;;CCLCRPRC;;;AU)(A;;CCLCRPWPRC;;;SY)(A;;KA;;;BA)S:(AU;FA;KA;;;WD)(AU;OIIOFA;GA;;;WD)
https://support.nagios.com/forum/viewto ... 35&t=31641
Would you be able to try that?