From 5a724ba0112f324c427821b4616380edce03a12c Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 17 Oct 2013 10:24:47 +0200 Subject: [PATCH] Revert "NullCheckTask should return StateOK." This reverts commit 046ea13cc814900b163f4f5765afb84d2f3f2b14. --- lib/icinga/nullchecktask.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/icinga/nullchecktask.cpp b/lib/icinga/nullchecktask.cpp index 689c28eb8..894733788 100644 --- a/lib/icinga/nullchecktask.cpp +++ b/lib/icinga/nullchecktask.cpp @@ -45,7 +45,7 @@ Dictionary::Ptr NullCheckTask::ScriptFunc(const Service::Ptr&) Dictionary::Ptr cr = boost::make_shared(); cr->Set("output", output); cr->Set("performance_data_raw", perfdata); - cr->Set("state", StateOK); + cr->Set("state", static_cast(Utility::Random() % 4)); return cr; }