From 6f4142e8b65b78450930cc84efa6df2403c8d93a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20H=C3=B6glinger-Stelzer?= Date: Wed, 12 Jul 2023 17:26:58 +0200 Subject: [PATCH] Added comments --- RAIDAlert.sln.DotSettings | 1 + Watchdog.cs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/RAIDAlert.sln.DotSettings b/RAIDAlert.sln.DotSettings index fed8894..27caf3c 100644 --- a/RAIDAlert.sln.DotSettings +++ b/RAIDAlert.sln.DotSettings @@ -1,2 +1,3 @@  + True True \ No newline at end of file diff --git a/Watchdog.cs b/Watchdog.cs index aa18b51..7b020b8 100644 --- a/Watchdog.cs +++ b/Watchdog.cs @@ -39,6 +39,7 @@ public partial class Watchdog : BackgroundService while (!stoppingToken.IsCancellationRequested) { + // Run "hpssacli" to query disk status BufferedCommandResult hpSsaCliResult = await Cli.Wrap(hpSsaCli) .WithArguments(new[] { "controller", "slot=1", "physicaldrive", "all", "show" }) .WithWorkingDirectory(workingDirectory) @@ -57,7 +58,8 @@ public partial class Watchdog : BackgroundService if (!allHealthy) { _logger.LogError("One or more disks reported faulty status"); - + + // Make some noise! await Cli.Wrap(pcBeeper) .WithArguments(new[] { "-f", "3000", "-d", "500" }) .WithWorkingDirectory(workingDirectory)