Wow! I can't believe how detailed your procedure is! :)
We'd definitely like to have a debian package one day - are you
interested in helping us build it?
-c
On Mar 29, 2007, at 2:31 AM, trs80 wrote:
So I saw Zenoss linked from slashdot, and thought I'd give it a
shot, having recently tried Zabbix and OpenNMS and finding neither
was much good. So I downloaded it and noticed that it came with a
whole bunch of third-party packages. Most of them were already
available as Debian so I had a shot at installing Zenoss using them
instead. I seem to have been successful, so here's how I did it:
Firstly, create a zenoss user and grab the source:
Code:
# adduser --system --shell /bin/bash --home /srv/zenoss --ingroup
src --disabled-password
# mkdir /srv/zenoss
# su zenoss
$ cat >> /srv/zenoss/.bashrc
export ZENHOME=/srv/zenoss
export PYTHONPATH=$ZENHOME/lib/python
export PATH=$ZENHOME/bin:$PATH
^D
$ cd /usr/src
$ wget http://downloads.sourceforge.net/zenoss/zenoss-1.1.1.tar.gz
$ tar zxvf zenoss-1.1.1.tar.gz
Then we have a look at what packages are required that are already
in Debian, and install them:
Code:
$ cd zenoss-1.1.1
$ ls exernallibs
$ exit
# apt-get install python-dev zope2.9 libsmi2 python-crypto python-
twisted python-pydot yapps2 python-rrd python-simplejson python-
pyparsing python-elementtree python-mysqldb
Missing are twistedsnmp (currently in NEW), pysnmp (needs version 3
for some reason), snpplib (for paging), winexe (from Samba4) and I
think that's it. Leave a comment if I've forgotten something.
Now we step through the install process by hand:
Code:
# su - zenoss
$ cd /usr/src/zenoss-1.1.1
$ . shared-functions.sh
$ . build-functions.sh
$ set_vars
$ set_make
$ set_zopepasswd
$ run_checks
$ set_mysql
$ make datestamp
$ make libzenoss-install
$ make snpp-install
$ pushd build/snpplib-1.1 && python setup.py install (this step
might not be necessary)
$ popd
$ make winexe-install
$ cd build/winexe-0.7/bin
$ cp winexe $ZENHOME/bin
$ cd ../../..
$ make config-install
$ create_database
$ run_zeneventbuild
Now we create the zope and zeo instances using dzhandle:
Code:
$ su
# dzhandle -z2.9 -u zenoss make-zeoinstance zenoss --addon-
mode=manual --user=admin:zenoss --service-user=zenoss:zope --
service-port=8080
# dzhandle -u zenoss-z2.9 make-zeoinstance zenoss
# cd /var/lib/zope2.9/instance/zenoss
# rmdir Products
# ln -s /srv/zenoss/Products
# cd etc
# for i in /srv/zenoss/etc/*conf; do ln -s $i;done
# cd /usr/src/zenoss-1.1.1
# /etc/init.d/zope2.9 start
Now add the following to /etc/sudoers using visudo:
Code:
zenoss yaminon = NOPASSWD: /srv/zenoss/bin/*,/bin/kill,/usr/bin/
python2.4,/usr/bin/dzhandle
Defaults env_keep += "PYTHONPATH ZENHOME INSTANCE_HOME"
Without INSTANCE_HOME some things didn't work.
I think that's all you need to do, but I didn't take note of what I
did the first time so some steps might be missing. Now just load
the db and start the remaining processes:
Code:
# exit
$ run_zenbuild
$ cd /srv/zenoss/bin
$ ./zenxevent start
$ ./zenmodeler start
$ ./zenperfsnmp start
$ ./zenperfxmlprc start
$ ./zenprocess start
$ ./zenping start
$ ./zenstatus start
$ ./zenactions start
$ ./zentrap start
$ ./zencommand start
Now go to http://host:8080 and log in. zensyslog isn't started
because you'll need to turn off the regular syslog daemon first.
If you've got suggestions or run into a problem, reply with details
and I'll see if I can help. Hopefully this will make creating
proper .debs easier too.
------------------------
James Andrewartha
-------------------- m2f --------------------
Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=4947#4947
-------------------- m2f --------------------
_______________________________________________
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