I have got 2.1.90 running now. But the next problem is zenping not running.
This is what I did. Main difference is using zenctl as init.d script instead of zenoss. I did have to edit its variables manually though. And it's a slightly newer build number. Create user: useradd zenoss passwd zenoss Add this to users environment: vi /home/zenoss/.bashrc export ZENHOME=/opt/zenoss export PYTHONPATH=$ZENHOME/lib/python export PATH=$ZENHOME/bin:$PATH Create the Zenoss install directory and set ownership mkdir /opt/zenoss chown zenoss /opt/zenoss Setup MySQL: /etc/init.d/mysqld restart mysqladmin -u root password 'new-password' mysqladmin -u root -h localhost -p password 'new-password' Login as user su - zenoss Download latest build code: cd /home/zenoss svn co http://dev.zenoss.org/svn/trunk/inst zenossinst Checked out revision 8924. Build Zenoss cd zenossinst ./install.sh Password for the Zenoss "admin" user ['password']: Enter the password again: MySQL server hostname [localhost]: MySQL server root username [root]: MySQL server root password ['password']: MySQL event database name [events]: MySQL username for Zenoss events database [zenoss]: MySQL password for zenoss ['password']: MySQL server port [3306]: ... 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=25479 Loading initial Zenoss objects into the Zeo database (this can take a few minutes) ZentinelPortal loaded at zport Starting Zope Server . daemon process started, pid=25497 ========================================================= zensocket must be setuid. As root, execute the following: chown root:zenoss /opt/zenoss/bin/zensocket chmod 04750 /opt/zenoss/bin/zensocket ========================================================= Successfully installed Zenoss cp /opt/zenoss/bin/zenctl /etc/init.d/zenoss vi /etc/init.d/zenoss # environment variables export ZENHOME="/opt/zenoss" export RUNUSER="zenoss" export SNMPD_CONF="/opt/zenoss/etc/snmpd.conf" export MY_CNF="/etc/mysql/my.cnf" export ZOPE_USERNAME="admin" export ZOPE_PASSWORD="'password'" export ZOPE_LISTEN_PORT="8080" export PYTHON="/opt/zenoss/bin/python" /etc/init.d/zenoss stop /etc/init.d/zenoss start /etc/init.d/zenoss status Daemon: zeoctl program running; pid=15784 Daemon: zopectl program running; pid=15788 Daemon: zenhub program running; pid=15802 Daemon: zenping not running Daemon: zensyslog program running; pid=15850 Daemon: zenstatus program running; pid=15853 Daemon: zenactions program running; pid=15868 Daemon: zentrap program running; pid=15915 Daemon: zenmodeler program running; pid=15926 Daemon: zenperfsnmp program running; pid=15948 Daemon: zencommand program running; pid=15971 Daemon: zenprocess program running; pid=15994 Daemon: zenwin program running; pid=16011 Daemon: zeneventlog program running; pid=16025 Daemon: zenwinmodeler program running; pid=16042 Login to Zenoss zenping isn't running because of: 2008-04-08 09:42:34 INFO zen.ZenPing: started 2008-04-08 09:42:34 WARNING zen.ZenPing: Reconnected to ZenHub 2008-04-08 09:42:34 INFO zen.ZenPing: fetching monitor properties 2008-04-08 09:42:34 INFO zen.ZenPing: fetching default RRDCreateCommand 2008-04-08 09:42:34 INFO zen.ZenPing: getting threshold classes 2008-04-08 09:42:34 INFO zen.ZenPing: getting collector thresholds 2008-04-08 09:42:34 INFO zen.ZenPing: getting ping tree 2008-04-08 09:42:35 ERROR zen.ZenPing: [Failure instance: Traceback (failure with no frames): Products.ZenHub.PBDaemon.RemoteException: Remote exception: ZODB.POSException.ConnectionStateError: Cannot close a connection joined to a transactionTraceback (most recent call last): File "/opt/zenoss/Products/ZenHub/PBDaemon.py", line 44, in inner return callable(*args, **kw) File "/opt/zenoss/Products/ZenHub/services/PingConfig.py", line 30, in remote_getPingTree conn.close() File "opt/zenoss/lib/python/Products/ZODBMountPoint/Mount.py", line 226, in close self._real_close() File "opt/zenoss/lib/python/ZODB/Connection.py", line 240, in close raise ConnectionStateError("Cannot close a connection joined to " ConnectionStateError: Cannot close a connection joined to a transaction ] Traceback (most recent call last): File "/opt/zenoss/Products/ZenUtils/Driver.py", line 46, in _next self.iter.next().addBoth(self._finish) File "/opt/zenoss/Products/ZenStatus/zenping.py", line 152, in loadConfig self.pingtree = driver.next() File "/opt/zenoss/Products/ZenUtils/Driver.py", line 58, in next raise ex RemoteException: Remote exception: ZODB.POSException.ConnectionStateError: Cannot close a connection joined to a transactionTraceback (most recent call last): File "/opt/zenoss/Products/ZenHub/PBDaemon.py", line 44, in inner return callable(*args, **kw) File "/opt/zenoss/Products/ZenHub/services/PingConfig.py", line 30, in remote_getPingTree conn.close() File "opt/zenoss/lib/python/Products/ZODBMountPoint/Mount.py", line 226, in close self._real_close() File "opt/zenoss/lib/python/ZODB/Connection.py", line 240, in close raise ConnectionStateError("Cannot close a connection joined to " ConnectionStateError: Cannot close a connection joined to a transaction 2008-04-08 09:42:36 INFO zen.ZenPing: delete pidfile /opt/zenoss/var/zenping-localhost.pid 2008-04-08 09:42:36 INFO zen.ZenPing: Daemon ZenPing shutting down 2008-04-08 09:42:36 INFO zen.ZenPing: zenping shutting down -------------------- m2f -------------------- Read this topic online here: http://community.zenoss.com/forums/viewtopic.php?p=18211#18211 -------------------- m2f -------------------- _______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
