dennisstritzke / ipsec_exporter

Prometheus exporter for IPsec metrics.
MIT License
51 stars 39 forks source link

Tunnel configured as "auto=ignore" are reported as "down" #4

Closed D3N14L closed 6 years ago

D3N14L commented 6 years ago

Hi Dennis,

we have a VPN gateway that has at least one tunnel with the configuration parameter "auto=ignore". Which causes the ipsec damon to do exactly this - ignore this tunnel configuration. The ipsec-exporter obviously does not distinguish between tunnels that are down because of an error and tunnels that are in the config, but have been configured as down administratively (by setting auto=ignore). As the ipsec daemon actually does not load those tunnel configurations, it should be okay to do the same on the ipsec-exporter.

dennisstritzke commented 6 years ago

I totally agree. Interested in submitting a pull request?

D3N14L commented 6 years ago

I would love to, but I fear that I would first have to learn a bit of GoLang. Which is an item on my ToDo list for some time now...

dennisstritzke commented 6 years ago

I just release v0.2 where auto=ignore connections are reported as ignored. Do these changes match your expectation? Feedback is appreciated!