Installing Zenoss on Debian

来自开放百科 - 灰狐
跳转到: 导航, 搜索

Installing Zenoss on Debian (Sarge)

$ apt-get update
$ apt-get install python-dev gcc g++ make bzip2 sudo subversion sysv-rc-conf snmpd
$ apt-get install mysql-server-5.0 libmysqlclient15-dev 
//Don't provide a root password to mysql. 
$ apt-get autoconf swig

Edit /etc/mysql/my.conf

bind-addres = 127.0.0.1
#skip-networking

Edit /etc/sudoers and add the following text:

Defaults env_reset  
Defaults env_keep = "PYTHONPATH ZENHOME"  
zenoss ALL=(ALL) NOPASSWD: ALL 

Login as zenoss, edit the .bashrc and define a ZENHOME environment variable:

export ZENHOME=/usr/local/zenoss
$ svn co http://dev.zenoss.org/svn/trunk/inst

Create $ZENHOME:

$ sudo mkdir -p $ZENHOME
$ sudo chown -R zenoss $ZENHOME
./install.sh 

install error:

 installing: /home/zenoss/inst/build/libsmi
   building: /home/zenoss/inst/build/wmi-build
make: *** [/home/zenoss/inst/build/wmi-build] Error 2 
unable to build zenoss and prerequisites, see zenbuild.log
tail zenbuild.log
     CPPFLAGS="-I//usr/local/zenoss/include/python2.4" \
       ./configure --without-readline ;        \
       make proto bin/wmic bin/wmis wmi/_pywmi.so bin/winexe
./autogen.sh: need autoconf 2.53 or later to build samba from SVN
/bin/sh: line 2: ./configure: No such file or directory
make[2]: Entering directory `/home/zenoss/inst/build/wmi-0.1.8/Samba/source'
make[2]: *** No rule to make target `proto'.  Stop.
make[2]: Leaving directory `/home/zenoss/inst/build/wmi-0.1.8/Samba/source'
make[1]: *** [pywmi-build] Error 2
make[1]: Leaving directory `/home/zenoss/inst/build/wmi-0.1.8'
make clean // to clean a failed install
$ ln -s $ZENHOME/bin/zenoss /etc/init.d
$ sudo sysv-rc-conf
chown root:zenoss $ZENHOME/bin/zensocket
chmod 04750 $ZENHOME/bin/zensocket 

Edit /etc/snmp/snmpd.conf, allow group MyROSystem to access the whole MIB. Change:

access MyROSystem "" any noauth exact system none none
to 
access MyROSystem "" any noauth exact all none none

from http://www.zenoss.com/community/docs/install-guides/installing-zenoss-on-debian-sarge/

Start Zenoss

/etc/init.d/zenoss start
http://hostname:8080/zport/dmd
admin/admin
分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱