Installing Zenoss Core on OpenVZ and Ubuntu-VEs
Monday, December 26th, 2011What is Zenoss Core?
Zenoss Core is a fabulous, Open Source, network and device monitor. It allows you to collect statistics, track uptime and get alerts for a wide array of devices and applications, i.e. printers, routers, Linux and Windows servers, Varnish cache and many more.
It is important to see the performance of your digital assets, to ensure optimum experience for the users, and be able to react before someone notices the problems on the outside of your organisation.
Mission-critical components, i.e. corporate e-mail servers can be monitored with this solution.
Setting up Zenoss Core on an Ubuntu-VPS under OpenVZ
OpenVZ can be installed in a OpenVZ container. I chose to use the contributed Ubuntu 10.04 minimal template downloaded from OpenVZ.org. It will be a dedicated VE, just for Zenoss Core.
"ubuntu-10.04-minimal_10.04_amd64.tar.gz"
-
10.04 is LTS (long term supported)
- the minimal comes without Apache or other services
The installation of the Zenoss stack will fail if your resource limits (particularly memory) are set too low. Here's an excerpt from the configuration file of my VPS:
ONBOOT="yes"
# UBC parameters (in form of barrier:limit)
KMEMSIZE="14372700:14790164"
LOCKEDPAGES="256:256"
PRIVVMPAGES="1175000:1250000"
SHMPAGES="21504:21504"
NUMPROC="240:240"
PHYSPAGES="0:9223372036854775807"
VMGUARPAGES="33792:9223372036854775807"
OOMGUARPAGES="26112:9223372036854775807"
NUMTCPSOCK="360:360"
NUMFLOCK="188:206"
NUMPTY="16:16"
NUMSIGINFO="256:256"
TCPSNDBUF="1720320:2703360"
TCPRCVBUF="2703360:3003360"
OTHERSOCKBUF="1126080:2097152"
DGRAMRCVBUF="262144:262144"
NUMOTHERSOCK="360:360"
DCACHESIZE="3409920:3624960"
NUMFILE="9312:9312"
AVNUMPROC="180:180"
NUMIPTENT="128:128"# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="5242880:5242880"
DISKINODES="200000:220000"
QUOTATIME="0"# CPU fair sheduler parameter
CPUUNITS="1000"
You need to install wget and binutils.
apt-get install wget binutils
Then download the newest Zenoss Stack DEB package from Zenoss. The stack includes webserver, a dedicated MySQL instance and other things for running Zenoss. Choose from the native stacks (DEBIAN/UBUNTU), DEB based. In /tmp :
wget http://dev.zenoss.org/deb/dists/main/stable/binary-amd64/zenoss-stack_3.2.1_x64.deb
I used the x64 stack, as we have a 64bit server.
Install the stack using dpkg:
dpkg -i zenoss-stack_3.2.1_x64.deb
This will take quite some time! On finish, start Zenoss Core with
/etc/init.d/zenoss-stack start
Now you are finished with the console part. Fire up your browser, and go to the installation server's IP, port 8080. I.e. http://www.example.com:8080.
Here you will be asked to setup the admin password and a new user for "everyday usage". After creating them, you will be given the opportunity to automatically discover devices and servers, to manually set them up, or to skip to the dashboard. (You can, of course, always add devices and servers later on).
After getting to the dashboard, you can set up a Google Maps API Key. That is pretty self-explanatory, Zenoss Core will help you do it.
Good luck!
Further reading / watching:
Zenoss installation & monitoring a Linux server with SNMP
More information about this screencast on Castix – also includes the example snmpd.conf mentioned in the screencast.
Zenoss Core Getting Started – Adding Devices
Links
- Zenoss Blip.TV Channel (with how-to videos and discussions)