Page 1 of 1
Vmware servers?
Posted: Mon Jul 09, 2012 6:09 am
by Jethro
Hello,
What would be the best way to monitor a vmware server through a Draytek firewall?
I'm quite new to nagios and any help would be greatly appreciated

Thanks,
Jethro
Re: Vmware servers?
Posted: Tue Jul 10, 2012 9:47 am
by mguthrie
I would look at one of the following plugins:
http://exchange.nagios.org/index.php?op ... =check_esx
From there you would just have to open the port in the firewall for the ESX api and set the Nagios server as an allowed host, not sure what the port number is off the top of my head, but I'm sure it's posted somewhere in VmWare's documentation.
Re: Vmware servers?
Posted: Fri Jul 13, 2012 7:32 am
by Jethro
Thanks, I'm using check_esx now, but I've ran into a little problem.
I put the following into /usr/local/nagios/objects/esx.cfg and added esx.cfg to the nagios.cfg.
define host{
host_name esxi01
check_period 24x7
check_interval 5
retry_interval 1
max_check_attempts 10
notification_period 24x7
notification_interval 120
notification_options d,u,r
contact_groups admins
register 0
alias VMWare ESXi 01
address xxx.xxx.xx.x (added in x's for security)
hostgroups esxi
}
But I keep getting this error when I try to verify the config files 'Error: Host 'esxi01' specified in service 'ESXi CPU Load' not defined anywhere!'
What have I done wrong?
Re: Vmware servers?
Posted: Fri Jul 13, 2012 9:47 am
by agriffin
You need to set register to 1 instead of 0.