Hi,
I'm trying to have my net-snmp send a trap when a word is found on a log
file.
my snmpd.conf file is like this:
-------------------------------------------------------------------
com2sec accessUser 192.168.1.0/24 private
group accessGroup v2c accessUser
view systemView included .1
trapcommunity private
trap2sync 192.168.1.100
logmatch myLogWatcher /var/logs/mylog.log 10 FAILED.*
monitor -r 5 -o logMarchName "Something failed" logMatchCounter > 0
access accessGroup "" any noauth exact systemView
none none
-------------------------------------------------------------------
when I do:
snmpwalk -v2c -c private 192.168.1.10 logMatch
I get all the OIDs and when I add "FAILED" lines to the log file the
only thing that changes is the logMatchCounter.
But I don't seem to be getting any traps on my destination server.
If i manualy send an snmp trap with the snmptrap command the destination
server receives the trap.
I think there is something wrong with mt snmpd.conf file.
Can anyone give me a hand?
Thanks!
Regards,
Armando Mártires
_______________________________________________
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