Development source code testing problem
1. Toolbox->Report https://fzunav.fzu.edu.cn/toolbox/ Mod_python error: "PythonHandler reporthandler" Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 287, in HandlerDispatch log=debug) File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 457, in import_module module = imp.load_module(mname, f, p, d) File "/usr/local/nav/apache/webroot/report/reporthandler.py", line 36, in ? from MatrixIpv4 import MatrixIpv4 ImportError: No module named MatrixIpv4 2. Toolbox->DeviceManagement https://fzunav.fzu.edu.cn/devicemanagement/ Mod_python error: "PythonHandler nav.web.devicemanagement.handler" Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 299, in HandlerDispatch result = object(req) File "/usr/local/nav/lib/python/nav/web/devicemanagement/handler.py", line 70, in handler output = history(req) File "/usr/local/nav/lib/python/nav/web/devicemanagement/history.py", line 71, in history date_options['startyear'] = db.dictfetchall()[0]['min'].year AttributeError: 'NoneType' object has no attribute 'year'
From john.m.bredal at ntnu.no Thu Nov 29 15:49:45 2007 From: john.m.bredal at ntnu.no (John-Magne Bredal) Date: Thu Nov 29 15:49:49 2007 Subject: [Nav-users] snmptrapd does not follow specifications In-Reply-To: <200711201122.lAKBM7SL052436@barnetv.cc.uit.no> References: <200711201122.lAKBM7SL052436@barnetv.cc.uit.no> Message-ID: <1196347785.5773.37.camel@raptor>
On Tue, 2007-11-20 at 12:22 +0100, Ingeborg Hellemo wrote:
When snmptrapd receives a snmptrap it is _not_ supposed to use the IP-source address of the packet as the sender of the trap, but look inside the snmp-packet (agent-addr in SNMPv1) to see who the trap really comes from.
There are several RFCs and papers about this (and we have mentioned it earlier).
Please?
--Ingeborg
All snmptrapd does is collect the values from a trap and store that as an object that traphandlers may use. That object contains both source and agent, where source is the ip-source address and agent is the agent-address. However, if you are referring to the linkupdown-traphandler, I agree that the use of trap source to locate the device that triggered the event is wrong. This will be fixed in an upcoming patch. -- John-Magne Bredal NTNUninett
participants (1)
-
zsh@fzu.edu.cn