John Hardin wrote:
John Hardin wrote:
Thomas Anders wrote:
John Hardin wrote:
I'm using NET-SNMP 5.2.1 which I have extended with my own
MIB and configured to proxy for Squid (the caching software).
Squid is running on the same machine but implements its own agent,
which is listening on UDP port 3401. The problem is that when I
walk my MIB with the proxy for Squid enabled, the walk terminates
badly.
This seems to be a continuation of a thread you started about a
month ago:
http://sourceforge.net/mailarchive/forum.php?thread_id=7155293&forum_id=4959
Is this just a summary of the discussion back then (which you should
have referenced) or does it contain any new information?
+Thomas
If these conditions are related, I'm unaware of it, though they both
involve
proxying for Squid. My previous post was about the SNMP agent crashing
(segfaulting, I believe) when proxying for Squid. Though I'm not
aware of
a fix for that issue, I got a fix from the Squid team that to avoid
the issue.
(Squid was assuming a GETNEXT requests only a single object so it
wouldn't
return a valid response.) The Net-SNMP agent was behaving correctly
except
that it would crash upon receiving an invalid response from Squid.
The current problem seems to be purely misbehavior of the SNMP agent.
It's requesting objects over the proxy connection which are not below
the
OID specified in the proxy config.
I'm in the process of trying to reproduce this behavior with my MIB
implementation
removed from the agent build.
BTW, the real problem I'm trying to solve is the walk ending with
NO SUCH NAME instead of the OID and value of the next object
beyond the end of the walk.
I have a little more information. I have changed my MIB implementation
to return a scalar at the end instead of ending on the last table. This
seems
to have simplified things somewhat.
Here's what happens at the end of the walk of my MIB:
agent calls my code (built into the agent with the old UCD interface)
with the second to the last OID asking for the next OID (exact == 0).
1) My code returns the OID and value of my last object.
2) Agent calls my code with the last OID asking for the next one.
3) My code returns NULL
4) Agent sends this same OID over the proxy connection to Squid.
5) Squid returns NO SUCH NAME.
6) agent returns NO SUCH NAME error on the last GETNEXT from
snmpwalk.
This ends a walk of my MIB with an error. If I walk private.enterprises,
the walk ends with the error after my MIB instead of proceeding on with
the Squid MIB followed by the Net-SNMP MIB.
I believe after receiving the NULL from me on a GETNEXT for the
last OID, it should proceed to the first OID of the proxied MIB:
enterprises.3495
from the proxy statement in snmpd.config.
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users