Re: need to develop some traps

gunsnroses <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi Joao and Everybody,
           there are a couple of more traps that I would like to write. So,
I am looking towards how to write a new one if not supported. How do I go
about those(trap getting generated when our system configuration file
changes, not size, so I have to do some md5sum checking, customised
linkupDown etc). I am keen to know the know how do I link my application
code with trap addresses in snmpd.conf and monitor by "monitor" command
support in snmpd.conf file?

Thanks for the help


Regards,
zix

On Mon, May 24, 2010 at 3:04 PM, Joao Ferreira gmail <
[email protected]> wrote:

> On Mon, 2010-05-24 at 14:45 +0530, gunsnroses wrote:
> > let me give an example...
> > secs or so. I generate a file whenever somebody has logged in. My
> > snmpd.conf file contains the trap addresses with community strings
> > etc. So, I hope to do something so that it wil take trap addresses(v1,
> > v2c, v3) from snmpd.conf file and send the traps accordingly. How do I
> > monitor this application every 60 secs or so in integrating this in
> > net-snmp?
>
> snmpd.conf supports 2 directives ("logmatch" and "monitor") that you
> might want to have a look at
>
> as far as I understand the agent parses any file you'dd like and sends
> traps if a give expression is matched... maybe these will help...
>
> ================================
> logmatch auFailed /var/log/auth.log 60 .*Failed password.*
> logmatch auFailed /var/log/auth.log 60 .*user unknown.*
> monitor -r 60 -o logMatchName -o logMatchRegExCompilation "logMatch"
> logMatchCounter != 0
> ================================
>
> I don't know if these are fully functional or if you'dd need to tweak
> anything else but it should serve as a starting example
>
> Cheers
> Joao
>
>
> >
> > Can anybody help me with any links or comments?
> >
> > Thanks and Regards,
> > zix
> >
> ------------------------------------------------------------------------------
> >
> > _______________________________________________
> > 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
>
>

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

_______________________________________________
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.