diff --git a/ATxCommon/SystemChecks.cs b/ATxCommon/SystemChecks.cs index bddd1ae331c73f2f705c86e606bd1c08d7540f3e..f5f53dab7da5cd17389c70d970c5753fa8bc59a4 100644 --- a/ATxCommon/SystemChecks.cs +++ b/ATxCommon/SystemChecks.cs @@ -155,11 +155,13 @@ namespace ATxCommon /// Generate an overall system health report with free space, grace location status, etc. /// </summary> /// <param name="storage">StorageStatus object used for space and grace reports.</param> + /// <param name="humanSystemName">A human-friendly name/description of the system.</param> /// <returns>A multi-line string containing the details assembled in the report. These /// comprise system uptime, free RAM, free storage space and current grace location status. /// </returns> - public static string HealthReport(StorageStatus storage) { + public static string HealthReport(StorageStatus storage, string humanSystemName="N/A") { var report = "------ System health report ------\n\n" + + $" - human name: {humanSystemName}\n" + $" - hostname: {Environment.MachineName}\n" + $" - uptime: {TimeUtils.SecondsToHuman(Uptime(), false)}\n" + $" - free system memory: {GetFreeMemory()} MB" + "\n\n"; diff --git a/ATxService/AutoTx.cs b/ATxService/AutoTx.cs index 570378608df1a27b924cc8b162e1f6052db17ab0..734759bba6f41bb81e50143b784b417b2d27cc4c 100644 --- a/ATxService/AutoTx.cs +++ b/ATxService/AutoTx.cs @@ -408,7 +408,7 @@ namespace ATxService "\n------ Loaded configuration settings ------\n" + _config.Summary(); - var health = SystemChecks.HealthReport(_storage); + var health = SystemChecks.HealthReport(_storage, _config.HostAlias); SendHealthReport(health); msg += "\n" + health;