REGEX-MIB

MIB Reference — IPNetwork Monitor · Updated October 06, 2026

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

begemotMODULE-IDENTITY

From SNMPv2-SMI

Counter64
Integer32
MODULE-IDENTITY
OBJECT-TYPE
TimeTicks
Unsigned32

How to Use in IPNetwork Monitor

Example using regexCount OID:

Select a device implementing REGEX-MIB as the target host to create a monitor — the SNMP service should be up and running on it. Click New Monitor, then check SNMP Custom on the Favorites tab, click Next, and confirm the host. On the next page, click Select... to open the built-in SNMP MIB Browser and type regexCount into the Find box to locate it in the OID tree, then select it and click OK. It reports the number of regexEntry objects. On the monitor's Main parameters page you can set the target's SNMP port (default 161), credentials, polling interval, and other settings — see the SNMP Monitor help for details. On the State conditions and Alerting tabs, configure when the monitor should change state and trigger an alert; since this is an Integer32-type OID, Value bounds is the most useful condition here — trigger an alert if the count changes from its expected baseline, since that would indicate the underlying set of items changed unexpectedly. Click Finish to create the monitor; you can adjust any parameter later.
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.

Download REGEX-MIB