Vmware servers?

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.
Locked
Jethro
Posts: 11
Joined: Thu Jun 07, 2012 9:25 am

Vmware servers?

Post 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
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Vmware servers?

Post 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.
Jethro
Posts: 11
Joined: Thu Jun 07, 2012 9:25 am

Re: Vmware servers?

Post 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?
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Vmware servers?

Post by agriffin »

You need to set register to 1 instead of 0.
Locked