Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Bsnmp-regex

    Scheduled Pinned Locked Moved pfSense Packages
    5 Posts 2 Posters 2.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      adam65535
      last edited by

      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…
      http://comments.gmane.org/gmane.os.freebsd.devel.net/14072

      The new location of it...
      http://www.freshports.org/net-mgmt/bsnmp-regex/

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        It's included in 2.1 already, though we do not yet have a GUI for configuring custom rules.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • A
          adam65535
          last edited by

          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)?

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            If by "manually", you mean "hand editing or patching the source of the function that writes out the SNMP config", sure.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • A
              adam65535
              last edited by

              It looks like the regex module needs some custom bsnmpd.conf lines for it to work.
              regexConfig
              regexSocket

              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"
              
              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.