Hi all,

I am new to Zenoss and I´m facing the following problem: I need to monitor 
about 200 routers distributed in subneted class A network, is there a way to 
add all these devices without actually creating them by hand on the web 
interface?

I thought of using auto discovery to do this but my network is huge 
(10.0.0.0/16) and I don´t want to discover all the possible devices within it.

The routers´ IP addresses are always the first of each subnet, so it´s easy 
to create a list of addresses (it would be something like this: 10.10.0.1, 
10.10.4.1, 10.10.8.1, 10.10.12.1 and so on...)

I also thought of using a script to do it, so I did something like:

#!/bin/bash

while read routerIP
do
        zendisc run --now -d $routerIP --monitor localhost --deviceclass 
/Network/Router/Cisco --snmp-port 161 --snmp-community XXXXXXXX

        printf "\n\n"
        sleep 10

done < RouterList



This works most of the time but I am getting the error seen below randomly:

ERROR:zen.ZenDisc:Timeout connecting to zenhub: is it running?
WARNING:zen.ZenDisc:Reconnected to ZenHub
Unhandled error in Deferred:
Traceback (most recent call last):
  File 
"/usr/local/zenoss/python/lib/python2.4/site-packages/twisted/internet/defer.py",
 line 317, in _runCallbacks
    self.result = callback(self.result, *args, **kw)
  File 
"/usr/local/zenoss/python/lib/python2.4/site-packages/twisted/internet/defer.py",
 line 507, in _cbDeferred
    self.callback(self.resultList)
  File 
"/usr/local/zenoss/python/lib/python2.4/site-packages/twisted/internet/defer.py",
 line 239, in callback
    self._startRunCallbacks(result)
  File 
"/usr/local/zenoss/python/lib/python2.4/site-packages/twisted/internet/defer.py",
 line 304, in _startRunCallbacks
    self._runCallbacks()
--- <exception caught here> ---
  File 
"/usr/local/zenoss/python/lib/python2.4/site-packages/twisted/internet/defer.py",
 line 317, in _runCallbacks
    self.result = callback(self.result, *args, **kw)
  File 
"/usr/local/zenoss/python/lib/python2.4/site-packages/twisted/internet/defer.py",
 line 239, in callback
    self._startRunCallbacks(result)
  File 
"/usr/local/zenoss/python/lib/python2.4/site-packages/twisted/internet/defer.py",
 line 290, in _startRunCallbacks
    raise AlreadyCalledError
twisted.internet.defer.AlreadyCalledError:


Any idea how to solve this? Do anyone know of a better way to add those routers?

Thanks in advance,
Fábio.




-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=23324#23324

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to