diff --git a/doc/31-Changelog.md b/doc/31-Changelog.md index 3896bc98..71013db2 100644 --- a/doc/31-Changelog.md +++ b/doc/31-Changelog.md @@ -15,6 +15,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic * [#283](https://github.com/Icinga/icinga-powershell-plugins/pull/283) Fixes random `Add-Type` exceptions during runtime compilation by replacing it with `Add-IcingaAddTypeLib` * [#286](https://github.com/Icinga/icinga-powershell-plugins/issues/286) Fixes `Invoke-IcingaCheckHTTPStatus` which is not returning the request time, in case the target website is not providing content +* [#299](https://github.com/Icinga/icinga-powershell-plugins/pull/299) Fixes integration with `Inventory` module ### Enhancements diff --git a/icinga-powershell-plugins.psd1 b/icinga-powershell-plugins.psd1 index 0aa48554..a129f6f9 100644 --- a/icinga-powershell-plugins.psd1 +++ b/icinga-powershell-plugins.psd1 @@ -41,9 +41,20 @@ 'Invoke-IcingaCheckPartitionSpace', 'Invoke-IcingaCheckUsedPartitionSpace', 'Invoke-IcingaCheckUsers', + 'Get-IcingaBios', + 'Get-IcingaCPUs', 'Get-IcingaCPUCount', 'Get-IcingaPhysicalDiskInfo', - 'Get-IcingaMemoryPerformanceCounter' + 'Get-IcingaDiskInformation', + 'Get-IcingaDiskPartitions', + 'Get-IcingaMemoryPerformanceCounter', + 'Get-IcingaMemory', + 'Get-IcingaProcessData', + 'Get-IcingaUpdatesHotfix', + 'Get-IcingaUpdatesInstalled', + 'Get-IcingaWindowsUpdatesPending', + 'Get-IcingaUsers', + 'Get-IcingaWindows' ) CmdletsToExport = @( ) diff --git a/provider/bios/Icinga_ProviderBios.psm1 b/provider/bios/Icinga_ProviderBios.psm1 index 0b52e2f6..67c33c26 100644 --- a/provider/bios/Icinga_ProviderBios.psm1 +++ b/provider/bios/Icinga_ProviderBios.psm1 @@ -1,4 +1,4 @@ -function Get-IcingaBios() +function Global:Get-IcingaBios() { <# Collects the most important BIOS informations, e.g. name, version, manufacturer#> diff --git a/provider/cpu/Icinga_ProviderCpu.psm1 b/provider/cpu/Icinga_ProviderCpu.psm1 index 82c02b35..65858d98 100644 --- a/provider/cpu/Icinga_ProviderCpu.psm1 +++ b/provider/cpu/Icinga_ProviderCpu.psm1 @@ -1,4 +1,4 @@ -function Get-IcingaCPUs() +function Global:Get-IcingaCPUs() { <# Collects the most important CPU informations, e.g. name, version, manufacturer#> diff --git a/provider/disks/Icinga_ProviderDisks.psm1 b/provider/disks/Icinga_ProviderDisks.psm1 index e868ac3e..bd0eead4 100644 --- a/provider/disks/Icinga_ProviderDisks.psm1 +++ b/provider/disks/Icinga_ProviderDisks.psm1 @@ -1,4 +1,4 @@ -function Get-IcingaDiskInformation() +function Global:Get-IcingaDiskInformation() { <# Fetches the information for other more specific Get-IcingaDisk-functions e.g. Get-IcingaDiskModel; Get-IcingaDiskManufacturer. @@ -32,7 +32,7 @@ function Get-IcingaDiskInformation() return $DiskData; } -function Get-IcingaDiskPartitions() +function Global:Get-IcingaDiskPartitions() { param( $Disk diff --git a/provider/memory/Icinga_ProviderMemory.psm1 b/provider/memory/Icinga_ProviderMemory.psm1 index 6d808843..7ee7f6df 100644 --- a/provider/memory/Icinga_ProviderMemory.psm1 +++ b/provider/memory/Icinga_ProviderMemory.psm1 @@ -1,4 +1,4 @@ -function Get-IcingaMemory() +function Global:Get-IcingaMemory() { <# Collects the most important Memory informations, e.g. name, version, manufacturer#> diff --git a/provider/private/process/Icinga_ProviderProcess.psm1 b/provider/private/process/Icinga_ProviderProcess.psm1 index e2552d05..b0ec7c4d 100644 --- a/provider/private/process/Icinga_ProviderProcess.psm1 +++ b/provider/private/process/Icinga_ProviderProcess.psm1 @@ -13,7 +13,7 @@ function Add-IcingaProcessPerfData() } } -function Get-IcingaProcessData { +function Global:Get-IcingaProcessData { param ( [array]$Process = @() diff --git a/provider/private/updates/Get-IcingaUpdatesHotfix.psm1 b/provider/private/updates/Get-IcingaUpdatesHotfix.psm1 index f994143a..8b0e2c31 100644 --- a/provider/private/updates/Get-IcingaUpdatesHotfix.psm1 +++ b/provider/private/updates/Get-IcingaUpdatesHotfix.psm1 @@ -1,4 +1,4 @@ -function Get-IcingaUpdatesHotfix() +function Global:Get-IcingaUpdatesHotfix() { [hashtable]$HotfixInfo = @{ }; [hashtable]$HotfixNameCache = @{ }; diff --git a/provider/private/updates/Get-IcingaUpdatesInstalled.psm1 b/provider/private/updates/Get-IcingaUpdatesInstalled.psm1 index 7f48234d..238f9740 100644 --- a/provider/private/updates/Get-IcingaUpdatesInstalled.psm1 +++ b/provider/private/updates/Get-IcingaUpdatesInstalled.psm1 @@ -1,4 +1,4 @@ -function Get-IcingaUpdatesInstalled() +function Global:Get-IcingaUpdatesInstalled() { # Fetch all informations about installed updates and add them diff --git a/provider/private/updates/Get-IcingaWindowsUpdatesPending.psm1 b/provider/private/updates/Get-IcingaWindowsUpdatesPending.psm1 index 09185cc5..9d3224f8 100644 --- a/provider/private/updates/Get-IcingaWindowsUpdatesPending.psm1 +++ b/provider/private/updates/Get-IcingaWindowsUpdatesPending.psm1 @@ -1,4 +1,4 @@ -function Get-IcingaWindowsUpdatesPending() +function Global:Get-IcingaWindowsUpdatesPending() { param ( [array]$UpdateFilter = @() diff --git a/provider/private/users/Get-IcingaUsers.psm1 b/provider/private/users/Get-IcingaUsers.psm1 index 9c444ad6..81c9bf2b 100644 --- a/provider/private/users/Get-IcingaUsers.psm1 +++ b/provider/private/users/Get-IcingaUsers.psm1 @@ -1,4 +1,4 @@ -function Get-IcingaUsers() +function Global:Get-IcingaUsers() { param ( [array]$Username diff --git a/provider/private/windows/Icinga_ProviderWindows.psm1 b/provider/private/windows/Icinga_ProviderWindows.psm1 index 4e680802..274abf23 100644 --- a/provider/private/windows/Icinga_ProviderWindows.psm1 +++ b/provider/private/windows/Icinga_ProviderWindows.psm1 @@ -1,4 +1,4 @@ -function Get-IcingaWindows() +function Global:Get-IcingaWindows() { $WindowsInformations = Get-IcingaWindowsInformation Win32_OperatingSystem;