User Setup
groupadd zenoss
useradd -c "Zenoss User" -d /home/zenoss -g zenoss zenoss
Add the following to the ~/zenoss/.bash_profile:
# Zenoss environment variables
ZENHOME=/usr/local/zenoss
export ZENHOME
PYTHONPATH=$ZENHOME/lib/python
export PYTHONPATH
PATH=$ZENHOME/bin:$PATH
export PATH
System Setup
mkdir /usr/local/zenoss
mkdir /usr/local/zenoss/include
mkdir /usr/local/zenoss/lib
cp -R /usr/local/include/* /usr/local/zenoss/include
cp -R /usr/local/lib/* /usr/local/zenoss/lib
chown -R zenoss:zenoss /usr/local/zenoss
Sudo Setup
Add the following to the bottom of /etc/sudoers file by issueing the "visudo"
command:
visudo
#---------------------------------------------
Defaults env_reset
Defaults env_keep = "PYTHONPATH ZENHOME"
zenoss ALL=(ALL) NOPASSWD: /usr/local/zenoss/bin/python,/usr/bin/kill
#----------------------------------------
Change the root MySql user to null
'Note: Start MySql (If it is not already started)'
mysql -u root -p
mysql> select User,Host,Password from mysql.user;
mysql> set password for 'root'@'localhost'=password('');
mysql> set password for 'root'@'netcool1'=password('');
mysql> flush privileges;
Install
cd /tmp
tar xvzf zenoss-1.0.2.tar.gz
chown -R zenoss:zenoss /tmp/zenoss-1.0.2
cd zenoss-1.0.2
su - zenoss
cd /tmp/zenoss-1.1.0
./install.sh
This installer actually builds Zenoss.
For a simpler installation try the VMPlayer Appliance image,
or use RPMs for Redhat based systems.
Building...
Password for the Zenoss "admin" user zenoss: <admin_password>
MySQL event database name events: <ENTER>
MySQL username for Zenoss zenoss_db database zenoss: <ENTER>
MySQL password for root zenoss: <ENTER>
Enter the password again: <ENTER>
Attempting to run python with sudo:
Testing
/usr/local/zenoss/bin/zenping start; ps -ef | grep zenping | grep -v grep
/usr/local/zenoss/bin/zenperfsnmp start; ps -ef | grep zenperfsnmp| grep -v grep
/usr/local/zenoss/bin/zenperfxmlrpc start; ps -ef | grep zenperfxmlrpc | grep
-v grep
/usr/local/zenoss/bin/zenmodeler start; ps -ef | grep zenmodeler | grep -v grep
/usr/local/zenoss/bin/zensyslog start; ps -ef | grep zensyslog | grep -v grep
(NOTE: Have to be root to start this one!)
/usr/local/zenoss/bin/zenactions start; ps -ef | grep zenactions | grep -v grep
/usr/local/zenoss/bin/zenstatus start; ps -ef | grep zenstatus | grep -v grep
/usr/local/zenoss/bin/zenoss status
Expected Output
Daemon: zeoctl program running; pid=20743
Daemon: zopectl program running; pid=20747
Daemon: zenxevent program running; pid=20752
Daemon: zenmodeler program running; pid=20761
Daemon: zenperfsnmp program running; pid=20770
Daemon: zenperfxmlrpc program running; pid=20792
Daemon: zenprocess program running; pid=20800
Daemon: zenping program running; pid=20807
Daemon: zensyslog program running; pid=20815
Daemon: zenstatus program running; pid=20824
Daemon: zenactions program running; pid=20833
Daemon: zentrap program running; pid=20849
Daemon: zencommand program running; pid=20870
Set the root MySql user's password back and set the zenoss mysql user's password
mysql -u root -p
mysql> select User,Host,Password from mysql.user
mysql> set password for 'root'@'localhost'=password('password');
mysql> set password for 'root'@'netcool1'=password('password');
mysql> flush privileges;
Side Notes
3.3 Setting Socket buffers on Unix platforms
- You may want to increase the size of the systems net buffers.
on linux in the file /etc/sysctl.conf, add:
net.core.rmem_default=1048576
net.core.rmem_max=1048576
net.core.wmem_default=1048576
net.core.wmem_max=1048576
to configure without a reboot:
sysctl -w net.core.rmem_default=1048576
sysctl -w net.core.rmem_max=1048576
sysctl -w net.core.wmem_default=1048576
sysctl -w net.core.wmem_max=1048576
Adding Zenoss to CheckConfig?
cp $ZENHOME/zenoss /etc/init.d
chkconfig --add zenoss
chkconfig --level 345 zenoss on
------------------------
Daniel McKinney
-------------------- m2f --------------------
Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=5345#5345
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users