icinga-powershell-plugins
icinga-powershell-plugins copied to clipboard
Apply Minimum correctly to individual HTTPStatus-Checks
trafficstars
The Minimum Parameter of Invoke-IcingaCheckHTTPStatus supposedly (there is not much documentation) allows one to define how many sub checks must be OK for the main check to be OK.
I did assume that this meant each individual URL given (e.g. Invoke-IcingaCheckHTTPStatus -URL https://foo.bar,https://bar.foo,https://baz.baz -Minimum 2 would be OK if checks fail for one URL but not for two) and changed to logic in the plugin accordingly.
If that is not the case and the parameter was meant for sub checks regarding each individual URL I would propose another parameter which does what I think :-)
ref NC/849479