Page 1 of 1

ESX3 CRITICAL - Unknown HOST-VM command

Posted: Wed Jul 25, 2012 3:50 pm
by mellor
Im monitoring my VM's cpu, memory, etc...
And in the fourth argument, I placed the normal syntax for a warning:
-w #
*I don't actually put the # symbol of course, I place whatever numeric value for that particular service.
It doesn't seem to also follow the warning or critical syntax. It can just meet over the Warning number and it'll still send CRITICAL with the above "esx3 critical - unknown host-vm command".

Re: ESX3 CRITICAL - Unknown HOST-VM command

Posted: Wed Jul 25, 2012 4:47 pm
by scottwilkerson
Can you give the full command you are trying to execute.

Thanks

Re: ESX3 CRITICAL - Unknown HOST-VM command

Posted: Wed Jul 25, 2012 4:53 pm
by mellor
It's the automated configuration from the wizard.
So:
Command view: $USER1$/check_esx3.pl -H "$HOSTADDRESS$" -f "$ARG1$" -N "$ARG2$" -l "$ARG3$"$ARG4$

Arg1: /usr/local/nagiosxi/etc/components/vmware/38_102_156_10_auth.txt
Arg2: My VM here
Arg3: CPU
Arg4: -w 80

I've also tried check_stuff -w80, same result.
Not only that, now each service I've placed the Arg4 syntax for, comes up with the same notification every hour on the hour it was updated.

Re: ESX3 CRITICAL - Unknown HOST-VM command

Posted: Wed Jul 25, 2012 5:04 pm
by scottwilkerson
The command doesn't have a space between "$ARG3$"$ARG4$

So when you enter $ARG4$ you need to prefix it with a space

Re: ESX3 CRITICAL - Unknown HOST-VM command

Posted: Wed Jul 25, 2012 5:17 pm
by mellor
Thank you with such a swift reply.
In the command View section, it leaves me incapable of editing that plugin.
It's entitled check_esx3_guest and im located in the user/local/nagios/libexec section, but unable to find it to see if i can manually edit it.

Re: ESX3 CRITICAL - Unknown HOST-VM command

Posted: Wed Jul 25, 2012 6:42 pm
by mellor
Figured it out.
Nevermind, Thank you again.