Installing Zenoss Network Monitor on a Ubuntu Server
Installing Zenoss Network Monitor on a Ubuntu ServerThis tutorial shows how to install and configure the Zenoss network monitoring tool on a Ubuntu 6.06 system. Zenoss is a free open-source tool that allows you to monitor servers, applications, networks, power, etc. regarding their configuration, availability, performance, and so on. It can also alert you by email if it finds inappropriate actions. 1. Install LAMP server from Ubuntu server CD (Dapper+Zenoss min requirements: 150mb+232mb=382mb ram, 2gb disk (1.3gb used, 0.7gb free for data). This install tested on vmware server 1.0.1. If you don't have LAMP installed, see below. 2. Login as default user. Install ssh so you can Putty (remote terminal) from your desktop: sudo apt-get install ssh
sudo passwd root (give new password for root)
nano /etc/apt/sources.list
apt-get upgrade
apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server (LAMP) 7. Ubuntu server installs using DHCP - we should be using a static IP. Since we might be monitoring multiple IPs (eg 192.x.x.x and 10.x.x.x), we can add one or more aliases by adding additional "iface" lines with each interface labeled uniquely with eth0:name. nano /etc/network/interfaces
nano /etc/hosts 9. Restart the network: /etc/init.d/networking restart 10. Add zenoss user: adduser zenoss (use zenoss for password if security not an issue) 11. Add zenoss install directory: mkdir /usr/local/zenoss 12. Login as zenoss user and set up some variables in login script: su zenoss 13. Some zenoss daemons require root access, so add zenoss to sudo users. Login as root: zenoss zenoss = NOPASSWD: /usr/local/zenoss/bin/*,/bin/kill 14. Zenoss requires the mysql root password to be not blank (default), so we need to change the mysql password. Login as root: /etc/init.d/mysql stop (stop mysql) 15. Get latest zenoss tarball from this download link (first box below). I don't recommend using subversion to download since it gets the latest beta release, not the stable release. To use svn need to download svn first from universe (second box). Or if you have downloaded zenoss to a windows server, then you need to mount a windows share to access that download (third box). Login as root and do one of the following three steps: su zenoss (login as zenoss) Or: apt-get install svn-buildpackage (only if you want svn) Or: mkdir /media/windows 16. Install zenoss from its install directory. For mysql, use the default root user, with the password you used in step 14. For zenoss password, create a new one: cd zenoss* 17. If install fails, cleanup with: make clean 18. If install says successful, browse to zenoss: Go to http:// 192.168.3.10:8080/zport/dmd 19. To monitor your zenoss server, install SNMP agent. After installing, you need to configure it to allow 'public' to read all OIDs (default is to read very few OIDs): apt-get install snmpd If not familar with snmpconf, select these menu options: 2: ./snmpd.conf 20. Default ubuntu mail agent (MTA) is exim4, which may need to be setup if you want email alerts to work with a remote mail server (mail.mydomain.inc). First line may be needed if exim4 not installed: apt-get install exim4 exim4-config (install if needed) 21. To test mail agent, need to install a frontend (MUA - mail) to exim4: apt-get install mailutils 22. For Windows monitoring, install SNMP from add/remove Windows monitoring components, then install SNMP-Informant - download the free SNMP for Windows. 23. Read the Zenoss Admin guide. 24. To add zenoss daemons to run at boot up, login as root. Apached runtime is 90, so we use 95 to have it run after it and mysql. Also need to modify zenoss script for ZENHOME path: cp $ZENHOME/bin/zenoss /etc/init.d 25. To test a vmware preconfigured Zenoss (Fedora, not Ubuntu), click here for rBuilder and select recent releases. 26. Thanks to the following useful ubuntu / mysql / zenoss sites:
|



Recent comments
2 hours 46 min ago
6 hours 58 min ago
11 hours 14 min ago
19 hours 58 min ago
21 hours 49 min ago
23 hours 1 min ago
1 day 11 hours ago
1 day 17 hours ago
1 day 19 hours ago
1 day 22 hours ago