]> granicus.if.org Git - icinga2/commit
Fix state conditions in check_memory and check_swap
authorMichael Insel <michael@insel.email>
Thu, 29 Nov 2018 21:03:26 +0000 (22:03 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Wed, 5 Dec 2018 14:44:44 +0000 (15:44 +0100)
commit18de1f7e1102fcf76c08c9aa87f83c0faba213f8
tree4aab1f1b6cd32be3a3b751ce2740dee92fac6db0
parente2169f17f2a1e5fb5a192ea6474fa9cd47451e46
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