Skip to content

Commit

Permalink
IcingaCheckTask::ScriptFunc(): print os facts
Browse files Browse the repository at this point in the history
refs #7751
  • Loading branch information
Al2Klimov committed Jan 24, 2025
1 parent f057c41 commit 162b902
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/methods/icingachecktask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 162b902

Please sign in to comment.