problem with check_wmi_plus.pl

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
Francesco
Posts: 124
Joined: Wed Oct 28, 2015 5:02 am
Location: /usr
Contact:

problem with check_wmi_plus.pl

Post 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?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: problem with check_wmi_plus.pl

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked