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