Vous êtes sur la page 1sur 3

14/8/2014

My Stuff: Configuring multiple Zenoss collectors

Este sitio emplea cookies como ayuda para prestar servicios. Al utilizar este sitio, ests aceptando el uso de cookies.

Ms inform acin

Entendido

My general stuff. This will generally include computer related information, but may also contain general
rantings on my part.

W e d n e sd ay , A p ril 08, 2009

Configuring multiple Zenoss collectors


This post discusses how to configure multiple Zenoss collectors for centralized monitoring
and alerting. These instructions are inspired by
http://www.zenoss.com/Members/fdeckert/how-to-install-distributed-collectors/. Many of
the tasks below reference $ZENHOME, which can be found by logging in as the zenoss user,
but the tasks may need to be run as root.
Install zenoss on ServerB, but do not start it
Ensure DNS is setup with FQDN for both servers
Task

ServerA

ServerB

Install snmpd on both


systems

apt-get install snmp snmpd

Configure snmpd

Snmpconf

2014 (3)
2013 (14)
2012 (42)

Select none

2011 (74)
2010 (91)

Select to create snmpd.conf

2009 (42)

Select Access Control Setup

December (1)

Choose SNMPv1/SNMPv2c read-only access community name

November (6)

Enter the read-only community name, enter, enter

October (2)
September (1)

Finished, Finished, Quit

August (9)

mv snmpd.conf /etc/snmp/snmpd.conf
Enable remote snmp
access

Blog Arc hive

July (3)
June (4)

Edit /etc/default/snmpd

M ay (3)

Change the line: SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux


-p /var/run/snmpd.pid 127.0.0.1'
To: SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p
/var/run/snmpd.pid'

April (11)
VM ware/NFS performance with the
Celerra NS-G8
Celerra NFS and VM ware testing
Synchronizing ZenPacks across multiple
collectors

Restart snmpd

Configuring multiple Zenoss collectors

Verify snmp is
working

snmpwalk -v 2c -c public snmpwalk -v 2c -c


ServerB .1.3
public ServerA .1.3

Configure Zenoss
services

Create two files in


$ZENHOME/etc named
DAEMONS_TXT_ONLY and
daemons.txt

Create two files in


$ZENHOME/etc named
DAEMONS_TXT_ONLY and
daemons.txt

Enter the below into


daemons.txt and save:

Enter the below into


daemons.txt and save:

Creating a ZenPack in Zenoss

zeoctl

zenping

M onitoring Brocade switches with


ZenOss

zopectl

zensyslog

zenhub

zenstatus

2008 (22)

zenping

zenactions

2007 (8)

zensyslog

zentrap

zenstatus

zenmodeler

zenactions

zenrender

zentrap

zenperfsnmp

zenmodeler

zencommand

zenrender

zenprocess

http://blog.edgoad.com/2009/04/this-post-discusses-how-to-configure.html

M onitoring and automatically restarting


services i...
Changing the graphs shown under the
Perf tab in Ze...
Configuring email in Zenoss
Windows Performance M onitoring in
Zenoss using WM I...

Installing Zenoss on Ubuntu

M arch (2)

1/3

14/8/2014

My Stuff: Configuring multiple Zenoss collectors


zenperfsnmp

zenwin

zencommand

zeneventlog

zenprocess
zenwin
zeneventlog
Configure ServerB to
use local monitors,
but use the hub on
ServerA

In $ZENHOME/etc, edit the


following files:
zenactions.conf,
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
Enter the following 2 lines in
all files:
monitor ServerB
hubhost ServerA

Configure ServerB to
use the zope engine
on ServerA

In $ZENHOME/etc, edit
zope.conf
Find the zeoclient section
About Me

Change the line: server


localhost:8100
To: server ServerA:8100
Add the remote
collector

edgoad
View my complete profile

In the Web Interface, browse to


Management | Collectors | Add
Monitor
There was an error
in this gadget

Monitoring Servers

Enter the name ServerB


Change Render URL from:
/zport/RenderServer

pagerduty.com/Monitoring

Flexible Alerts & On-Call Schedules


Fast & Reliable. Free 30 Day Trial.

To:
http://ServerA:8090/ServerB
Copy ZenPacks and
Plugins

Scp -r $ZENHOME/ZenPacks
ServerB:$ZENHOME/ZenPacks

Make sure any other


alterations (symlinks,
packages, etc) are
duplicated

Ensure files are


owned by zenoss

chown R zenoss.zenoss
$ZENHOME/ZenPacks

chown R zenoss.zenoss
$ZENHOME/ZenPacks

Start Zenoss

/etc/init.d/zenoss-stack /etc/init.d/zenossrestart
stack start

Begin moving devices

In the Web Interface, browse to


Management | Collectors |
localhost

EDRICK GOAD
Sr. Systems Engineer

WTS, Inc.
edgoad@gmail.com

Select several devices and click


Devices | Set Perf Monitor

Recommend this on Google

Posted by edgoad at

about me | report abuse

4:35 PM
Labels: Monitoring

3 comments:
David Riepl said...
Hi!
I have some troubles implementing distributed collectors in zennos core.
What is the Point "Create two files in $ZENHOM E/etc named DAEM ONS_TXT_ONLY
and daemons.txt" exactly for?

http://blog.edgoad.com/2009/04/this-post-discusses-how-to-configure.html

2/3

14/8/2014

My Stuff: Configuring multiple Zenoss collectors


M y Problem is i cant render the rrd file collected from the B Server. Can u explain a
bit more about the render URL?
greets David
5:52 AM

Anonymous said...
This comment has been removed by a blog administrator.
7:37 PM

Hemraj said...
The performance Graphs doesn't seem to work in the distributed collector model.
Zenoss is not able to render the rrd files collected from the B server. Can u pls help
to resolve this.
11:50 PM
Post a Comment

Links to this post


Create a Link
Newer Post

Home

Older Post

Subscribe to: Post Comments (Atom)

Simple template. Powered by Blogger.

http://blog.edgoad.com/2009/04/this-post-discusses-how-to-configure.html

3/3

Vous aimerez peut-être aussi