[Pkg-net-snmp-devel] logmatch not working in SNMP agent (debian etch)

Michael Schwartzkopff misch at multinet.de
Thu Nov 6 11:33:48 UTC 2008


package: snmpd
version: 5.2.3-7etch2

Hi,

I used logMatch in OpenSuSE with no problems. Now I switched some servers to 
debian etch and the logMatch doesn't work any more. The figures are juse "0" 
always. See output below.

Is this a known bug? A feature? Thanks for any enlightening comments.

UCD-SNMP-MIB::logMatchMaxEntries.0 = INTEGER: 50
UCD-SNMP-MIB::logMatchIndex.1 = INTEGER: 1
UCD-SNMP-MIB::logMatchName.1 = STRING: ACCEPT
UCD-SNMP-MIB::logMatchFilename.1 = STRING: /var/log/syslog
UCD-SNMP-MIB::logMatchRegEx.1 = STRING: ACCEPT
UCD-SNMP-MIB::logMatchGlobalCounter.1 = Counter32: 0
UCD-SNMP-MIB::logMatchGlobalCount.1 = INTEGER: 0
UCD-SNMP-MIB::logMatchCurrentCounter.1 = Counter32: 0
UCD-SNMP-MIB::logMatchCurrentCount.1 = INTEGER: 0
UCD-SNMP-MIB::logMatchCounter.1 = Counter32: 0
UCD-SNMP-MIB::logMatchCount.1 = INTEGER: 0
UCD-SNMP-MIB::logMatchCycle.1 = INTEGER: 300
UCD-SNMP-MIB::logMatchErrorFlag.1 = INTEGER: 0
UCD-SNMP-MIB::logMatchRegExCompilation.1 = STRING: Success

Also no persistant file like /var/lib/snmp/snmpd_logmatch_accept.pos is 
created.

this bug is reproducable if you add the following line 
to /etc/snmp/snmpd.conf:

logmatch kernel /var/log/mail 300 kernel

and restart snmpd.

snmpwalk -v1 -c<community> localhost logMatch

will give you always 0.


-- 
Dr. Michael Schwartzkopff
MultiNET Services GmbH
Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany
Tel: +49 - 89 - 45 69 11 0
Fax: +49 - 89 - 45 69 11 21
mob: +49 - 174 - 343 28 75

mail: misch at multinet.de
web: www.multinet.de

Sitz der Gesellschaft: 85630 Grasbrunn
Registergericht: Amtsgericht München HRB 114375
Geschäftsführer: Günter Jurgeneit, Hubert Martens

---

PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
Skype: misch42



More information about the Pkg-net-snmp-devel mailing list