Page 1 of 2

Error for the VMWare Host Runtime Health

Posted: Wed Sep 27, 2017 8:58 am
by amitgupta19
We are monitoring the VM using the Plugin.

All the parameters are reporting correctly.

But only "VMWare Host Runtime Health" is giving the following Error : "CHECK_ESX3.PL UNKNOWN - HOST RUNTIME Unknown error "

Not sure how to resolve this.

Re: Error for the VMWare Host Runtime Health

Posted: Wed Sep 27, 2017 11:33 am
by kyang
Could you show you us your service definition for "VMWare Host Runtime Health", Along with your command?

also, can you post the output of this

Code: Select all

cd /usr/local/nagios/libexec
./check_esx3.pl -V
Have you tried adding a -t for timeout argument, to see if that helps?

Code: Select all

$USER1$/check_esx3.pl -H "$HOSTADDRESS$" -t 59 -f "$ARG1$" -l "$ARG2$" $ARG3$
Let us know

Re: Error for the VMWare Host Runtime Health

Posted: Thu Sep 28, 2017 7:41 am
by amitgupta19
I am not able to find that where the Service definition for the "VMWare for the Host Run Time Health" is defined.

I am not able to find the folder "libexec" in the Nagios Folder.

Please suggest.

Re: Error for the VMWare Host Runtime Health

Posted: Thu Sep 28, 2017 9:34 am
by kyang
What OS are you running? It may be a different path. Where are your plugins located?

Can you run this command, and show me the output.

Code: Select all

find / -name check_esx3.pl
If you could also send me your command.cfg and the host cfg that is running the service "VMWare Host Runtime Health" (However you defined this host/service would be helpful)

Re: Error for the VMWare Host Runtime Health

Posted: Thu Sep 28, 2017 11:56 am
by amitgupta19
It is installed on the Cent OS

I am able to find the Plugins(Thanks for your support) and here is the output of the command you requested.

check_esx3.pl 0.5.0

Now you just let me know, how to find the command.

Re: Error for the VMWare Host Runtime Health

Posted: Thu Sep 28, 2017 12:06 pm
by amitgupta19
Also i tried adding the -t argument.
But it is also not working.

Re: Error for the VMWare Host Runtime Health

Posted: Thu Sep 28, 2017 1:51 pm
by kyang
From the Nagios, can you run these commands and let me know the output.

Code: Select all

cd /your plugin path
./check_esx3.pl -H <Host> -u <username> -p <password> -l runtime

Code: Select all

cd /your plugin path
./check_esx3.pl -H <Host> -u <username> -p <password> -l health
Also, you said other services worked. Can you give us the cfg file for your VMWare host?

Re: Error for the VMWare Host Runtime Health

Posted: Fri Sep 29, 2017 7:44 am
by amitgupta19
Hey Kyang,

I am really sorry, that i don't know the username and password that has been used here.

Is there a way to find username and password, that has been configured?


cfg file for the vmware host, i am not aware where it is available. Can you tell me the name of the file?

Re: Error for the VMWare Host Runtime Health

Posted: Fri Sep 29, 2017 9:33 am
by kyang
No worries, I see that you are using a macro in place of the username and password

Code: Select all

-u $USER20$ -p $USER12$
If your other service checks work, then it's likely someone has added these macros into your resource.cfg

Code: Select all

find / -name resource.cfg
I don't know how your file paths are set up usually, they are in the path below. Try doing this and show us the output.

Code: Select all

ls /usr/local/nagios/etc/objects
Run the commands above, and find where you defined this service for runtime health.
cfg file for the vmware host, i am not aware where it is available. Can you tell me the name of the file?
I just want to see the output of these two commands. Can you change the command of your check_esx3_host_runtime_health Just delete the -s health and show us the output.

Code: Select all

$USER1$/check_esx3.pl -H $HOSTADDRESS$ -u $USER20$ -p $USER12$ -l runtime 

Re: Error for the VMWare Host Runtime Health

Posted: Fri Sep 29, 2017 11:33 am
by amitgupta19
ls /usr/local/nagios/etc/objects

This file or directory does not Exists

Output of the above 2 commands is attached for your referrence.