WMI error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
kfree71
Posts: 2
Joined: Wed Oct 15, 2014 2:35 pm
Location: Mesa, AZ

WMI error

Post by kfree71 »

To start of, I am new to Nagios and Linux systems.
I am attempting to monitor virtualized Windows servers using the WMI monitoring wizard. When I enter the server IP, username, & password in through the wizard I get this error when it attempts to retrieve the info from the server.

(No output on stdout) stderr: /bin/sh: -c: line 0: unexpected EOF while looking for matching `''

The user account I am using is a domain account with admin privileges to all servers. Here is the command that is generated when I use the wizard, domain/user & password changed for security reasons.

check_xi_service_wmiplus!'DOMAIN/USER'!'PASSWORD'!checkmem!-s physical -w '80' -c '90'

I have also tried using the local box admin account and creating a specific local account for this process and they all return the same error. Can anyone explain why this is occurring and how to fix it?
Thanks.
Most people have a full measure of life...
and most people just watch it slowly drip away.
But if you can summon it all up...
at one time...
in one place...
you can accomplish something...
glorious.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: WMI error

Post by slansing »

Can you manually run your wmi check from the XI server's ssh session and post the output? Just to see if we get anything different and have a good place to start with troubleshooting:

Code: Select all

/usr/local/nagios/libexec/check_wmi_plus.pl -u 'Dom/User' -p 'password' -m checkmem -s physical -w '80' -c '90'
User avatar
kfree71
Posts: 2
Joined: Wed Oct 15, 2014 2:35 pm
Location: Mesa, AZ

Re: WMI error

Post by kfree71 »

Slansing,
I just found the issue, you cant use special characters in the password and all of my AD service accounts have special characters in them. I created a local account with a simple password on the server I was testing with and was able to get everything working.

I would like to know if there is a way to modify the command string to allow it to utilize special characters in the password.

Thanks for a quick response.
Most people have a full measure of life...
and most people just watch it slowly drip away.
But if you can summon it all up...
at one time...
in one place...
you can accomplish something...
glorious.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: WMI error

Post by lmiltchev »

Have you tried placing the password with the special characters in the resource.cfg file as described in our documentation?

http://assets.nagios.com/downloads/nagi ... Macros.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked