On 11/12/06, David Arthur <[EMAIL PROTECTED]> wrote:
> I used the mib2c to generate a subagent program that contained my MIB
> objects and sent a trap every time an alarm went off (from some example
> code). Now I have an application that does numerous other things, but would
> like to send SNMP traps when certain events (known to my application) occur.
>
> Would such an application be an agent/subagent, or a "stand-alone"
> application?

You could implement this either way.

It would be perfectly feasible to embed an AgentX subagent into this
application, in exactly the same way as with the previous subagent.
It doesn't matter that there are no MIB objects to support - if the
subagent doesn't register anything, the master agent will simply
never pass any GET or SET requests to it.  Generating traps would
work exactly as before (including configuring trap destinations via
the snmpd.conf file.

Alternatively, you could treat this as a "standalone" application,
and send traps directly, using the 'snmptrap.c' code as a template.
In that case, you'd have to configure destination(s), etc within the
application itself.

But either approach would work.

Dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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

Reply via email to