mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-22 07:39:52 -05:00
Added missing exception definitions
This commit is contained in:
parent
96284f07a3
commit
7d533513cb
1 changed files with 8 additions and 3 deletions
|
|
@ -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' );
|
||||
|
|
|
|||
Loading…
Reference in a new issue