All MIBs › REGEX-MIB
Organization: Stefan Walter
Last Updated: 2006-03-29
Category: Generic / Unclassified
Description: Provides regular expression pattern matching objects for SNMP-based string filtering and classification.
Start monitoring vendor-neutral, standards-based MIB, any SNMPv3-capable network device (SNMP engine identity/boot/clock status) with a free 30-day trial of IPNetwork Monitor. Import MIBs, browse SNMP OIDs, create custom SNMP monitors, configure alerts, and monitor any SNMP-enabled network device from a single console.
What Is REGEX-MIB?
REGEX-MIB is part of the bsnmp (BSD SNMP daemon) project and provides objects for defining and applying regular-expression pattern matching to string data within the SNMP agent, primarily used for filtering or classifying textual data such as log lines or other monitored strings directly at the agent. It exposes a table of configured regex patterns along with match results/counters, letting an operator define patterns and see which monitored strings matched them. Its monitoring use is more of a software utility/configuration capability than a hardware/environment monitor, tracking whether specific string patterns are matching within monitored data, which can be used to flag specific log or status conditions of interest without new dedicated MIBs. It depends on the bsnmp daemon's core AgentX/module framework rather than any IETF-standard MIB. It is typically deployed on FreeBSD systems running bsnmpd where custom string-pattern monitoring is needed as a lightweight extension to SNMP polling. Engineers can download the REGEX-MIB file directly to load it into their MIB browser.
IPNetwork Monitor allows you to monitor SNMP objects defined in REGEX-MIB. Use the built-in SNMP Monitoring Browser to explore available variables, view their current values and descriptions, and select the objects you want to monitor. You can then create SNMP monitors, configure thresholds, and receive alerts when monitored values change.
Supported Devices
- vendor-neutral, standards-based MIB (bsnmp daemon on FreeBSD/BSD systems), not tied to a specific manufacturer
Monitoring Examples
An operator would populate regexEntry rows (indexed by regexIndex) with a regexString containing the desired pattern and a regexDescr label, then poll regexCount and regexLast to see how many times, and how recently, that pattern matched incoming data. If a pattern designed to catch an error condition suddenly shows regexLast advancing rapidly, that signals the condition it was designed to detect is now occurring frequently. regexInteger would hold a numeric extraction associated with the match, useful for pulling a specific value out of matched text.
What Can Be Monitored
- configured regex pattern list
- pattern match count
- last match occurrence
- extracted match value
Imported Objects
From BEGEMOT-MIB
| begemot | MODULE-IDENTITY |
From SNMPv2-SMI
| Counter64 | |
| Integer32 | |
| MODULE-IDENTITY | |
| OBJECT-TYPE | |
| TimeTicks | |
| Unsigned32 |
How to Use in IPNetwork Monitor
Example using regexCount OID:
OIDs
RFC description
SNMP regex pattern matching data with entry counters, indices, and performance metrics.
Start monitoring vendor-neutral bsnmp (BSD SNMP daemon) on FreeBSD/BSD systems (regex pattern matching on agent strings) with a free 30-day trial of IPNetwork Monitor. Import MIBs, browse SNMP OIDs, create custom SNMP monitors, configure alerts, and monitor any SNMP-enabled network device from a single console.