Closed aww-yiss closed 6 years ago
Looks good, nice catch!
Thanks for your contribution to Sensu plugins! Without people like you submitting PRs we couldn't run the project. I will review it shortly.
Did a bit of git archaeology while waiting for CI. The bug was introduced here: https://github.com/sensu-plugins/sensu-plugins-network-checks/commit/8b06cdaaa1c6a77ad72e5c5995841b3c6e7d1f1e#diff-56550700c877f2a3e27b58702171f4fc and was released in 2.3.0
Fix for https://github.com/sensu-plugins/sensu-plugins-network-checks/issues/81
Corrects warning and critical logic for number of days until expiration