-- -- Copyright (C) 1992-2003 by SNMP Research, Incorporated. -- -- This software is furnished under a license and may be used and copied -- only in accordance with the terms of such license and with the -- inclusion of the above copyright notice. This software or any other -- copies thereof may not be provided or otherwise made available to any -- other person. No title to and ownership of the software is hereby -- transferred. -- -- The information in this software is subject to change without notice -- and should not be construed as a commitment by SNMP Research, Incorporated. -- -- Restricted Rights Legend: -- Use, duplication, or disclosure by the Government is subject to -- restrictions as set forth in subparagraph (c)(1)(ii) of the Rights -- in Technical Data and Computer Software clause at DFARS 252.227-7013; -- subparagraphs (c)(4) and (d) of the Commercial Computer -- Software-Restricted Rights Clause, FAR 52.227-19; and in similar -- clauses in the NASA FAR Supplement and other corresponding -- governmental regulations. -- -- -- -- PROPRIETARY NOTICE -- -- This software is an unpublished work subject to a confidentiality agreement -- and is protected by copyright and trade secret law. Unauthorized copying, -- redistribution or other use of this work is prohibited. -- -- The above notice of copyright on this source code product does not indicate -- any actual or intended publication of such source code. -- -- LOG-MIB DEFINITIONS ::= BEGIN IMPORTS snmpResearchMIBs FROM SNMP-RESEARCH-MIB MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE, Integer32, enterprises FROM SNMPv2-SMI DisplayString, TruthValue, RowStatus FROM SNMPv2-TC; siLog MODULE-IDENTITY LAST-UPDATED "9603050000Z" ORGANIZATION "SNMP Research" CONTACT-INFO " Postal: SNMP Research 3001 Kimberlin Heights Road Knoxville, TN 37920-9716 Tel: +1 865 579 3311 Fax: +1 865 579 6565 E-mail: info@int.snmp.com WWW: http://www.int.snmp.com" DESCRIPTION "A MIB module used to monitor log files and to forward traps when specified text strings are matched above a certain tolerence level." ::= { snmpResearchMIBs 40 } siLogObjects OBJECT IDENTIFIER ::= { siLog 1 } siLogTraps OBJECT IDENTIFIER ::= { siLog 2 } -- The Log Objects Group siLogGlobalPollInterval OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-create STATUS current DESCRIPTION "The period, in seconds, when the log files will be checked to see if there are any regular expression entry matches or if the log file size threshold has been exceeded." ::= { siLogObjects 1 } siLogGlobalPollNow OBJECT-TYPE SYNTAX TruthValue MAX-ACCESS read-create STATUS current DESCRIPTION "Setting this object to true (1) will cause all the log files entered in the siLogTable to be checked to see if the file size threshold has been reached or if any regular expression matching has occurred." DEFVAL { false } ::= { siLogObjects 2 } siLogTable OBJECT-TYPE SYNTAX SEQUENCE OF SiLogEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "The table of log files." ::= { siLogObjects 3 } siLogEntry OBJECT-TYPE SYNTAX SiLogEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "The information about a log file." INDEX { siLogTableIndex } ::= { siLogTable 1 } SiLogEntry ::= SEQUENCE { siLogTableIndex Integer32, siLogDescr DisplayString, siLogName DisplayString, siLogMatchPattern DisplayString, siLogMatchAllExceptPattern TruthValue, siLogStartPosition Integer32, siLogStopPosition Integer32, siLogMatches Integer32, siLogCommandOnMatch DisplayString, siLogTrapOnMatch TruthValue, siLogSize Integer32, siLogMaxSize Integer32, siLogCommandOnMaxSize DisplayString, siLogTrapOnMaxSize TruthValue, siLogPollInterval Integer32, siLogPollNow TruthValue, siLogOwner DisplayString, siLogRowStatus RowStatus } siLogTableIndex OBJECT-TYPE SYNTAX Integer32(1..2147483647) MAX-ACCESS not-accessible STATUS current DESCRIPTION "The index of the log file Table." ::= { siLogEntry 1 } siLogDescr OBJECT-TYPE SYNTAX DisplayString MAX-ACCESS read-create STATUS current DESCRIPTION "A textual description of the log file being monitored." ::= { siLogEntry 2 } siLogName OBJECT-TYPE SYNTAX DisplayString MAX-ACCESS read-create STATUS current DESCRIPTION "The textual name of the log file. This name must be present when a row is active." ::= { siLogEntry 3 } siLogMatchPattern OBJECT-TYPE SYNTAX DisplayString MAX-ACCESS read-create STATUS current DESCRIPTION "A regular expression against which to match log file entries." ::= { siLogEntry 4 } siLogMatchAllExceptPattern OBJECT-TYPE SYNTAX TruthValue MAX-ACCESS read-create STATUS current DESCRIPTION "An option that turns on matching for all lines that do not contain the regular expression." DEFVAL { false } ::= { siLogEntry 5 } siLogStartPosition OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-create STATUS current DESCRIPTION "The character position, within a log file entry, where regular expression matching will begin." ::= { siLogEntry 7 } siLogStopPosition OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-create STATUS current DESCRIPTION "The character position, within a log file entry, after which regular expression matching will not take place." ::= { siLogEntry 8 } siLogMatches OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-only STATUS current DESCRIPTION "The number of lines within a log file, that match the given regular expression." ::= { siLogEntry 9 } siLogCommandOnMatch OBJECT-TYPE SYNTAX DisplayString MAX-ACCESS read-create STATUS current DESCRIPTION "A command-line argument to be executed when a regular expression match has occurred." ::= { siLogEntry 10 } siLogTrapOnMatch OBJECT-TYPE SYNTAX TruthValue MAX-ACCESS read-create STATUS current DESCRIPTION "This value indicates whether a trap should or should not be sent when a regular expression match occurs. If true (1) a trap should be sent. If false (2) a trap should not be sent." DEFVAL { false } ::= { siLogEntry 11 } siLogSize OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-only STATUS current DESCRIPTION "The size of the log file in bytes." ::= { siLogEntry 12 } siLogMaxSize OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-create STATUS current DESCRIPTION "The maximum byte size threshold of the log file." ::= { siLogEntry 13 } siLogCommandOnMaxSize OBJECT-TYPE SYNTAX DisplayString MAX-ACCESS read-create STATUS current DESCRIPTION "A command-line argument to be executed when the maximum log file size threshold is reached." ::= { siLogEntry 14 } siLogTrapOnMaxSize OBJECT-TYPE SYNTAX TruthValue MAX-ACCESS read-create STATUS current DESCRIPTION "This value indicates whether a trap should or should not be sent when the maximum size threshold is reached. If true (1) a trap should be sent. If false (2) a trap should not be sent." DEFVAL { false } ::= { siLogEntry 15 } siLogPollInterval OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-create STATUS current DESCRIPTION "The period, in seconds, when the log file should be checked to see if the file size threshold has been reached or if any regular expression matching has occurred." ::= { siLogEntry 16 } siLogPollNow OBJECT-TYPE SYNTAX TruthValue MAX-ACCESS read-create STATUS current DESCRIPTION "Setting this object to true (1) will cause the log file be checked to see if the file size threshold has been reached or if any regular expression matching has occurred." DEFVAL { false } ::= { siLogEntry 17 } siLogOwner OBJECT-TYPE SYNTAX DisplayString MAX-ACCESS read-create STATUS current DESCRIPTION "Configured owner of the log file." ::= { siLogEntry 27 } siLogRowStatus OBJECT-TYPE SYNTAX RowStatus MAX-ACCESS read-create STATUS current DESCRIPTION "The status of this log file entry." ::= { siLogEntry 28 } -- logMon Notification Group siLogTrapTextLine OBJECT-TYPE SYNTAX DisplayString MAX-ACCESS accessible-for-notify STATUS current DESCRIPTION "The first 255 characters of the log file text line where the regular expression match was found." ::= { siLogTraps 1 } siLogMatchTrap NOTIFICATION-TYPE OBJECTS { siLogName, siLogTrapTextLine } STATUS current DESCRIPTION "A trap indicating that a regular expression match has occurred." ::= { siLogTraps 2 } siLogMaxSizeTrap NOTIFICATION-TYPE OBJECTS { siLogName, siLogSize } STATUS current DESCRIPTION "A trap indicating that the log file size threshold has been exceeded." ::= { siLogTraps 3 } END