logmatch trap problem
Kevin Zhang <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi there,
I have been testing logmatch for a while and have some problems.
Here is what I did:
/etc/snmp/snmpd.conf
authtrapenable 1
trapcommunity public
trapsink localhost
#trap2sink localhost
#informsink localhost
createUser _internal MD5 "the first sign of madness"
iquerySecName _internal
rouser _internal
defaultMonitors yes
logmatch test /var/log/testlog 5 Hello
[szhang@www szhang]$ snmpwalk -v 1 localhost -c public .1.3.6.1.4.1.2021.16.2
UCD-SNMP-MIB::logMatchIndex.1 = INTEGER: 1
UCD-SNMP-MIB::logMatchName.1 = STRING: test
UCD-SNMP-MIB::logMatchFilename.1 = STRING: /var/log/testlog
UCD-SNMP-MIB::logMatchRegEx.1 = STRING: Hello
UCD-SNMP-MIB::logMatchGlobalCounter.1 = Counter32: 56
UCD-SNMP-MIB::logMatchGlobalCount.1 = INTEGER: 56
UCD-SNMP-MIB::logMatchCurrentCounter.1 = Counter32: 56
UCD-SNMP-MIB::logMatchCurrentCount.1 = INTEGER: 56
UCD-SNMP-MIB::logMatchCounter.1 = Counter32: 0
UCD-SNMP-MIB::logMatchCount.1 = INTEGER: 0
UCD-SNMP-MIB::logMatchCycle.1 = INTEGER: 5
UCD-SNMP-MIB::logMatchErrorFlag.1 = INTEGER: true(1)
UCD-SNMP-MIB::logMatchRegExCompilation.1 = STRING: Success
[szhang@www szhang]$
Although, snmpwalk seems to be fine, but I didn't received any trap.
Can anyone help?
Kevin SZ
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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