Discussion:
HW Model
Lord_King
2012-01-09 21:14:03 UTC
Permalink
Lord_King [http://community.zenoss.org/people/Lord_King] created the discussion

"HW Model"

To view the discussion, visit: http://community.zenoss.org/message/63625#63625

--------------------------------------------------------------
Hello to all the Zenoss community.

I am monitoring Cisco communications equipment in the Petan HW Model of Infrastructure, see this oid -> .1.3.6.1.4.1.9.1.615, searching oidview is the name of HW catalyst3560G24TS model, I downloaded the respective MIB (CISCO-PRODUCTS-MIB) and installed by Zenos GUI. The installation went successfully, but when I restart zenoss services. Model HW does not change, maintain the oid.

How I can change the oid for the switch model name?
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63625#63625]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
jcurry
2012-01-09 22:23:17 UTC
Permalink
jcurry [http://community.zenoss.org/people/jcurry] created the discussion

"Re: HW Model"

To view the discussion, visit: http://community.zenoss.org/message/63631#63631

--------------------------------------------------------------
The Hardware Model doesn't actually come as a result of installing MIBs. In Zenoss, loaded-up MIBs are only actually used in decoding SNMP TRAPs.  You need a modeler plugin that picks up the OID.  Do you have the NewDeviceMap and DeviceMap modeler plugins associated with the relevant devices?? Make sure that these are applied and then remodel your device.

It also depends on whether those particular models are already in Zenoss's Manufacturers database.  There are a few Cisco-specific ZenPacks around that might do this for you.

Cheers,
Jane
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63631#63631]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Lord_King
2012-01-17 00:39:02 UTC
Permalink
Lord_King [http://community.zenoss.org/people/Lord_King] created the discussion

"Re: HW Model"

To view the discussion, visit: http://community.zenoss.org/message/63752#63752

--------------------------------------------------------------
Thanks Jcurri.

It's possible change the value of the NewDeviceMap and DeviceMap?
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63752#63752]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
jcurry
2012-01-17 09:12:06 UTC
Permalink
jcurry [http://community.zenoss.org/people/jcurry] created the discussion

"Re: HW Model"

To view the discussion, visit: http://community.zenoss.org/message/63754#63754

--------------------------------------------------------------
You probably don't want to change DeviceMap or NewDeviceMap themselves but there are lots of good ZenPacks around that just provide extra code to set the hardware and software details.  Andrea Consadori has lots of these that you could use as a model.  You can find and browse his source code quickly on github - you can access them  here https://github.com/jcurry/Community-Zenpacks https://github.com/jcurry/Community-Zenpacks where his ZenPacks are at the head of the list.  I have just checked https://github.com/jcurry/Community-Zenpacks/tree/master/ZenPacks.AndreaConsadori.Alvarion ZenPacks.AndreaConsadori.Alvarion and https://github.com/jcurry/Community-Zenpacks/tree/master/ZenPacks.AndreaConsadori.Alvarion ZenPacks.AndreaConsadori.Motorola. 

The trick is to drill down directories through (for the top example) ZenPacks / AndreaConsadori / Alvarion / modeler / plugins and the .py files are the python code that uses SNMP to get the variable that the manufacturer uses to communicate the Hardware / software information (you need to work this out - it will be different for each device) and this information is then mapped to the correct variable for the device that you are modelling.

You might also look at the NewDeviceMap.py plugin that is part of the standard Core code - it is in $ZENHOME/Products/DataCollector/plugins/zenoss/snmp . It does try to match some very common SNMP OIDs.

Make sure that any device does have this modeler plugin assigned (use the Modeler Plugins left-hand menu for a device or device class). 

If you want to check what this plugin does, for a device called fred, use (as the zenoss user):
zenmodeler run -v 10 -d fred --collect NewDeviceMap

That just runs the NewDeviceMap plugin with verbose output against the device called fred.  If you don't get any data, then the problem is with SNMP itself, not with the modeler plugin(s) so check things like SNMP community name.

Cheers,
Jane
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63754#63754]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...