IcingaCheckTask::ScriptFunc(): print os facts

refs #7751
This commit is contained in:
Alexander A. Klimov 2020-02-06 17:24:10 +01:00
parent d09add3b86
commit ee815307af

View File

@ -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();