From 9a4a2dadc94aabd7471871bc1f0889d1f8465c88 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Fri, 13 Dec 2024 18:09:34 -0500 Subject: [PATCH] Updated Priorities causing no tickets to cut --- hwmonDaemon.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hwmonDaemon.py b/hwmonDaemon.py index 23a4318..8045c40 100644 --- a/hwmonDaemon.py +++ b/hwmonDaemon.py @@ -133,7 +133,7 @@ class SystemHealthMonitor: for issue in issues: # Set default values - priority = "P4" + priority = "" category = "Hardware" issue_type = "Problem" scope = "[single-node]" @@ -141,18 +141,18 @@ class SystemHealthMonitor: if "Disk" in issue: hardware_type = "[hardware]" if "CRITICAL" in issue or "SMART failure" in issue: - priority = "P2" + priority = "2" elif "WARNING" in issue: - priority = "P3" + priority = "3" elif "Memory" in issue: hardware_type = "[hardware]" - priority = "P3" + priority = "3" elif "CPU" in issue: hardware_type = "[hardware]" - priority = "P3" + priority = "3" elif "Network" in issue: hardware_type = "[network]" - priority = "P2" + priority = "2" scope = "[cluster-wide]" # Create standardized ticket title