Does anyone know if anything came out of the discussion from 2006 about having a package for bsnmp-regexp? It would make getting things like gmirror status through SNMP possible (as well as just about anything else you could think up).
Scott Ullrich commenting on it…
The new location of it...
It's included in 2.1 already, though we do not yet have a GUI for configuring custom rules.
You just made my day. :)
Any chance it is at least possible to manually configure it somewhere with 2.1 or does it use the main snmp config which gets overwritten by the GUI (which seems to happen on 2.0.3 when just stopping and starting SNMP… I haven't tested SNMP on 2.1 yet)?
If by "manually", you mean "hand editing or patching the source of the function that writes out the SNMP config", sure.
It looks like the regex module needs some custom bsnmpd.conf lines for it to work.
As you can see above it also needs local file UNIX domain socket created which also means you have to have something sending data to that socket. This is more complex than I expected. I assumed you could have bsnmpd run external scripts to get data kind of like net-snmpd. My main goal was to get critical things like gmirror status.
OPTIONS To activate the bsnmp-regex module you must load the module in /etc/snmpd.config and configure the location for the UNIX socket and bsnmp-regex.conf(5) file. See the examples section below. regexConfig The location of the bsnmp-regex.conf(5) file. This option must be specified. regexSocket The location of the UNIX socket on which this module will listen for logs or text to match. EXAMPLES For a simple bsnmp-regex configuration add the following to /etc/snmpd.config: begemotSnmpdModulePath."regex" = "/usr/local/lib/snmp_regex.so" %regex regexConfig = "/usr/local/etc/bsnmp-regex.conf" regexSocket = "/var/run/bsnmp-regex.sock"