Marcos,

Great! Glad to know it fixed your install.

Thanks,

-Daniel

Marcos Gileno wrote:

Thank you very much Daniel !

I just did what you told me to do and everything came fine this time...
Now, the hardest part, I guess, configuring it to take what I want...

Best regards,

Marcos...

Daniel McKinney escreveu:
Marcos,

What i learned (the hard way) is that it seems you need to null out the mysql root users' password during the installation. After the install is complete, you can re-add the root mysql user back to whatever it was. If you dont, it will create some tables, but not all tables. You may be getting a similar problem for your implementation.

Below is the procedure i use to install/upgrade my Zenoss installs:

Hope this helps,

-Daniel


    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
[edit <http://192.168.204.99/nocmediawiki/index.php?title=Zenoss&action=edit&section=2>]


    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
[edit <http://192.168.204.99/nocmediawiki/index.php?title=Zenoss&action=edit&section=3>]


    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
#----------------------------------------
[edit <http://192.168.204.99/nocmediawiki/index.php?title=Zenoss&action=edit&section=4>]


    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> flush privileges;
[edit <http://192.168.204.99/nocmediawiki/index.php?title=Zenoss&action=edit&section=5>]


    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
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:

[edit <http://192.168.204.99/nocmediawiki/index.php?title=Zenoss&action=edit&section=6>]


    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
[edit <http://192.168.204.99/nocmediawiki/index.php?title=Zenoss&action=edit&section=7>]


    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

[edit <http://192.168.204.99/nocmediawiki/index.php?title=Zenoss&action=edit&section=8>]


    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 'zenoss'@'localhost'=password('password');
  mysql> flush privileges;
Marcos Gileno wrote:
Hi there people !

I´m a newbie about zenoss, but I´m trying to install it in a FC-6 box. I´m have problem when finishing the installation: "Unable to create the initial Zenoss object database". After some searching at zenoss´s list, I found the subject "Trunk migrated to Zope 2.10.1" with people having the same problem. But after following it and some svn upgrade I could not resolve my problem. I´m sending my zenbuild, so if someone could clear-me with what is happening...

Thanks in advance !

------------------------------------------------------------------------

_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users
------------------------------------------------------------------------

_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users
------------------------------------------------------------------------

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 20/2/2007 13:44

_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to