Zenoss 2.0 core installation guide for CentOS. Looks like network and server monitoring has gone web 2.0

View the Zenoss screen shots

This is a how to on installing Zenoss 2.0 core on a new Centos 5.0 installation. This guide assumes a new Centos 5 install with the default "server" software selection, no gui, and has SElinux disabled, if it is not disabled run setenforce 0 as root before starting. If you want to install the old 1.2 version of Zenoss here is the guide

I installed the server server on my internal network, not the DMZ so SElinux being disabled is not a major concern.

For hardware I am using a Dell power edge 1800 with 2 gigs of ram, 135 gig hard drive, and two 2.x Xenon processors. I would suggest using dedicated hardware for monitoring because of system overhead.

Log-in as root and run the following commands.
yum -y install mysql mysql-server net-snmp net-snmp-utils

Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: perl-DBI ######################### [1/8]
Installing: mysql ######################### [2/8]
Installing: net-snmp-libs ######################### [3/8]
Installing: perl-DBD-MySQL ######################### [4/8]
Installing: lm_sensors ######################### [5/8]
Installing: net-snmp ######################### [6/8]
Installing: net-snmp-utils ######################### [7/8]
Installing: mysql-server ######################### [8/8]


Check if MySQL is running.
service mysqld status

If it is not running start it.
service mysqld start
***DO NOT CHANGED THE ROOT MYSQL PASSWORD IT MUST BE BLANK FOR THE INSTALL TO WORK***

Download Zenoss 2.0 for REL 5

cd to the zenoss RPM and install.
rpm -Uvh zenoss-2.0.0-0.el5.i386.rpm

[root@dan ~]# rpm -Uvh zenoss-2.0.0-0.el5.i386.rpm
Preparing... ########################################### [100%]
1:zenoss ########################################### [100%]


Start snmpd.
/etc/init.d/snmpd start

Start zenoss.
/etc/init.d/zenoss start

[root@dan ~]# /etc/init.d/zenoss start
Zenoss not initialized. Performing first-boot initialization...
Stopping snmpd: [FAILED]
<----------- Not a problem, you did not do the "Start snmpd" step above.
Starting snmpd: [ OK ]
<-------------- Problem fixed itself.
Stopping MySQL: [ OK ]
Starting MySQL: [ OK ]
Wrote file /opt/zenoss/etc/zeo.conf
Wrote file /opt/zenoss/bin/zeoctl
Changed mode for /opt/zenoss/bin/zeoctl to 755
Wrote file /opt/zenoss/bin/runzeo
Changed mode for /opt/zenoss/bin/runzeo to 755
Starting Zope Object Database
. daemon process started, pid=3355
Loading initial Zenoss objects into the Zeo database
(this can take a few minutes)
<------------------------------------------- Understatement of the year.
ZentinelPortal loaded at zport
Stopping Zope Object Database
. daemon process stopped
Zenoss initialization complete.
Daemon: zeoctl . daemon process started, pid=3409
Daemon: zopectl . daemon process started, pid=3413
Daemon: zenhub starting...
Daemon: zenping starting...
Daemon: zensyslog starting...
Daemon: zenstatus starting...
Daemon: zenactions starting...
Daemon: zentrap starting...
Daemon: zenmodeler starting...
Daemon: zenperfsnmp starting...
Daemon: zencommand starting...
Daemon: zenprocess starting...
Daemon: zenwin starting...
Daemon: zeneventlog starting...
Daemon: zenwinmodeler starting...
--22:19:25-- http://localhost.localdomain:8080/zport/dmd/DeviceLoader/loadDevice?deviceName=localhost.localdomain&devicePath=/Server/Linux
Resolving localhost.localdomain... 127.0.0.1
Connecting to localhost.localdomain|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/dev/null'
[ <=> ] 11,880 3.20K/s in 3.6s
22:19:29 (3.20 KB/s) - `/dev/null' saved [11880]

If you have a firewall open port 8080 inbound accept.
iptables -I RH-Firewall-1-INPUT -p tcp --dport 8080 -j ACCEPT

Now open a browser (firefox) and go to.
http://example.com:8080

Also check that everthing is set to start up after reboot. If not add it.

chkconfig --level 345 mysqld on
chkconfig --level 345 snmpd on

 

I will post how to import a MIB file, create custom template and add it to a new class soon.