]> granicus.if.org Git - icinga2/commitdiff
NullCheckTask should return StateOK.
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 16 Oct 2013 13:20:04 +0000 (15:20 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 16 Oct 2013 13:20:04 +0000 (15:20 +0200)
lib/icinga/nullchecktask.cpp

index 894733788c4e95a2193135d3fb8eb1c4bd5b7fbf..689c28eb8176c73fafe153c96b38b2b7917d16a1 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", static_cast<ServiceState>(Utility::Random() % 4));
+       cr->Set("state", StateOK);
 
        return cr;
 }