Feature #1169

Add load balancer status in SNMP

Added by Sander Naudts over 9 years ago. Updated about 1 year ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:



Is it possible to add an OID entry to get the status of the wan load balancer in SNMP? Eg: WAN1 on/offline, OPT on/offline.

At the moment the only way to receive an email alert etc if a wan connection drops is by setting up a trigger on an 3th party monitor server that pings the same gateway as pfsense ping's. Not an ideal solution.


services.diff (367 Bytes) services.diff Daniele Palumbo, 02/08/2012 04:39 AM


#1 Updated by Jim Pingle over 9 years ago

  • Target version set to Future
  • Affected Version set to All

If there is, it won't be trivial to do. We use bsnmpd, and last I looked it did not support an exec call for custom OIDs.

There are some patches for bsnmpd to support tailing a file and doing a regex for events in the file, but I don't know if that would play nice with our log format.

#2 Updated by Jim Pingle over 9 years ago

Just a note for when we come back around to this later:

Looks like we might be able to do this with the bsnmp-ucd module which supports external commands.

It's in /usr/ports/net-mgmt/bsnmp-ucd

#3 Updated by Daniele Palumbo over 8 years ago

It is also necessary to add a text inside snmpd web configuration field where you can add customs commands, or something to include one (or more) files.

begemotSnmpdModulePath."ucd" = "/usr/local/lib/"

extNames.0 = "process total"
extCommand.0 = "/usr/local/bin/ total"

so you can add all external commands you want.

look the attached patch.
this is for mine system, sanity check should be made (something like if(!file readable) and so on).
i think btw that a textbox inside the web interface is easiest to understand.

also look at:

#4 Updated by Jim Pingle about 1 year ago

  • Status changed from New to Closed
  • Target version deleted (Future)

Those who want to do this can set it up using the NET-SNMP package and custom extended commands.

Also available in: Atom PDF