Automation is definitely necessary, and let's say common for the cloud or virtualization environment, especially it saves us lots of time by automatically setting up the servers to be monitored.
I believe that Zabbix is one of the most famous open source monitoring software which has been popular for the recent years.
I am pretty sure that there are other monitoring softwares to achieve it, such as Hinemos, Hyperic HQ, Sensu, and so on.
Here, I tried installing Hyclops for Zabbix to achieve automatically registering the EC2 instances to be monitored on AWS.
This is how to install Hyclops for Zabbix based on the official installation manual with some comments added.
OS CentOS 6.4
Python, Python packages
ordereddict, argparse if phython is less than 2.7
tornade-2.4.1tornade-2.4.1 is recommended because 3.x has some issues in attribute settings and it fails to run gateone with the message below. If pip is used to install tornade, tornade-3.x is installed.
PIL(Python Image Library)
boto if monitoring aws billing stats is needed
installed python modules
Modifying init script for GateOne to display the status function normally
Configuring GateOne Cf. http://liftoff.github.io/GateOne/About/index.html
Installing & Setting up Hyclops
Replacing some Zabbix dashboard filesIt is possible to specify 2.2 with the command option, but it has not been actually implemented yet.
This issue has been solved as Hyclops begins to support Zabbix-2.2.
Importing Zabbix templates,scripts and globalmacro dataSetting cron script
Zabbix Macro/Host settingsFollow the steps at the official site to setup the macros for AWS access and secret key,
you will be able to see the instances registered at the Zabbix dashboard.
I just only tried AWS EC2 setting, not vSphere ESXi.
I'm looking forward to Hyclops to be updated for Zabbix-2.2!