I am trying to configure the check_wmi_plus nagios plugin to work with my Icinga2 server to remotely monitor certain Windows VMs.
As part of the setup, i have installed wmic, check_wmi_plus plug-in and all the dependencies that would be needed for the plugin.
When I try to test the setup, the commands run fine with the following output example -
wmic -U domain/user%password //host "select * from Win32_OperatingSystem”
Output > Successfully runs the command with data.
When I try to run the check_wmi_plus.pl from the unix console, it runs successfully too.
user console: /etc/icinga2/conf.d$ /usr/lib/nagios/plugins/check_wmi_plus.pl -m checkeachcpu -H '192.168.56.101' -A /etc/icinga2/wmi.auth --inidir /usr/lib/nagios/plugins/etc/check_wmi_plus/check_wmi_plus.d --inifile /usr/lib/nagios/plugins/etc/check_wmi_plus/check_wmi_plus.d/check_wmi_plus.ini
Output > OK (Sample Period 1286 sec) - CPU0=3.8% CPU1=3.0% CPU2=4.6% CPU3=3.6% CPU_Total=3.8% |'Avg Utilisation CPU0'=3.8%; 'Avg Utilisation CPU1'=3.0%; 'Avg Utilisation CPU2'=4.6%; 'Avg Utilisation CPU3'=3.6%; 'Avg Utilisation CPU_Total'=3.8%;
Now as a last step, I am trying to configure the service in Icinga2.
However, the check returns with the following with the STATUS set as UNKNOWN -
UNKNOWN - The WMI query had problems. The error text from wmic is: [librpc/rpc/dcerpc_connect.c:329:dcerpc_pipe_connect_ncacn_ip_tcp_recv()] failed NT status (c0000017) in dcerpc_pipe_connect_ncacn_ip_tcp_recv
[librpc/rpc/dcerpc_connect.c:790:dcerpc_pipe_connect_b_recv()] failed NT status (c0000017) in dcerpc_pipe_connect_b_recv[wmi/wmic.c:196:main()] ERROR: Login to remote object.NTSTATUS: NT_STATUS_NO_MEMORY - Memory allocation error
Has anybody seen this before? What could be the problem here?
Thanks & Regards,