Feature #1169
closed
Add load balancer status in SNMP
Added by Sander Naudts almost 14 years ago.
Updated over 5 years ago.
Description
Hi,
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.
Thanks!
http://forum.pfsense.org/index.php/topic,29974.0.html
Files
- 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.
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
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.
ie:
--
begemotSnmpdModulePath."ucd" = "/usr/local/lib/snmp_ucd.so"
%ucd
extNames.0 = "process total"
extCommand.0 = "/usr/local/bin/cacti_ps.sh 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:
http://forum.pfsense.org/index.php?topic=23358.0
- 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