2009/12/1 Jordan Kagan <jrkag...@gmail.com>:
> We are trying to write a Linux application that polls network devices and
> writes the responses to a .csv file on the local hard drive.  Also, we need
> the input parameters to Net-SNMP to come from a separate config file.
> Lastly, there is a requirement to run multiple queries in just one socket
> connection, rather then just opening a socket, polling, and closing the
> socket for each query.
>
> Should we modify the agent that comes with Net-SNMP, or write a separate
> "sub agent" that we could easily integrate with the rest of the package?  I
> read somewhere on the site that the first thing to look into may be MIB
> modules.  Any guidance on this subject would be helpful.


I suggest that you treat this as two distinct requirements:

  -  Extending the Net-SNMP agent to report the particular values
     that you wish to monitor (assuming it doesn't already)

  -  A (separate) client application, to poll SNMP agent(s)
     and log the results.


For the second, it would definitely be worth looking as RRDTool
and similar/related software (e.g MRTG, Cacti, etc) - which may
already do most of what you need.

For the first - yes, you are looking at implementing a MIB module
(or modules) for any missing information.   It doesn't really matter
whether this is a subagent, or extends the master agent directly.
The MIB module code would be the same in either case.


But I'd definitely decouple the two requirements.

Dave

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to