Monitor StrongSwan Charon status via VICI: https://wiki.strongswan.org/projects/strongswan/wiki/VICI
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
Pipfile
Pipfile.lock
README.md
main.py

README.md

mackerel-plugin-strongswan

mackerel-plugin-strongswan is a mackerel-agent plugin for StrongSwan. This monitors StrongSwan Charon status via vici interface.

Metrics

custom.strongswan.sas.*

Active IKE_SA counts

custom.strongswan.pools.*

Usage of IP address pools

Reqruirements

  • StrongSwan
    • vici plugin is required (enabled by default)
    • Tested manually with 5.5.x
  • Python 3.4 ~
  • Pipenv

Usage

$ pipenv install
$ sudo pipenv run main.py # should output metrics

Example mackerel config

[plugin.metrics.strongswan]
command = "/opt/mackerel-plugin-strongswan/.venv/bin/python3 /opt/mackerel-plugin-strongswan/main.py"