Categorygithub.com/GulshanArora7/ipsec_exporter
repositorypackage
0.3.4
Repository: https://github.com/gulshanarora7/ipsec_exporter.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# README

IPsec Exporter to Monitor Stronswan Metrics Test

Prometheus exporter for ipsec metrics, written in Go.

Inspired By : https://github.com/dennisstritzke/ipsec_exporter

Functionality

The IPsec exporter is determining the state of the configured IPsec tunnels via the following procedure.

  1. Starting up the /etc/strongswan/ipsec.conf is read. All tunnels configured via the conn keyword are observed.
  2. If the /metrics endpoint is queried, the exporter calls strongswan status <tunnel name> for each configured connection. The output is parsed.
    • If the output contains ESTABLISHED, we assume that only the connection is up.
    • If the output contains INSTALLED, we assume that the tunnel is up and running.
    • If the output contains no match, we assume that the connection is down.

Value Definition

MetricValueDescription
ipsec_status0The connection is established and tunnel is installed. The tunnel is up and running.
ipsec_status1The connection is established, but the tunnel is not up.
ipsec_status2The tunnel is down.
ipsec_status3The tunnel is in an unknown state.
ipsec_status4The tunnel is ignored.