Add load balancer status in SNMP
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.
#1 Updated by Jim Pingle over 7 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.
#3 Updated by Daniele Palumbo about 6 years ago
- File services.diff added
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/snmp_ucd.so"
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: