Wednesday, March 4, 2015

How to monitor your vms ? use zabbix

If you want to monitor your vms at one central place.
Use Zabbix

1) Bring up a zabbix server

https://www.digitalocean.com/community/tutorials/how-to-install-zabbix-on-ubuntu-configure-it-to-monitor-multiple-vps-servers


2)  install zabbix-agents on your vms and edit the (hostname, server, serveractive) fields in config files

    rpm -Uvh http://repo.zabbix.com/zabbix/2.2/rhel/7/x86_64/zabbix-release-2.2-1.el7.noarch.rpm
     yum install zabbix zabbix-agent
     vim /etc/zabbix/zabbix_agentd.conf 

3) configure the agents to run everytime the vm comes up


     systenctl start zabbix-agent.service
     systemctl start zabbix-agent.service
     systemctl status zabbix-agent.service
     ps -ax|grep zabbix

4) add your hosts to zabbix servers  now you can add some active checks(to push data) if you want else zabbix server will keep polling agent

5) Note:- if you want to automate the hostname and do not want to manually go edit it .. use HostnameItem = system.host   instead of Hostname

No comments:

Post a Comment