mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 15:19:58 -05:00
21 lines
536 B
PowerShell
21 lines
536 B
PowerShell
function Get-IcingaBackgroundDaemons()
|
|
{
|
|
$Daemons = Get-IcingaPowerShellConfig -Path 'BackgroundDaemon.EnabledDaemons';
|
|
[hashtable]$Output = @{ };
|
|
|
|
if ($null -eq $Daemons) {
|
|
return $Output;
|
|
}
|
|
|
|
foreach ($daemon in $Daemons.PSObject.Properties) {
|
|
$Arguments = @{ };
|
|
|
|
foreach ($argument in $daemon.Value.Arguments.PSObject.Properties) {
|
|
$Arguments.Add($argument.Name, $argument.Value);
|
|
}
|
|
|
|
$Output.Add($daemon.Name, $Arguments);
|
|
}
|
|
|
|
return $Output;
|
|
}
|