Skip to content

Commit 4886a94

Browse files
committed
Fixes inventory support for module isolation
1 parent 0a2b39c commit 4886a94

12 files changed

+24
-12
lines changed

doc/31-Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
1515

1616
* [#283](https://github.com/Icinga/icinga-powershell-plugins/pull/283) Fixes random `Add-Type` exceptions during runtime compilation by replacing it with `Add-IcingaAddTypeLib`
1717
* [#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
18+
* [#299](https://github.com/Icinga/icinga-powershell-plugins/pull/299) Fixes integration with `Inventory` module
1819

1920
### Enhancements
2021

icinga-powershell-plugins.psd1

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,20 @@
4141
'Invoke-IcingaCheckPartitionSpace',
4242
'Invoke-IcingaCheckUsedPartitionSpace',
4343
'Invoke-IcingaCheckUsers',
44+
'Get-IcingaBios',
45+
'Get-IcingaCPUs',
4446
'Get-IcingaCPUCount',
4547
'Get-IcingaPhysicalDiskInfo',
46-
'Get-IcingaMemoryPerformanceCounter'
48+
'Get-IcingaDiskInformation',
49+
'Get-IcingaDiskPartitions',
50+
'Get-IcingaMemoryPerformanceCounter',
51+
'Get-IcingaMemory',
52+
'Get-IcingaProcessData',
53+
'Get-IcingaUpdatesHotfix',
54+
'Get-IcingaUpdatesInstalled',
55+
'Get-IcingaWindowsUpdatesPending',
56+
'Get-IcingaUsers',
57+
'Get-IcingaWindows'
4758
)
4859
CmdletsToExport = @(
4960
)

provider/bios/Icinga_ProviderBios.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function Get-IcingaBios()
1+
function Global:Get-IcingaBios()
22
{
33
<# Collects the most important BIOS informations,
44
e.g. name, version, manufacturer#>

provider/cpu/Icinga_ProviderCpu.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function Get-IcingaCPUs()
1+
function Global:Get-IcingaCPUs()
22
{
33
<# Collects the most important CPU informations,
44
e.g. name, version, manufacturer#>

provider/disks/Icinga_ProviderDisks.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function Get-IcingaDiskInformation()
1+
function Global:Get-IcingaDiskInformation()
22
{
33
<# Fetches the information for other more specific Get-IcingaDisk-functions
44
e.g. Get-IcingaDiskModel; Get-IcingaDiskManufacturer.
@@ -32,7 +32,7 @@ function Get-IcingaDiskInformation()
3232

3333
return $DiskData;
3434
}
35-
function Get-IcingaDiskPartitions()
35+
function Global:Get-IcingaDiskPartitions()
3636
{
3737
param(
3838
$Disk

provider/memory/Icinga_ProviderMemory.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function Get-IcingaMemory()
1+
function Global:Get-IcingaMemory()
22
{
33
<# Collects the most important Memory informations,
44
e.g. name, version, manufacturer#>

provider/private/process/Icinga_ProviderProcess.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function Add-IcingaProcessPerfData()
1313
}
1414
}
1515

16-
function Get-IcingaProcessData {
16+
function Global:Get-IcingaProcessData {
1717

1818
param (
1919
[array]$Process = @()

provider/private/updates/Get-IcingaUpdatesHotfix.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function Get-IcingaUpdatesHotfix()
1+
function Global:Get-IcingaUpdatesHotfix()
22
{
33
[hashtable]$HotfixInfo = @{ };
44
[hashtable]$HotfixNameCache = @{ };

provider/private/updates/Get-IcingaUpdatesInstalled.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function Get-IcingaUpdatesInstalled()
1+
function Global:Get-IcingaUpdatesInstalled()
22
{
33

44
# Fetch all informations about installed updates and add them

provider/private/updates/Get-IcingaWindowsUpdatesPending.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function Get-IcingaWindowsUpdatesPending()
1+
function Global:Get-IcingaWindowsUpdatesPending()
22
{
33
param (
44
[array]$UpdateFilter = @()

provider/private/users/Get-IcingaUsers.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function Get-IcingaUsers()
1+
function Global:Get-IcingaUsers()
22
{
33
param (
44
[array]$Username

provider/private/windows/Icinga_ProviderWindows.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function Get-IcingaWindows()
1+
function Global:Get-IcingaWindows()
22
{
33
$WindowsInformations = Get-IcingaWindowsInformation Win32_OperatingSystem;
44

0 commit comments

Comments
 (0)