icingaweb2-module-x509 icon indicating copy to clipboard operation
icingaweb2-module-x509 copied to clipboard

icingacli x509 check host: correct (previously inverted) thresholds

Open Al2Klimov opened this issue 1 year ago • 0 comments

As the check actually generates an alert if V < W|C, not V > W|C, the perfdata shall be L=V;W:;C:, not L=V;W;C.

https://nagios-plugins.org/doc/guidelines.html#THRESHOLDFORMAT

Before/after

[vagrant@icinga-web-2-development ~]$ icingacli x509 check host --host al2klimov.de
OK - al2klimov.de expires in 84 days|'al2klimov.de'=7315591s;1900800;777600;0;7775999
[vagrant@icinga-web-2-development ~]$ icingacli x509 check host --host al2klimov.de
OK - al2klimov.de expires in 84 days|'al2klimov.de'=7315574s;1900800:;777600:;0;7775999
[vagrant@icinga-web-2-development ~]$

Al2Klimov avatar Aug 17 '22 15:08 Al2Klimov