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)

22nd Dec 2009 : I needed  a XenServer at home to work on some project for my company (Activlan), I didn't want a real server because it would be too noisy in my apartment :) So I was looking for a silent computer and I made my choice with the elements bellow : Case : Lian Li PC-V351B Power Supply : Silverstone Nightjar ST45NF - 450W MotherBoard : Asus Maximus II Gene Cpu : Intel® Core™ 2 Quad Q9550 Ram : G.Skill Extreme Series MQ 4x4096Mo PC6400 Dual Channel CAS6 Video : PNY Quadro NVS 295 PCI-E 16x (for another workstation #XD4) Hard Drive : Seagate Barracuda ES.2 S-ATA - 1000 Go - 32 Mo (x2) I though it would work fine, just some question were remaining : The network adapter on the Asus motherboard might not be compatible with XenServer and I did choose two hard drive to build a RAID 1 but I though XenServer wouldn't be able to recognize the sata RAID controller. I was right on the Sata Raid controller, it was too mainstream chip raid controller so I never got it working. The network card was fine I just got some issue with XenServer 5.6 and the checksum calculation, I had to disable the TCP Offload on the hypervisor (eq : not the vms). Hard drives, the Seagate are not a good product at all, I got 5 break down in less than 2 years, I will never buy enterprise class Seagate again. Then in june 2011, the motherboard died... 10th Jun 2011 : The motherboard is dead... Maybe it has been the source of all the recent system crashes I had... So I got to move on and chose a new motherboard. I chose Intel DQ67OW, with a new CPU an Intel Core i7 2600 which contain the virtualization instructions I missed with the previous CPU (VT-d). Case : Lian Li PC-V351B Power Supply : Silverstone Nightjar ST45NF - 450W MotherBoard : Intel DQ67OW Cpu : Intel® Core™ i7 2600 Memory : Kingstone 16GB 1333MHz DDR3 ECC Reg CL9 DIMM (Kit of 2) DR x4 w/TS Intel Video : PNY Quadro NVS 295 PCI-E 16x (for another workstation #XD4) Hard Drive : Seagate Barracuda ES.2 S-ATA - 1000 Go - 32 Mo (x2) for vms Hard Drive : Seagate Barracuda® XT SATA Revision 3.0 - 2 To - 64 Mo for vms Hard Drive…