]> granicus.if.org Git - icinga2/commitdiff
Add version information to the "icinga" check task.
authorGunnar Beutner <gunnar@beutner.name>
Sat, 26 Apr 2014 14:43:38 +0000 (16:43 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Sat, 26 Apr 2014 14:43:38 +0000 (16:43 +0200)
Refs #4865

lib/methods/icingachecktask.cpp

index 6dce631ef4220317b91d9113191787c0b90e6a0c..72c7066fe59681070654f60b4d3c438534931856 100644 (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);