Use NodeName instead of GetFQDN() in embedded checks

fixes #10818
This commit is contained in:
Michael Friedrich 2015-12-10 15:27:49 +01:00
parent 8aa41715f9
commit e623394af1
2 changed files with 4 additions and 2 deletions

View File

@ -22,6 +22,7 @@
#endif /* _WIN32 */
#include "methods/nullchecktask.hpp"
#include "icinga/perfdatavalue.hpp"
#include "icinga/icingaapplication.hpp"
#include "base/utility.hpp"
#include "base/convert.hpp"
#include "base/function.hpp"
@ -38,7 +39,7 @@ void NullCheckTask::ScriptFunc(const Checkable::Ptr& service, const CheckResult:
return;
String output = "Hello from ";
output += Utility::GetFQDN();
output += IcingaApplication::GetInstance()->GetNodeName();
Array::Ptr perfdata = new Array();
perfdata->Add(new PerfdataValue("time", Convert::ToDouble(Utility::GetTime())));

View File

@ -22,6 +22,7 @@
#endif /* _WIN32 */
#include "methods/randomchecktask.hpp"
#include "icinga/perfdatavalue.hpp"
#include "icinga/icingaapplication.hpp"
#include "base/utility.hpp"
#include "base/convert.hpp"
#include "base/function.hpp"
@ -38,7 +39,7 @@ void RandomCheckTask::ScriptFunc(const Checkable::Ptr& service, const CheckResul
return;
String output = "Hello from ";
output += Utility::GetFQDN();
output += IcingaApplication::GetInstance()->GetNodeName();
Array::Ptr perfdata = new Array();
perfdata->Add(new PerfdataValue("time", Convert::ToDouble(Utility::GetTime())));