I have an application running as a subagent, that operationally requires
that I make changes to settings that
are not available to a subagent (i.e. changing SNMP trap destinations,
security values associated with
trap generation, SNMP user creation/deletions/and modifications, etc.).
These settings are currently in
snmp configuration files.
For setting Net-SNMP trap destinations, while I can certainly use the
approach of creating SNMP client code
to access the SNMP tables directly as an SNMP system manager would do, I am
pondering doing this by modifying
the content of the Net-SNMP files in my application code, and sending snmpd
a SIGHUP to have it reload its settings.
This would be for a fixed version of Net-SNMP as v5.7.1, so I recognize that
the content of the
configuration files may change with differing versions.
It is very desirable for the snmpd to remain active and not have to
terminate and reload itself.
Also, I would need to be able to tell somehow that snmpd was up an active,
so that I could hold
off on sending a trap until snmp has successfully reloaded its
configuration.
How might a subagent know when this occurred? Is there a value that could
be polled over
the network connection between the agent and the subagent indicating when
snmpd
had reloaded its settings and was receptive to trap generation?
Is there any reason why this approach would not work, or would be
problematic?
____________________________________________________________________________
________
Bob O'Neil | <mailto:b...@robocomai.com> mailto:bon...@cinci.rr.com
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders