Closed kepi closed 2 years ago
Thanks for providing the patch. I have to do some tests before merging it.
Looks like there are still some issues with your patch. I'm fixing the issues and will open a new merge request. Maybe we should release this as new 1.2.0 version.
Your changes and additional fixes have been included in a new PR #11
There were multiple problems in code causing this check to do totally different things than advertised. Mainly returning different states then it should, warn/crit when everything was ok.
This commit fixes argument parsing, debug messages and mainly parsing of backend up/down states.
This includes previous PR#8
Again, I made some test, but not extensively. It works in our environment and finally provide correct data, but there might be other edge cases which I overlooked.