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

Re: Error for the VMWare Host Runtime Health

Post by kyang »

Is the output for "-l runtime" not what you are looking for?

Code: Select all

$USER1$/check_esx3.pl -H $HOSTADDRESS$ -u $USER20$ -p $USER12$ -l runtime 
The -l runtime seems to be ok to me since the -s health is still unknown output. What exactly are you trying to get from the health check? I see this in the Exchange.

Code: Select all

+ health - checks cpu/storage/memory/sensor status
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Re: Error for the VMWare Host Runtime Health

Post by amitgupta19 »

There is another parameter called "VMWare Host Run Time Status " is reporting correctly.

In the check_commands.cfg it's command is mentioned as

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

But if i run this command manually from the folder where check_esx3.pl exists, then it is giving the Error as Unknown Host Command. So i thought Runtime Health should also report correctly.

Where i can find the service configuration for the VMWare hosts? So that i can remove the "Runtime Health"?

After deleting the "-s health" from the command it has started reporting "OK"
kyang

Re: Error for the VMWare Host Runtime Health

Post by kyang »

Sounds good.

It depends, are you able to show me your nagios.cfg?

The service should be defined under your host.cfg --> by that I mean the place where you defined your host.

It might be with your other cfg files? Try this command and see if your host cfg is there for this service.

Code: Select all

find / -name localhost.cfg
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Re: Error for the VMWare Host Runtime Health

Post by amitgupta19 »

Hi Kyang,

I have one more query.
I have to monitor a new VMWare Host.
What configuration/installation do i need to do at the VMWare Host?

Please suggest, any links will be appreciated?
kyang

Re: Error for the VMWare Host Runtime Health

Post by kyang »

Are you monitoring another VMware host that is the same as this one?
Does it also do the same service checks?

If you were able to monitor this VMWare host, I would say create a new host cfg file for the new VMWare host.
Copy over your definitions from your other VMware host to this new VMware hosthost and services --> change the IP address of that VMWare host --> add the cfg file into the nagios.cfg

It shouldn't be too much different from how you are monitoring this VMware host.
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Re: Error for the VMWare Host Runtime Health

Post by amitgupta19 »

I can see that previous VMWare hosts has been added to the host.cfg file and services.cfg file.

But i am wondering that whether i need to install any client on the VMWare host?

I will try adding that host to the host.cfg file and services.cfg file.
kyang

Re: Error for the VMWare Host Runtime Health

Post by kyang »

It shouldn't need anything as your Nagios should have all the prerequisites if you are monitoring a VMware host now.

Add it in, and let us know how it goes!
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Re: Error for the VMWare Host Runtime Health

Post by amitgupta19 »

Hi Kyang,

I added the VMWare host in the host.cfg file and service.cfg file .

it is working as expected.

Thanks for your support all thorough.
kyang

Re: Error for the VMWare Host Runtime Health

Post by kyang »

Glad it's working now! I'll be closing this topic as resolved!

If you have any more questions, feel free to create another thread!

Thank you for using the Nagios Support Forum!
Locked