I got an exception when trying to model a device from the zenoss web interface
after changing the community string. I could snmpwalk the device from the
zenoss server. The zProperties page showed the correct community string, with
v1 for zSnmpVer (both inherited from /). Looks like the exception is
indicating that the zSnmpVer isn't being acquired, so it isn't passed in
correctly for the modelling:
Code:
Invalid version specified after -v flag: Traceback (most recent call last):
File "/opt/zenoss/Products/DataCollector/zenmodeler.py", line 468, in ?
dc.main() File "/opt/zenoss/Products/DataCollector/zenmodeler.py", line 455, in
main self.mainLoop() File "/opt/zenoss/Products/DataCollector/zenmodeler.py",
line 443, in mainLoop self.fillCollectionSlots() File
"/opt/zenoss/Products/DataCollector/zenmodeler.py", line 316, in
fillCollectionSlots self.collectDevice(device) File
"/opt/zenoss/Products/DataCollector/zenmodeler.py", line 143, in collectDevice
self.snmpCollect(device, ip, timeout) File
"/opt/zenoss/Products/DataCollector/zenmodeler.py", line 217, in snmpCollect
self.addClient(client, timeout, 'snmp', device.id) File
"/opt/zenoss/Products/DataCollector/zenmodeler.py", line 223, in addClient
obj.run() File "/opt/zenoss/Products/DataCollector/SnmpClient.py", line 59, in
run self.proxy.open() File "/opt/zenoss/lib/python/pynetsnmp/twistedsnmp.py",
line 164, in open self.ses
sion.open() File "/opt/zenoss/lib/python/pynetsnmp/netsnmp.py", line 401, in
open self.args = initialize_session(sess, self.cmdLineArgs, self.kw) File
"/opt/zenoss/lib/python/pynetsnmp/netsnmp.py", line 382, in initialize_session
args = parse_args(cmdLine, byref(sess)) File
"/opt/zenoss/lib/python/pynetsnmp/netsnmp.py", line 364, in parse_args raise
ArgumentParseError("Unable to parse arguments", toList(argv))
pynetsnmp.netsnmp.ArgumentParseError: ('Unable to parse arguments',
['/opt/zenoss/Products/DataCollector/zenmodeler.py', '-v', '', '-c',
'mycommunity', '-t', '2.5', '-r', '3', '10.1.20.15:161'])
I'm running Zenoss 2.1.1.
Applying a local zSnmpVer and saving fixes the problem. If I then delete the
local zSnmpVer, the problem does NOT recur.
Wayne
-------------------- m2f --------------------
Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=15691#15691
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users