Nicholas,
Here are my install procedures. Hope they help. I included mysql and
apache install instructions as well.
Thanks,
-Daniel
Pietrangelo, Nicholas wrote:
Does anyone have any instructions in a "nutshell" on how to setup a
new Zenoss environemt from scratch?
Thanks in advance,
Nick P
The information contained in this e-mail message is privileged and/or
confidential and is intended only for the use of the individual or entity
named above. If the reader of this message is not the intended
recipient, or the employee or agent responsible to deliver it to the
intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please immediately
notify us by telephone (330-668-5000), and destroy the original
message. Thank you.
------------------------------------------------------------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users
[EMAIL PROTECTED] tmp# cd /tmp
[EMAIL PROTECTED] tmp# rpm -i MySQL-server-standard-5.0.27-0.rhel3.i386.rpm
[EMAIL PROTECTED] tmp# rpm -i MySQL-client-standard-5.0.27-0.rhel3.i386.rpm
[EMAIL PROTECTED] tmp# rpm -i MySQL-devel-standard-5.0.27-0.rhel3.i386.rpm
MySQL-shared-compat-5.0.27-0.rhel3.i386.rpm
MySQL-shared-standard-5.0.27-0.rhel3.i386.rpm
[EMAIL PROTECTED] tmp# rpm -qai MySQL| grep MySql
MySQL-client-standard-5.0.27-0.rhel3
MySQL-server-standard-5.0.27-0.rhel3
MySQL-devel-standard-5.0.27-0.rhel3
MySQL-shared-standard-5.0.27-0.rhel3
[EMAIL PROTECTED] tmp# mysql -u root -p
mysql> SET PASSWORD FOR 'root'@'netcool1' = PASSWORD('password');
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('password');
mysql> select User,Host,Password from mysql.user;
+----------------------------------------------------------+
| User | Host | Password |
+----------------------------------------------------------+
| root | localhost | *F180F120AEA79DEB12038E13C4B813FBC8C2C46D |
| root | netcool1 | *F180F120AEA79DEB12038E13C4B813FBC8C2C46D |
| | netcool1 | |
| | localhost | |
+----------------------------------------------------------+
4 rows in set (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)
[EMAIL PROTECTED] tmp# cd /etc/init.d
[EMAIL PROTECTED] init.d# lscd /etc/init.dmysql -u root -p
Enter password:
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| test |
+--------------------+
3 rows in set (0.00 sec)
mysql> drop database test;
Query OK, 0 rows affected (0.00 sec)
[EMAIL PROTECTED] init.d# mysqladmin -u root -p password status
Enter password:
Uptime: 444 Threads: 1 Questions: 18 Slow queries: 0 Opens: 17 Flush tables: 1
Open tables: 11 Queries per second avg: 0.041Apache 2.2.3 Install Instructions
cd /opt
mkdir apache
cd apache
mkdir apache_2.2.3
cd /tmp
cp http-2.2.3.tar.gz ~netcool
tar xvzf http-2.2.3.tar.gz
cd http-2.2.3
./configure --prefix=/opt/apache/apache_2.2.3 --enable-defalte --enable-ssl
--enable-so --enable-rewrite --enable-with-mpm-=worker
make clean
make
make install
cd /opt/apache/apache_2.2.3
rm -rf manual/
cd cgi-bin/
rm *
cd ../
cd icons/
find . -maxdepth 1 -type f -exec chmod 444 {} \;
cd ../
cd error
chmod 444 *.var
cd ../
cd include/
chmod 444 *
cd /tmp
rm -rf httpd-2.2.3User 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_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users