On Fri 12 May 2006 18:17, Paolo Lucente wrote: > Hey Peter, > > On Thu, May 11, 2006 at 09:13:09AM +0300, Peter Nixon wrote: > > I would love to see an SNMP agent however so that the in memory tables > > could be queried remotely via SNMP. This would allow trivial integration > > with any number of SNMP graphing tools :-) > > That's a good point. Seems like the smooth way to this is Net-SNMP. They > have an API and support AgentX protocol (ie. a master agent, snmpd, > communicates with somewhat registered sub-agents - providing particular > SNMP trees - via such protocol). That would be the state of the art > solution (and requires a fair amount of time);
This would be the full solution... > what is your opinion about a > 2-stages approach either embedding pmacct client queries in the SNMP tree > itself (ie. SNMP part of Q9, FAQS doc) or something scriptic (ie. to > emulate in/out interface counters) ? Yep. This is already possible as net-snmp has the capability to call external scripts and return the results. I personally use this to trigger an sql query to the backend Postgresql database (not pmacct directly) but the effect is the same. Cheers -- Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc
pgpB9BfYBqlNe.pgp
Description: PGP signature
_______________________________________________ pmacct-discussion mailing list http://www.pmacct.net/#mailinglists
