Project

General

Profile

Feature #1169

Add load balancer status in SNMP

Added by Sander Naudts about 6 years ago. Updated about 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
SNMP
Target version:
Start date:
01/06/2011
Due date:
% Done:

0%


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

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

History

#1 Updated by Jim Pingle about 6 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 about 6 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 about 5 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.

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

Also available in: Atom PDF