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; }