]> granicus.if.org Git - icinga2/commit
Fix state conditions in check_memory and check_swap 6811/head
authorMichael Insel <michael@insel.email>
Thu, 29 Nov 2018 21:03:26 +0000 (22:03 +0100)
committerMichael Insel <michael@insel.email>
Thu, 29 Nov 2018 21:16:57 +0000 (22:16 +0100)
commit160a7716c5a25d530853557b93a7567b7c9123af
tree86112fb41d819fe3d7723dccfde74e4191ec53b1
parent1f06ba2dfc8e3bdbd9d8cf80659f0bee0a65eda7
Fix state conditions in check_memory and check_swap

This fixes the state conditions in check_memory and check_swap. This
turns the if/else if/else statements in simple if statements, since they
won't work properly when both thresholds are broken.

This also implements a new function to get a given state as wstring.
plugins/check_memory.cpp
plugins/check_swap.cpp
plugins/thresholds.cpp
plugins/thresholds.hpp