On Sat, 9 Jul 2005, Henrik Nordstrom wrote:
> There is two approaches, either resurrect the now deleted trap snmp code in
> the old simplminded snmp library used (and distributed) by Squid, or do it
> more proper and replace the SNMP agent glue in Squid with a new one using the
> more up to date net-snmp library API <url:http://net-snmp.sourceforge.net/>,
> making Squid a SMUX or AgentX sub-agent to an existing system SNMP agent
> supporting either method.
A quick inspection of the net-snmp agent API indicates it is not
immediately suitable to be called from inside Squid. This due to a design
heavily centered around select() semantics and fd_set processing.
It may be possible to build glue around, but I have doubts in how the
library uses the fd_set:s. Any library having static/local fd_set
instances is not useable from Squid (filedescriptor limitation problem).
So for now I think it would be better to simply resurrect/reimplement the
TRAP PDU sending code. Since we are only looking at sending traps there is
not much danger or maintenance headache.
Regards
Henrik
Received on Sat Jul 09 2005 - 22:35:18 MDT
This archive was generated by hypermail pre-2.1.9 : Mon Aug 01 2005 - 12:00:03 MDT