Page 1 of 1

ESX UNKNOWN - Cannot parse critical range: '$'

Posted: Thu Jun 08, 2017 5:54 am
by MouadMimouni
Hello,

I have installed Nagios and I want to monitor esx servers, using the Plugin Check VMwre API, so I installed vSphere SDK for Perl, but when i log in on nagios I have the problem with the following message (ScreenShot)

Thank you for your reply

Re: ESX UNKNOWN - Cannot parse critical range: '$'

Posted: Thu Jun 08, 2017 1:04 pm
by lmiltchev
Can you show us some of the failing checks, run from the command line, along with the output?

Re: ESX UNKNOWN - Cannot parse critical range: '$'

Posted: Fri Jun 09, 2017 3:38 am
by MouadMimouni
Hello, Thank you for your reply,

when i run command line, i don't have any error messages

Thanks

Re: ESX UNKNOWN - Cannot parse critical range: '$'

Posted: Fri Jun 09, 2017 6:25 am
by mdomanski
Could You please provide Your service and command definitions.

Re: ESX UNKNOWN - Cannot parse critical range: '$'

Posted: Fri Jun 09, 2017 8:14 am
by MouadMimouni
Hello,

Here are my configuration files

Thanks

Re: ESX UNKNOWN - Cannot parse critical range: '$'

Posted: Fri Jun 09, 2017 1:07 pm
by tgriep
One thing, verify that your $USER11$ and $USER12$ macros do not have an extra $ in the definition and if the password has a $ in it, enclose the password in single quotes.

Code: Select all

$USER12$='Pas$Word'
When you run the check from the command line, the "Possible Precedence" message should not be displayed and it also looks like it is a bug.
https://communities.vmware.com/thread/488747
You may want to try installing a different version of the VMWare Perl SDK of the fix suggested in the link.