sensu-plugins / sensu-plugins-network-checks

This plugin provides native network instrumentation for monitoring and metrics collection, including: hardware, TCP response, RBLs, whois, port status, and more.
http://sensu-plugins.io
MIT License
30 stars 76 forks source link

Feature Request: Add retries parameter to check-ports.rb #54

Open jholle opened 7 years ago

jholle commented 7 years ago

Usually things that test connections provide a number of retries. I am aware that similar behavior by modifying my "occurrences" in my check definition. However, it's not quite the same and takes much longer to get a result. For example, my check runs every 2 minutes. Getting a 30 timeout, then waiting 1.5 minutes to test again and repeating isn't as useful as 2 rapid retries in succession to test a app server. Thoughts?

majormoses commented 7 years ago

sounds good, do you think you would be able to put together a pr?