TECHZEN Zenoss User Community ARCHIVE  

Devices Map Using SNMP Traps Coming From NMS-es !

Subject: Devices Map Using SNMP Traps Coming From NMS-es !
Author: [Not Specified]
Posted: 2014-02-14 09:24

Hello,

We are using Zenoss as a unified platform to monitor our telecom devices. Since there are hundreds of devices all over the country, we are are getting snmp traps from the NMS-es of each network. I have specified the devices using event transform. What I want to next, is to set their location and create a network map, linking these devices with each other as they currently are. Is this possible for my case Is there any way to map the devices I have specified under event transform, with the same ones created under Infrastructure -> Devices (that have same names, but no event related to them, since the traps don't come directly from the devices)

Thanks in Advance!



Subject: Do the traps contain the
Author: [Not Specified]
Posted: 2014-02-14 11:07

Do the traps contain the hostname or IP of the original device If so, you could use a transform like this to map them:

if "Switch-A" in getattr(evt, 'message', '') or "Switch-A" in getattr(evt, 'component', ''):
evt.eventClass = "/Net/Switch/Switch-A"

Hydruid



Subject: I did what you suggested.
Author: [Not Specified]
Posted: 2014-02-17 08:21

I did what you suggested. Using your naming convention, I set the evt.eventClass = "/Net/Switch/Switch-A" and this part is working fine. But this, doesn't list Switch-A under one on of my devices in Infrastructure->Device section. I want Switch-A listed in my devices and I want to see all the events related with Switch-A there. This way I can set its location. Is there any way to do that



Subject: The Device Tree and Event
Author: [Not Specified]
Posted: 2014-02-17 11:26

The Device Tree and Event Class are not the same thing, however you can accomplish what you want.

Go to Infrastructure, Device Tree, Create a new device tree like /Net/Switch/Switch-A, Bind the monitoring templates you need (/Devices should be enough), then move Switch-A to the new location (drag and drop).

Hydruid



< Previous
Question about Notification Schedules
  Next
How to monitor Windows Services by device class
>