-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wireguard - invalid check parameter + doesn't show active peers #185
Comments
The errors also prevent updates on the server side, the plugin must be disabled before updating and re-enabled after. |
Any chance for an update on this? |
Thanks for reporting this regression bug introduced with pull request #148. The timeout is needed because wireguard sessions do not terminate. After a certain time a peer is considered not active. |
The allowed-ip problem is fixed, the timeout isn't. By default with no timeout configured all peers are considered on. If we put any timeout, it does fix the number of active peer, but then you get WARNS and CRITS for any peer that hasn't connected in said timeout. This needs to be a different variable completely. I use my Wireguard VPN tunnel only very sporadically; I don't want alerts because I haven't used it in a while, yet I don't want all peers to be considered active at all time when they are not. |
I created a separate issue, #187. |
Here is the output of the check plugin:
It produces the 2 following checks:
There is an error with the second check. Looking at the code, I'm a little bit confused at the active peer calculation; it seems like it requires a timeout rule defined, but that same timeout is also used as a criteria for WARN/CRIT? I want both checks to stay OK as long as the tunnel is up but would also like to have the active peer chart work.
The text was updated successfully, but these errors were encountered: