Bug#504701: [Pkg-net-snmp-devel] Bug#504701: logmatch not working in SNMP agent (debian etch)
Hi Michael, 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. It's not a bug at all, it's a question of access rights. You need to give snmpd read access to the log files either by changing the groupid of snmpd to adm (add -g adm to SNMPDOPTS), by changing the umask of the log files or by running snmpd as root. Thanks, Jochen -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#504701: logmatch not working in SNMP agent (debian etch)
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 -ccommunity 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: [EMAIL PROTECTED] 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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]