From 225b7bdfe89a39c04e4c0d9b3da33d702f9d427c Mon Sep 17 00:00:00 2001 From: Konstantina Chremmou Date: Mon, 30 Oct 2023 11:18:08 +0000 Subject: [PATCH] Added tooltips with the original check names. Signed-off-by: Konstantina Chremmou --- XenAdmin/SettingsPanels/NRPEEditPage.CheckGroup.cs | 2 +- XenModel/Messages.Designer.cs | 9 +++++++++ XenModel/Messages.resx | 3 +++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/XenAdmin/SettingsPanels/NRPEEditPage.CheckGroup.cs b/XenAdmin/SettingsPanels/NRPEEditPage.CheckGroup.cs index a5893066f..8f9f3f24d 100644 --- a/XenAdmin/SettingsPanels/NRPEEditPage.CheckGroup.cs +++ b/XenAdmin/SettingsPanels/NRPEEditPage.CheckGroup.cs @@ -53,7 +53,7 @@ public class CheckGroup public CheckGroup(string name, string labelName) { Name = name; - NameCell = new DataGridViewTextBoxCell { Value = labelName }; + NameCell = new DataGridViewTextBoxCell { Value = labelName, ToolTipText = string.Format(Messages.NRPE_METRIC_TOOLTIP, name) }; WarningThresholdCell = new DataGridViewTextBoxCell { Value = "" }; CriticalThresholdCell = new DataGridViewTextBoxCell { Value = "" }; CheckThresholdRow = new DataGridViewRow(); diff --git a/XenModel/Messages.Designer.cs b/XenModel/Messages.Designer.cs index d4cbd6173..ec1a7419f 100755 --- a/XenModel/Messages.Designer.cs +++ b/XenModel/Messages.Designer.cs @@ -29285,6 +29285,15 @@ public static string NRPE_INACTIVE { } } + /// + /// Looks up a localized string similar to NRPE check name: {0}. + /// + public static string NRPE_METRIC_TOOLTIP { + get { + return ResourceManager.GetString("NRPE_METRIC_TOOLTIP", resourceCulture); + } + } + /// /// Looks up a localized string similar to Failed to retrieve NRPE configuration, please check XenCenter logs.. /// diff --git a/XenModel/Messages.resx b/XenModel/Messages.resx index 54838ed18..be0c523ec 100755 --- a/XenModel/Messages.resx +++ b/XenModel/Messages.resx @@ -10161,6 +10161,9 @@ When you configure an NFS storage repository, you simply provide the host name o NRPE service is inactive + + NRPE check name: {0} + Failed to retrieve NRPE configuration, please check XenCenter logs.