Page 2 of 2
Re: Error for the VMWare Host Runtime Health
Posted: Fri Sep 29, 2017 12:19 pm
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
Re: Error for the VMWare Host Runtime Health
Posted: Fri Sep 29, 2017 2:39 pm
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"
Re: Error for the VMWare Host Runtime Health
Posted: Fri Sep 29, 2017 2:53 pm
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.
Re: Error for the VMWare Host Runtime Health
Posted: Mon Oct 02, 2017 7:08 am
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?
Re: Error for the VMWare Host Runtime Health
Posted: Mon Oct 02, 2017 10:13 am
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.
Re: Error for the VMWare Host Runtime Health
Posted: Mon Oct 02, 2017 10:25 am
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.
Re: Error for the VMWare Host Runtime Health
Posted: Mon Oct 02, 2017 10:40 am
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!
Re: Error for the VMWare Host Runtime Health
Posted: Tue Oct 03, 2017 4:43 am
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.
Re: Error for the VMWare Host Runtime Health
Posted: Tue Oct 03, 2017 9:00 am
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!