]> granicus.if.org Git - icinga2/commitdiff
Revert "NullCheckTask should return StateOK."
authorGunnar Beutner <gunnar.beutner@netways.de>
Thu, 17 Oct 2013 08:24:47 +0000 (10:24 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Thu, 17 Oct 2013 08:24:47 +0000 (10:24 +0200)
This reverts commit 046ea13cc814900b163f4f5765afb84d2f3f2b14.

lib/icinga/nullchecktask.cpp

index 689c28eb8176c73fafe153c96b38b2b7917d16a1..894733788c4e95a2193135d3fb8eb1c4bd5b7fbf 100644 (file)
@@ -45,7 +45,7 @@ Dictionary::Ptr NullCheckTask::ScriptFunc(const Service::Ptr&)
        Dictionary::Ptr cr = boost::make_shared<Dictionary>();
        cr->Set("output", output);
        cr->Set("performance_data_raw", perfdata);
-       cr->Set("state", StateOK);
+       cr->Set("state", static_cast<ServiceState>(Utility::Random() % 4));
 
        return cr;
 }