diff --git a/lib/icinga/nullchecktask.cpp b/lib/icinga/nullchecktask.cpp index 894733788..689c28eb8 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", static_cast(Utility::Random() % 4)); + cr->Set("state", StateOK); return cr; }