分类: 系统运维
2010-06-11 14:57:28
if [ ! -f
$ZENHOME/etc/DAEMONS_TXT_ONLY ] ; then
C="$C zeoctl"
C="$C zopectl"
C="$C zenhub"
C="$C zenping"
C="$C zensyslog"
C="$C zenstatus"
C="$C
zenactions"
C="$C zentrap"
C="$C zenmodeler"
C="$C zenrender"
C="$C zenperfsnmp"
C="$C zencommand"
C="$C
zenprocess"
#C="$C zenmail"
If
you are using the stack edition, modify /usr/local/zenoss/ctlscript.sh
elif
[ "x$1" = "xstart" ]; then
if [ "x$2" = "xmysql" ]; then
if
test -x $MYSQL_SCRIPT; then
### $MYSQL_SCRIPT start
MYSQL_ERROR=$?
fi
elif [ "x$1" = "xstop" ]; then
if [
"x$2" = "xmysql" ]; then
if test -x $MYSQL_SCRIPT; then
###
$MYSQL_SCRIPT stop
MYSQL_ERROR=$?
sleep 2
Create an empty file $ZENHOME/etc/DAEMONS_TXT_ONLY
, and then list all needed modules in a file $ZENHOME/etc/daemons.txt
zenping
zensyslog
zenstatus
zentrap
zenmodeler
zenrender
zenperfsnmp
zencommand
zenprocess
zenwin
zeneventlog
rocommunity public zenoss.paris.fr
/usr/local/zenoss/zenoss/etc/zencommand.conf,
zendisc.conf, zeneventlog.conf, zenmodeler.conf, zenperfsnmp.conf,
zenping.conf, zenprocess.conf, zenrender.conf, zenstatus.conf,
zensyslog.conf, zentrap.conf, zenwin.conf, zenwinmodeler.conf
monitor zenoss.noida.in
hubhost zenoss.paris.fr
Note that "monitor" can not be set to localhost or 127.0.0.1.
It needs to be set to an IP or hostname that corresponds to a network interface on the server.
/usr/local/zenoss/zenoss/etc/zope.conf
mount-point /
# ZODB cache, in number of objects
cache-size 5000
server
zenoss.paris.fr:8100
...
2.7 Install all needed zenpacks and plugins
This is most important if you are using nagios plugins or winexe template. Don't forget to copy all this binaries to the remote server, as it is this server that will run them against the devices.
3.1
Management / Add Device : zenoss.noida.in, use the main server as
collector
4.1
Management / Collector / Add Collector : use the DNS name
zenoss.noida.in as ID
4.2 Edit the newly created collector and change the "render URL" to use the zenders XML-RPC
Render URL :
5.1 RRD performance data are to be copied to the remote server
zenoss.paris.fr# scp -Cr /usr/local/zenoss/zenoss/perf/Devices/mydevice zenoss.noida.in:/usr/local/zenoss/zenoss/perf/Devices
5.2 don't forget to add the remote collector in devices /etc/snmpd.conf
rocommunity public zenoss.noida.in
5.3 Move the devices to the remote collector
Management / Collectors / zenoss.paris.fr
Select
the devices and use "Set collector"