Hi, all,
Is it possible to monitor errors in logs with "logmatch" ?
For example in my config i have

logmatch testError /var/log/test.log 60 jopa
monitor -o logMatchName -o logMatchErrorFlag "logMatchTable"
logMatchErrorFlag != 0

But logMatchErrorFlag is always 0! If i try
snmpset with logMatchErrorFlag.1 = 1
i have an error

Error in packet.
Reason: notWritable (that object does not support modification)

UCD-SNMP-MIB::logMatchIndex.1 = INTEGER: 1
UCD-SNMP-MIB::logMatchName.1 = STRING: testError
UCD-SNMP-MIB::logMatchFilename.1 = STRING: /var/log/test.log
UCD-SNMP-MIB::logMatchRegEx.1 = STRING: jopa
UCD-SNMP-MIB::logMatchGlobalCounter.1 = Counter32: 41
UCD-SNMP-MIB::logMatchGlobalCount.1 = INTEGER: 41
UCD-SNMP-MIB::logMatchCurrentCounter.1 = Counter32: 41
UCD-SNMP-MIB::logMatchCurrentCount.1 = INTEGER: 41
UCD-SNMP-MIB::logMatchCounter.1 = Counter32: 0
UCD-SNMP-MIB::logMatchCount.1 = INTEGER: 0
UCD-SNMP-MIB::logMatchCycle.1 = INTEGER: 60
UCD-SNMP-MIB::logMatchErrorFlag.1 = INTEGER: 0
UCD-SNMP-MIB::logMatchRegExCompilation.1 = STRING: Success
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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

Reply via email to