This is a discussion on Monitoring logs file with Net-SNMP within the SNMP Users forums, part of the Networking and Network Related category; --===============1049180245== Content-Type: multipart/alternative; boundary="----=_Part_17703_99895.1205926913302" ------=_Part_17703_99895.1205926913302 Content-Type: text/plain; charset=ISO-8859-1 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============1049180245==
Content-Type: multipart/alternative; boundary="----=_Part_17703_99895.1205926913302" ------=_Part_17703_99895.1205926913302 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 ------=_Part_17703_99895.1205926913302 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, all,<br>Is it possible to monitor errors in logs with "logmatch" ?<br>For example in my config i have<br><br>logmatch testError /var/log/test.log 60 jopa<br>monitor -o logMatchName -o logMatchErrorFlag "logMatchTable" logMatchErrorFlag != 0<br> <br>But logMatchErrorFlag is always 0! If i try <br>snmpset with logMatchErrorFlag.1 = 1<br>i have an error <br><br>Error in packet.<br>Reason: notWritable (that object does not support modification)<br><br>UCD-SNMP-MIB::logMatchIndex.1 = INTEGER: 1<br> UCD-SNMP-MIB::logMatchName.1 = STRING: testError<br>UCD-SNMP-MIB::logMatchFilename.1 = STRING: /var/log/test.log<br>UCD-SNMP-MIB::logMatchRegEx.1 = STRING: jopa<br>UCD-SNMP-MIB::logMatchGlobalCounter.1 = Counter32: 41<br> UCD-SNMP-MIB::logMatchGlobalCount.1 = INTEGER: 41<br>UCD-SNMP-MIB::logMatchCurrentCounter.1 = Counter32: 41<br>UCD-SNMP-MIB::logMatchCurrentCount.1 = INTEGER: 41<br>UCD-SNMP-MIB::logMatchCounter.1 = Counter32: 0<br>UCD-SNMP-MIB::logMatchCount.1 = INTEGER: 0<br> UCD-SNMP-MIB::logMatchCycle.1 = INTEGER: 60<br>UCD-SNMP-MIB::logMatchErrorFlag.1 = INTEGER: 0<br>UCD-SNMP-MIB::logMatchRegExCompilation.1 = STRING: Success<br><br><br> ------=_Part_17703_99895.1205926913302-- --===============1049180245== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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/ --===============1049180245== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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/...net-snmp-users --===============1049180245==-- |