From ccca2e591f815cd0905725879eb2cf3870f9e782 Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Sat, 14 Sep 2019 16:12:59 +0200 Subject: [PATCH] Added missing exception definitions --- lib/icinga/exception/Icinga_IcingaExceptionEnums.psm1 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/icinga/exception/Icinga_IcingaExceptionEnums.psm1 b/lib/icinga/exception/Icinga_IcingaExceptionEnums.psm1 index 8e87c40..553e172 100644 --- a/lib/icinga/exception/Icinga_IcingaExceptionEnums.psm1 +++ b/lib/icinga/exception/Icinga_IcingaExceptionEnums.psm1 @@ -4,8 +4,12 @@ # entire components #> - [hashtable]$Throw = @{ - PerformanceCounter = 'Icinga failed to fetch Performance Counter information. This may be caused when the Icinga Service User is not permited to access these information. To fix this, please add the User the Icinga Agent is running on into the "Performance Log Users" group.'; +[hashtable]$Permission = @{ + PerformanceCounter = 'A Plugin failed to fetch Performance Counter information. This may be caused when the used Service User is not permitted to access these information. To fix this, please add the User the Icinga Agent is running on into the "Performance Log Users" group.'; +}; + +[hashtable]$Inputs = @{ + PerformanceCounter = 'A plugin failed to fetch Performance Counter information. Please ensure the counter is written properly and available on your system.'; }; <# @@ -16,7 +20,8 @@ # $IcingaExceptionEnums.IcingaExecptionHandlers.PerformanceCounter #> [hashtable]$IcingaExceptions = @{ - Throw = $Throw; + Permission = $Permission; + Inputs = $Inputs; } Export-ModuleMember -Variable @( 'IcingaExceptions' );