Add perfdata to NullCheckTask.

This commit is contained in:
Michael Friedrich 2013-10-14 22:48:29 +02:00
parent 91134196a3
commit e8451018c6
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@
#endif #endif
#include "icinga/nullchecktask.h" #include "icinga/nullchecktask.h"
#include "base/utility.h" #include "base/utility.h"
#include "base/convert.h"
#include "base/scriptfunction.h" #include "base/scriptfunction.h"
#include "base/logger_fwd.h" #include "base/logger_fwd.h"
#include <boost/smart_ptr/make_shared.hpp> #include <boost/smart_ptr/make_shared.hpp>
@ -39,6 +40,7 @@ Dictionary::Ptr NullCheckTask::ScriptFunc(const Service::Ptr&)
String output = "Hello from "; String output = "Hello from ";
output += name; output += name;
output += " | time=" + Convert::ToString(static_cast<long>(Utility::GetTime()));
Dictionary::Ptr cr = boost::make_shared<Dictionary>(); Dictionary::Ptr cr = boost::make_shared<Dictionary>();
cr->Set("output", output); cr->Set("output", output);