Re: need to develop some traps

Wes Hardaker <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization Sparta
Message-ID <[email protected]>
>>>>> On Mon, 24 May 2010 17:07:47 +0530, gunsnroses <[email protected]> said:

g> there are a couple of more traps that I would like to write. So,
g> I am looking towards how to write a new one if not supported. How do I go
g> about those(trap getting generated when our system configuration file
g> changes, not size, so I have to do some md5sum checking, customised
g> linkupDown etc). I am keen to know the know how do I link my application
g> code with trap addresses in snmpd.conf and monitor by "monitor" command
g> support in snmpd.conf file?

If you need to write new traps in C-code take a look at the examples in:

  agent/mibgroup/examples/notification.c

If you need to do it from another script, you might consider using the
"agentxtrap" command, assuming you have a snmpd running with agentx
support turned on.
-- 
Wes Hardaker
Cobham Analytic Solutions

------------------------------------------------------------------------------

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.