liquidat / nagios-icinga-openvpn

Nagios/Icinga check for OpenVPN availability monitoring
MIT License
51 stars 27 forks source link

add UDP retries #15

Closed oh2kku closed 7 years ago

oh2kku commented 7 years ago

Added a retry feature for UDP mode. This allows more than one UDP probe to be sent before returning a critical status to Nagios. The feature can be used to prevent (low) packet loss from showing up as a problem in a given OpenVPN server in Nagios UI and event logs.

Example command lines:

Default timeout has not been changed and default retrycount is 1 to preserve the same behavior as previous versions. The timeout should typically be set lower than default when retries are used.

andiwand commented 7 years ago

that's very useful, thank you!

just a small remark: in python you usually write the for loop like: for i in range(retrycount):

liquidat commented 7 years ago

That's a great contribution - thank you very much!