Page 1 of 1

WMI Monitor CPU Usage error

Posted: Tue Jan 24, 2012 3:19 pm
by slocrystal
I have just setup our instance of Nagios and have been trying to use the WMI and nagios client features with no luck. The below error is what I receive when trying to use the wmi monitor for cpu usage. Any ideas.

UNKNOWN: Could not retrieve all required data. Failed to bind to uuid 4d9f4ab8-7d1c-11cf-861e-0020af6e7c57 - NT_STATUS_NET_WRITE_FAULT
ERROR: dcom_create_object.
ERROR: Login to remote object.
NTSTATUS: NT_STATUS_LOGON_FAILURE - Logon failure
Failed to bind to uuid 4d9f4ab8-7d1c-11cf-861e-0020af6e7c57 - NT_STATUS_NET_WRITE_FAULT
ERROR: dcom_create_object.
ERROR: Login to remote object.
NTSTATUS: NT_STATUS_LOGON_FAILURE - Logon failure

Re: WMI Monitor CPU Usage error

Posted: Tue Jan 24, 2012 3:39 pm
by lmiltchev
Can you run these commands from the command line:

Code: Select all

cd /usr/local/nagios/libexec
./check_wmi_plus.pl -H <your_windows_machine_IP_address> -u <username> -p i <password> -m checkdrivesize -a c: -w 80 -c 95
and post the output?

Note: You can remove the sensitive info.

Re: WMI Monitor CPU Usage error

Posted: Tue Jan 24, 2012 4:40 pm
by slocrystal
Output is as follows:

UNKNOWN: Could not retrieve all required data. Failed to bind to uuid 4d9f4ab8-7d1c-11cf-861e-0020af6e7c57 - NT_STATUS_NET_WRITE_FAULT
ERROR: dcom_create_object.
ERROR: Login to remote object.
NTSTATUS: NT_STATUS_LOGON_FAILURE - Logon failure

Re: WMI Monitor CPU Usage error

Posted: Tue Jan 24, 2012 4:46 pm
by lmiltchev
Are you sure that you are providing the right credentials? Also, if you are using a "typical" windows login, such as: "domain\username", try this: "domain/username" or "domain\/username", instead and see if it is going to work.

Re: WMI Monitor CPU Usage error

Posted: Tue Jan 24, 2012 5:01 pm
by slocrystal
I have tried the credentials with both the / and \. I am using my domain admin credentials as well. I have confirmed that the target machine as well has the WMI-in and WMI-DCOM-In firewall rules enabled and set to allow.

Re: WMI Monitor CPU Usage error

Posted: Tue Jan 24, 2012 5:04 pm
by scottwilkerson
actually as seen here

it should be

Code: Select all

domain/\username
as in

Code: Select all

./check_wmi_plus.pl -H xxx.xxx.xxx.xxx -m checkcpuq -u domain/\Nagios -p password

Re: WMI Monitor CPU Usage error

Posted: Tue Jan 24, 2012 5:35 pm
by slocrystal
Looks like the /\ did the trick. I have confirmed within the services in the http console as well.

Do you guys recomend the nsclient++ or the wmi monitoring for most success?

Thanks.

Re: WMI Monitor CPU Usage error

Posted: Tue Jan 24, 2012 5:58 pm
by scottwilkerson
slocrystal wrote:Looks like the /\ did the trick. I have confirmed within the services in the http console as well.
Excellent.
slocrystal wrote: Do you guys recomend the nsclient++ or the wmi monitoring for most success?

Thanks.
This depends on what you are trying to accomplish and what you wall want to monitor. WMI is fine, except lack some of the features that NSClient++ has.