Project

General

Profile

Actions

Feature #1169

closed

Add load balancer status in SNMP

Added by Sander Naudts over 13 years ago. Updated over 4 years ago.

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

0%

Estimated time:
Plus Target Version:
Release Notes:

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

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

Updated by Jim Pingle over 13 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.

Actions #2

Updated by Jim Pingle about 13 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

Actions #3

Updated by Daniele Palumbo about 12 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

Actions #4

Updated by Jim Pingle over 4 years 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.

Actions

Also available in: Atom PDF