I needed to monitor my Lab at home and check what I could do with Cacti to monitor Citrix XenServer, XenApp, XenDesktop, PVS, SQL etc... I chose to use a all in one distrib at first, CactiEZ (http://cactiez.cactiusers.org) but I ran out of possibilities very fast and CactiEZ is still based on a CentOS 4 version... If you don't care about the CentOS version, you do thing a lot more easy by using this distrib. I chose to use CentOS 5 (http://www.centos.org) for some other reasons but mostly because this OS is supported by XenServer. When you chose to start with a clean OS installation you need to know what you want to install, because either you install everything, including what you don't need, either you install almost nothing and install only what you'll need. I tried to make a clean work and chose to start with a clean installation, the lightest possible and install only what I would need. Minimal installation type, I just posted screenshots to let some of you follow the same step, I don't have any specific advanced knowledge on Linux stuff : Then once rebooted, you need to check your network configuration and make necessary change to make it work on your LAN. Before going with Cacti installation process, I wanted to have my CentOS distrib up to date, so I ran the following command : yum update Cacti will use SNMP so this is the command you need to run to install and enable SNMP : yum install net-smtp Cacti needs a database, I chose MySQL because this a the one I know the more and it's very easy to setup : yum install mysql yum install mysql-server Then to install Cacti using a yum command, you need to create a new file named dag.repo in the following directory : vi /etc/yum.repos.d/dag.repo past save this file and run : yum install cacti To be able to access Cacti web setup pages, you need to allow web access : vi /etc/httpd/conf.d/cacti.conf remove the line "deny from all" Now you need to start the MySQL service and apache web service and make those two services start automatically at you server boot. service mysql start service httpd start chkconfig --level 345 httpd on chkconfig --level 345 mysqld on To configure MySQL for Cacti ,you need to setup the access and create the database and user : Next…

Today I needed to enable SNMP on my XenServer lab at home, I was looking for an efficient way to monitor my XenServer. I found a Linux distribution very handy for a Cacti box, EZCacti, you can download it here : http://cactiez.cactiusers.org/download/ So to enable SNMP on XenServer 6, you need to follow the following guide. Please keep in memory you shouldn't do that on your XenServer in a production environment, Citrix won't be able to bring support if you modify the dom0. First step, you need to allow SMTP to be able to collect and allow Cacti to get information from SNMP on the port 161/UDP : Edit the file /etc/sysconfig/iptables with vi and add the following line : and then restart the iptables service using the following command line : service iptables restart Now you need to configure your SNMP settings (community etc...) by editing the following file with vi : /etc/snmp/snmpd.conf Make the change on your smtpd.conf file on the two line (in red) you can find in the example above, of course you'll need to change the IP range to match your network subnet. Now you need to start the SNMP service using the following command line : service snmpd start Finally, to enable the automatic start of the SNMP service at your XenServer startup, type : chkconfig snmpd on Now I can begin to work on Cacti and try to monitor the host and the VMs (Next blog to come)