Monitoring logs file with Net-SNMP

"Nikolay Fomichev" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.