Error for the VMWare Host Runtime Health

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Error for the VMWare Host Runtime Health

Post 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.
kyang

Re: Error for the VMWare Host Runtime Health

Post 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
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Re: Error for the VMWare Host Runtime Health

Post 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.
kyang

Re: Error for the VMWare Host Runtime Health

Post 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)
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Re: Error for the VMWare Host Runtime Health

Post 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.
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Re: Error for the VMWare Host Runtime Health

Post by amitgupta19 »

Also i tried adding the -t argument.
But it is also not working.
Attachments
VMWare.PNG
kyang

Re: Error for the VMWare Host Runtime Health

Post 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?
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Re: Error for the VMWare Host Runtime Health

Post 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?
kyang

Re: Error for the VMWare Host Runtime Health

Post 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 
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Re: Error for the VMWare Host Runtime Health

Post 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.
Attachments
Output of the Commands
Output of the Commands
Locked