From ee815307af402983afd3b37f936553ce003d452a Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Thu, 6 Feb 2020 17:24:10 +0100 Subject: [PATCH] IcingaCheckTask::ScriptFunc(): print os facts refs #7751 --- lib/methods/icingachecktask.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/methods/icingachecktask.cpp b/lib/methods/icingachecktask.cpp index d3eae1f33..d1789023b 100644 --- a/lib/methods/icingachecktask.cpp +++ b/lib/methods/icingachecktask.cpp @@ -155,7 +155,12 @@ void IcingaCheckTask::ScriptFunc(const Checkable::Ptr& checkable, const CheckRes String appVersion = Application::GetAppVersion(); String output = "Icinga 2 has been running for " + Utility::FormatDuration(uptime) + - ". Version: " + appVersion; + ". Version: " + appVersion + + "; Platform: " + Utility::GetPlatformName() + + "; Platform version: " + Utility::GetPlatformVersion() + + "; Kernel: " + Utility::GetPlatformKernel() + + "; Kernel version: " + Utility::GetPlatformKernelVersion() + + "; Architecture: " + Utility::GetPlatformArchitecture(); /* Indicate a warning if the last reload failed. */ double lastReloadFailed = Application::GetLastReloadFailed();