banshee est en développement actif : les collecteurs vont encore changer, et une version que vous publiez demandera sans doute des ajustements. Pour un usage stable, attendez la version 1.0.0.

Network

banshee/network-collection/network/fortinet/snmp/

vpn

The IPsec tunnels of a FortiGate by SNMP: the state and traffic of each tunnel, and a tunnel down or gone.

  • network
  • snmp
  • fortinet
  • fortigate
  • fortios
  • firewall
  • vpn
  • ipsec

par banshee1 installation2 versions

IPsec tunnels of a FortiGate, by SNMP

Returns, for each IPsec tunnel of a FortiGate, its state and its traffic in each direction, and the number of tunnels up. Three watches are offered: a tunnel down, a tunnel missing, and a tunnel without traffic.

How it works

The collector reads fgVpnTunTable (FORTINET-FORTIGATE-MIB), one row per phase 2 of a tunnel.

  • A tunnel is named by its phase 1 and its phase 2 (to-branch/to-branch-lan); two of the same name each keep their own, the second carrying its index.
  • The state is fgVpnTunEntStatus in words: up or down. "Tunnel down" is critical on down.
  • The traffic is the rate of fgVpnTunEntInOctets and fgVpnTunEntOutOctets between two runs, in bit/s, for a tunnel up; nothing on the first run.
  • A dial-up tunnel is listed only while a client is connected, and a tunnel may leave the table when it falls, depending on its configuration: name the tunnels that must stay up in "Missing tunnel".

The collector only reads: SNMP sends nothing but reads.

Prerequisites

  • SNMP enabled on the FortiGate, reachable from the poller (UDP 161), a community or a user restricted to the poller.
  • Read-only access, SNMPv2c or SNMPv3, set on the host or one of its folders (protocol:snmp:* variables).
  • Versions: FortiOS 5, 6 and 7, which serve this table alike. It stays at the common level of fortinet/.

Outputs

NameLabelUnitPer instance
statusTunnel state—yes, per tunnel
traffic-inInbound trafficbit/syes, per tunnel
traffic-outOutbound trafficbit/syes, per tunnel
tunnels-upTunnels up—no

Watches

NameTitleKindDefaultsChecked by default
downTunnel downstate to avoid, on statuscritical on downyes
missingMissing tunnelexpected instances, on statusno tunnel named: it raises nothing until names are set on the probeno
idleTunnel without trafficno activity, on traffic-inwarning after 30 min at zerono

Limits

  • SSL VPN tunnels are not in this table.
  • Which tunnels FortiOS keeps in the table while they are down, and which it drops, is not verified here without a device: "Missing tunnel" covers both.