Add version information to the "icinga" check task.

Refs #4865
This commit is contained in:
Gunnar Beutner 2014-04-26 16:43:38 +02:00
parent 1631d795b0
commit be4324c606

View File

@ -79,7 +79,7 @@ void IcingaCheckTask::ScriptFunc(const Checkable::Ptr& service, const CheckResul
perfdata->Set("num_hosts_in_downtime", hs.hosts_in_downtime);
perfdata->Set("num_hosts_acknowledged", hs.hosts_acknowledged);
cr->SetOutput("Icinga 2 is running.");
cr->SetOutput("Icinga 2 is running. Version: " + Application::GetVersion());
cr->SetPerformanceData(perfdata);
cr->SetState(ServiceOK);