Discussion:
Modelling Network Devices problem
Daniil Kharun
2012-11-15 05:17:19 UTC
Permalink
Daniil Kharun [http://community.zenoss.org/people/Harunaga] created the discussion

"Modelling Network Devices problem"

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

--------------------------------------------------------------
Version = Zenoss Core 4.2

When I run a device model for ethernet switche I get similar output to the following:


2012-11-15 09:59:55,066 INFO zen.ZenModeler: Connecting to localhost:8789 
2012-11-15 09:59:55,072 INFO zen.ZenModeler: Connected to ZenHub 
2012-11-15 09:59:55,172 INFO zen.ZenModeler: Collecting for device 10.10.29.4 
2012-11-15 09:59:55,245 INFO zen.ZenModeler: No WMI plugins found for 10.10.29.4 
2012-11-15 09:59:55,248 INFO zen.ZenModeler: No Python plugins found for 10.10.29.4 
2012-11-15 09:59:55,250 INFO zen.ZenModeler: No command plugins found for 10.10.29.4 
2012-11-15 09:59:55,253 INFO zen.ZenModeler: SNMP collection device 10.10.29.4 
2012-11-15 09:59:55,254 INFO zen.ZenModeler: plugins: zenoss.snmp.NewDeviceMap, zenoss.snmp.DeviceMap, zenoss.snmp.InterfaceMap, zenoss.snmp.RouteMap 
2012-11-15 09:59:55,301 INFO zen.ZenModeler: No portscan plugins found for 10.10.29.4 
2012-11-15 09:59:57,106 INFO zen.SnmpClient: snmp client finished collection for 10.10.29.4 
2012-11-15 09:59:57,107 INFO zen.ZenModeler: Processing zenoss.snmp.NewDeviceMap for device 10.10.29.4 
2012-11-15 09:59:57,108 INFO zen.ZenModeler: processing zenoss.snmp.DeviceMap for device 10.10.29.4 
2012-11-15 09:59:57,109 INFO zen.ZenModeler: Modeler zenoss.snmp.InterfaceMap processing data for device 10.10.29.4 
2012-11-15 09:59:57,110 WARNING zen.ZenModeler: Skipping 127.0.0.1 as it points to missing ifindex 9000 
2012-11-15 09:59:57,119 INFO zen.ZenModeler: processing zenoss.snmp.RouteMap for device 10.10.29.4 
Traceback (most recent call last): 
File "/opt/zenoss/lib/python2.7/logging/__init__.py", line 842, in emit 
msg = self.format(record) 
File "/opt/zenoss/lib/python2.7/logging/__init__.py", line 719, in format 
return fmt.format(record) 
File "/opt/zenoss/lib/python2.7/logging/__init__.py", line 464, in format 
record.message = record.getMessage() 
File "/opt/zenoss/lib/python2.7/logging/__init__.py", line 324, in getMessage 
msg = str(self.msg) 
File "/opt/zenoss/Products/ZenHub/PBDaemon.py", line 49, in __str__ 
return Exception.__str__(self) + self.traceback 
TypeError: cannot concatenate 'str' and 'NoneType' objects 
Logged from file zenmodeler.py, line 688 
2012-11-15 09:59:57,261 ERROR zen.ZenModeler: Client 10.10.29.4 finished with message: [Failure instance: Traceback (failure with no frames): :               
Traceback (most recent call last): 
File "/opt/zenoss/lib/python/twisted/python/reflect.py", line 546, in _safeFormat 
return formatter(o) 
File "/opt/zenoss/Products/ZenHub/PBDaemon.py", line 49, in __str__ 
return Exception.__str__(self) + self.traceback 
TypeError: cannot concatenate 'str' and 'NoneType' objects 
 
] 
2012-11-15 09:59:57,261 INFO zen.ZenModeler: Scan time: 2.09 seconds 
2012-11-15 09:59:57,276 INFO zen.ZenModeler: Daemon ZenModeler shutting down 
snmpwalk -v 2c -c COMMUNITY 10.10.29.4 .1.3.6.1.2.1.2.2.1.2
IF-MIB::ifDescr.1 = STRING: Ethernet1/1
IF-MIB::ifDescr.2 = STRING: Ethernet1/2
IF-MIB::ifDescr.3 = STRING: Ethernet1/3
IF-MIB::ifDescr.4 = STRING: Ethernet1/4
IF-MIB::ifDescr.5 = STRING: Ethernet1/5
IF-MIB::ifDescr.6 = STRING: Ethernet1/6
IF-MIB::ifDescr.7 = STRING: Ethernet1/7
IF-MIB::ifDescr.8 = STRING: Ethernet1/8
IF-MIB::ifDescr.9 = STRING: Ethernet1/9
IF-MIB::ifDescr.10 = STRING: Ethernet1/10
IF-MIB::ifDescr.11 = STRING: Ethernet1/11
IF-MIB::ifDescr.12 = STRING: Ethernet1/12
IF-MIB::ifDescr.13 = STRING: Ethernet1/13
IF-MIB::ifDescr.14 = STRING: Ethernet1/14
IF-MIB::ifDescr.15 = STRING: Ethernet1/15
IF-MIB::ifDescr.16 = STRING: Ethernet1/16
IF-MIB::ifDescr.17 = STRING: Ethernet1/17
IF-MIB::ifDescr.18 = STRING: Ethernet1/18
IF-MIB::ifDescr.19 = STRING: Ethernet1/19
IF-MIB::ifDescr.20 = STRING: Ethernet1/20
IF-MIB::ifDescr.21 = STRING: Ethernet1/21
IF-MIB::ifDescr.22 = STRING: Ethernet1/22
IF-MIB::ifDescr.23 = STRING: Ethernet1/23
IF-MIB::ifDescr.24 = STRING: Ethernet1/24
IF-MIB::ifDescr.25 = STRING: Ethernet1/25
IF-MIB::ifDescr.26 = STRING: Ethernet1/26
IF-MIB::ifDescr.3101 = STRING: Vlan101

How to solve the problem?
--------------------------------------------------------------

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

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]
Daniil Kharun
2012-12-10 09:33:27 UTC
Permalink
Daniil Kharun [http://community.zenoss.org/people/Harunaga] created the discussion

"Re: Modelling Network Devices problem"

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

--------------------------------------------------------------
The patch to solve the problem

| --- InterfaceMap.py.orig    | 2012-12-10 14:28:09.000000000 +0600 |
| +++ InterfaceMap.py | 2012-12-10 15:19:53.656797446 +0600 |
@@ -209,6 +209,10 @@ class InterfaceMap(SnmpPlugin):
|                         | ifidx)) |
|              | continue |
| +        | if not data.get('description', ''): |
| +            | log.warn( "ifIndex %s has wrong ifAlias" % (ifidx) ) |
| +            | continue |
+
|          | iftable[ifidx]['description'] = data.get('description', '') |
|          | # handle 10GB interfaces using IF-MIB::ifHighSpeed |
--------------------------------------------------------------

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

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...