Ksmith wrote: > Hey all, > > I am trying to use zenoss to collect snmp information from my firewalls. In > order to do this I need to configure the collector to use TCP/161 instead of > UDP/161 for the firewalls. Does anyone have any idea how to do this. Any > help would be greatly appreciated. Thanks!
I got this to work by modifying the code a little bit. First add a custom Device zProperties follow the instructions here: http://www.zenoss.com/community/docs/zenoss-dev-guide/2.2.0/ch10s01.html#zproperty_adding_to_device I added a property called zSnmpProtocol. You will need to write a merge file to migrate the property to all of the existing devices. Follow the next steps in the Dev Guide to Migrate the code. Then if you want to add the drop down options under zProperties for UDP or TCP add this code to the zenPropertyOptions(self, propname) method in the DeviceClass and Device classes: if propname == 'zSnmpProtocol': return ['UDP', 'TCP'] Now you have a lovely property in your zProperties that does absolutely nothing now. DISCLAIMER: Now this may not be the best way to do this, and it probably will not be supported in future upgrades, but it works: Edit your ZENOSSHOME/zenoss/Products/ZenHub/services/PerformanceConfig.py file Add 'zSnmpProtocol', to the Attributes at the top. And in the createSession method change the p = AgentProxy(.. call to: p = AgentProxy(ip=self.zSnmpProtocol+':'+self.manageIp, port=self.zSnmpPort, timeout=self.zSnmpTimeout, snmpVersion=self.zSnmpVer, community=self.zSnmpCommunity, cmdLineArgs=cmdLineArgs, protocol=None, allowCache=allowCache) This will force the protocol to the beginning of the IP address and make all calls to the device under the desired protocol. -------------------- m2f -------------------- Read this topic online here: http://community.zenoss.com/forums/viewtopic.php?p=23245#23245 -------------------- m2f -------------------- _______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
