From 8057fcd9075aaf9de36c26a95a511a26aaf657a2 Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Thu, 31 Oct 2019 17:24:30 +0100 Subject: [PATCH] Fixes repo links and namings --- README.md | 4 ++-- doc/10-InstallService.md | 4 ++-- doc/installation/01-KickstartScript.md | 4 ++-- doc/installation/02-ManualInstallation.md | 8 +++---- ...s.psd1 => icinga-powershell-framework.psd1 | 2 +- ...s.psm1 => icinga-powershell-framework.psm1 | 13 +++++++--- .../Get-IcingaFrameworkServiceBinary.psm1 | 2 +- lib/core/tools/ConvertTo-ByteUnitSI.psm1 | 24 +++++++++---------- lib/core/tools/ConvertTo-Seconds.psm1 | 4 ++-- .../tools/Get-IcingaCheckCommandConfig.psm1 | 4 ++-- lib/core/tools/Set-NumericNegative.psm1 | 4 ++-- lib/core/tools/Test-Numeric.psm1 | 4 ++-- lib/plugins/Invoke-IcingaCheckBiosSerial.psm1 | 4 ++-- lib/plugins/Invoke-IcingaCheckCPU.psm1 | 4 ++-- lib/plugins/Invoke-IcingaCheckCheckSum.psm1 | 4 ++-- lib/plugins/Invoke-IcingaCheckDirectory.psm1 | 4 ++-- lib/plugins/Invoke-IcingaCheckEventlog.psm1 | 4 ++-- lib/plugins/Invoke-IcingaCheckFirewall.psm1 | 4 ++-- lib/plugins/Invoke-IcingaCheckMemory.psm1 | 4 ++-- .../Invoke-IcingaCheckPerfcounter.psm1 | 4 ++-- .../Invoke-IcingaCheckProcessCount.psm1 | 4 ++-- lib/plugins/Invoke-IcingaCheckService.psm1 | 4 ++-- lib/plugins/Invoke-IcingaCheckUpdates.psm1 | 4 ++-- lib/plugins/Invoke-IcingaCheckUptime.psm1 | 4 ++-- .../Invoke-IcingaCheckUsedPartitionSpace.psm1 | 4 ++-- lib/plugins/Invoke-IcingaCheckUsers.psm1 | 4 ++-- 26 files changed, 70 insertions(+), 63 deletions(-) rename icinga-module-windows.psd1 => icinga-powershell-framework.psd1 (98%) rename icinga-module-windows.psm1 => icinga-powershell-framework.psm1 (91%) diff --git a/README.md b/README.md index cd6b33b..5654e5f 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,6 @@ Contributing The Icinga Windows Module is an Open Source project and lives from your contributions. No matter whether these are feature requests, issues, translations, documentation or code. -* Please check whether a related issue alredy exists on our [Issue Tracker](https://github.com/LordHepipud/icinga-module-windows/issues) -* Send a [Pull Request](https://github.com/LordHepipud/icinga-module-windows/pulls) +* Please check whether a related issue alredy exists on our [Issue Tracker](https://github.com/Icinga/icinga-powershell-framework/issues) +* Send a [Pull Request](https://github.com/Icinga/icinga-powershell-framework/pulls) * The master branche shall never be corrupt! diff --git a/doc/10-InstallService.md b/doc/10-InstallService.md index ae05aae..92a2214 100644 --- a/doc/10-InstallService.md +++ b/doc/10-InstallService.md @@ -6,12 +6,12 @@ Requirements As PowerShell Scripts / Modules can not be installed directly as Windows Service, we will require a little assistance here. -In order to make this work, you will require the Icinga Windows Service which can be downloaded directly from the [GitHub Repository](https://github.com/LordHepipud/icinga-windows-service). +In order to make this work, you will require the Icinga Windows Service which can be downloaded directly from the [GitHub Repository](https://github.com/Icinga/icinga-windows-service). Install the Service --- -At first you will require the Service Binary from the [Icinga Windows Service GitHub Repository](https://github.com/LordHepipud/icinga-windows-service) and copy the binary locally to your system. A recommended path would be your Program Files / Program Files (x86) directory. +At first you will require the Service Binary from the [Icinga Windows Service GitHub Repository](https://github.com/Icinga/icinga-windows-service) and copy the binary locally to your system. A recommended path would be your Program Files / Program Files (x86) directory. Any other custom location is fully supported, has to be however accessable from the Windows Service Environment. diff --git a/doc/installation/01-KickstartScript.md b/doc/installation/01-KickstartScript.md index b3e347f..8ac9d1d 100644 --- a/doc/installation/01-KickstartScript.md +++ b/doc/installation/01-KickstartScript.md @@ -1,7 +1,7 @@ Install the framework with the Kickstart Script === -The easiest way to install the framework is by using the Kickstart Script provided from [this repository](https://github.com/LordHepipud/icinga-framework-kickstart). +The easiest way to install the framework is by using the Kickstart Script provided from [this repository](https://github.com/Icinga/icinga-framework-kickstart). The code provided there will ask questions on where to install the framework and where the framework files are provided from. The code below is a straight copy of the initial required code-block. Simply open a PowerShell instance as administrator and copy the following code block into it: @@ -12,7 +12,7 @@ Getting Started [Net.ServicePointManager]::SecurityProtocol = "tls12, tls11"; $ProgressPreference = "SilentlyContinue"; -$global:IcingaFrameworkKickstartSource = 'https://raw.githubusercontent.com/LordHepipud/icinga-framework-kickstart/master/script/icinga-framework-kickstart.ps1'; +$global:IcingaFrameworkKickstartSource = 'https://raw.githubusercontent.com/Icinga/icinga-framework-kickstart/master/script/icinga-framework-kickstart.ps1'; $Script = (Invoke-WebRequest -UseBasicParsing -Uri $global:IcingaFrameworkKickstartSource).Content; $Script += "`r`n`r`n Start-IcingaFrameworkWizard;"; diff --git a/doc/installation/02-ManualInstallation.md b/doc/installation/02-ManualInstallation.md index 8515229..d87b865 100644 --- a/doc/installation/02-ManualInstallation.md +++ b/doc/installation/02-ManualInstallation.md @@ -19,13 +19,13 @@ To be able to use the module, you will require to have named the folder **exactl Example folder path: ```powershell -C:\Program Files\WindowsPowerShell\Modules\icinga-module-windows +C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-framework ``` To validate if the module is installed properly, you can start a **new** PowerShell instance and type the following command ```powershell -Get-Module -ListAvailable -Name icinga-module-windows +Get-Module -ListAvailable -Name icinga-powershell-framework ``` If you receive an output stating that the module is installed, you are fine to continue. @@ -35,10 +35,10 @@ Execution Policies and File Blocking In order to be able to run the module on certain Windows Hosts, it might be required to either update the execution policies and/or unblock the module script files. -The prefered way is to simply unblock the script files, allowing them to be executed on the system. This can be done by running a PowerShell instance as **Administrator** and enter the following command (we assume the module is installed at `C:\Program Files\WindowsPowershell\Modules\icinga-module-windows`. If not, please modify the command with the correct location) +The prefered way is to simply unblock the script files, allowing them to be executed on the system. This can be done by running a PowerShell instance as **Administrator** and enter the following command (we assume the module is installed at `C:\Program Files\WindowsPowershell\Modules\icinga-powershell-framework`. If not, please modify the command with the correct location) ```powershell -Get-ChildItem -Path 'C:\Program Files\WindowsPowershell\Modules\icinga-module-windows' -Recurse | Unblock-File +Get-ChildItem -Path 'C:\Program Files\WindowsPowershell\Modules\icinga-powershell-framework' -Recurse | Unblock-File ``` Once done, please try again if you are now able to run the module on your host. If you are still not able to run the module and/or its scripts, please have a look on the Microsoft documentation for the [Set-Execution-Policy](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-6) Cmdlet to modify the Execution Policy for running PowerShell modules on your host, matching your internal guidelines. diff --git a/icinga-module-windows.psd1 b/icinga-powershell-framework.psd1 similarity index 98% rename from icinga-module-windows.psd1 rename to icinga-powershell-framework.psd1 index e8e36fe..236f170 100644 --- a/icinga-module-windows.psd1 +++ b/icinga-powershell-framework.psd1 @@ -1,7 +1,7 @@ @{ # Script module or binary module file associated with this manifest. -ModuleToProcess = 'icinga-module-windows.psm1' +ModuleToProcess = 'icinga-powershell-framework.psm1' # Module version number ModuleVersion = '0.0.1' diff --git a/icinga-module-windows.psm1 b/icinga-powershell-framework.psm1 similarity index 91% rename from icinga-module-windows.psm1 rename to icinga-powershell-framework.psm1 index 77f45d8..9cfdf0f 100644 --- a/icinga-module-windows.psm1 +++ b/icinga-powershell-framework.psm1 @@ -2,7 +2,7 @@ .Synopsis Icinga PowerShell Module - Powerfull PowerShell Framework for monitoring Windows Systems .DESCRIPTION - More Information on https://github.com/LordHepipud/icinga-module-windows + More Information on https://github.com/Icinga/icinga-powershell-framework .EXAMPLE Install-Icinga .NOTES @@ -51,7 +51,8 @@ function Import-IcingaLib() # possible development changes without having to create new PowerShell environments [Switch]$ForceReload, [switch]$Init, - [switch]$Custom + [switch]$Custom, + [switch]$WriteManifests ); # This is just to only allow a global loading of the module. Import-IcingaLib is ignored on every other @@ -85,6 +86,9 @@ function Import-IcingaLib() } } else { Import-Module ([string]::Format('{0}', $modulePath)) -Global; + if ($WriteManifests) { + Publish-IcingaModuleManifests -Module $moduleName; + } } } } else { @@ -98,6 +102,9 @@ function Import-IcingaLib() } Import-Module ([string]::Format('{0}.psm1', $module)) -Global; + if ($WriteManifests) { + Publish-IcingaModuleManifests -Module $moduleName; + } } } @@ -168,5 +175,5 @@ function Get-IcingaPowerShellConfigDir() function Get-IcingaPowerShellModuleFile() { - return (Join-Path -Path $PSScriptRoot -ChildPath 'icinga-module-windows.psm1'); + return (Join-Path -Path $PSScriptRoot -ChildPath 'icinga-powershell-framework.psm1'); } diff --git a/lib/core/framework/Get-IcingaFrameworkServiceBinary.psm1 b/lib/core/framework/Get-IcingaFrameworkServiceBinary.psm1 index 071e7b7..18a12f7 100644 --- a/lib/core/framework/Get-IcingaFrameworkServiceBinary.psm1 +++ b/lib/core/framework/Get-IcingaFrameworkServiceBinary.psm1 @@ -9,7 +9,7 @@ function Get-IcingaFrameworkServiceBinary() if ([string]::IsNullOrEmpty($FrameworkServiceUrl)) { if ((Get-IcingaAgentInstallerAnswerInput -Prompt 'Do you provide a custom source of the service binary?' -Default 'n').result -eq 1) { - $LatestRelease = (Invoke-WebRequest -Uri 'https://github.com/LordHepipud/icinga-windows-service/releases/latest' -UseBasicParsing).BaseResponse.ResponseUri.AbsoluteUri; + $LatestRelease = (Invoke-WebRequest -Uri 'https://github.com/Icinga/icinga-windows-service/releases/latest' -UseBasicParsing).BaseResponse.ResponseUri.AbsoluteUri; $FrameworkServiceUrl = $LatestRelease.Replace('/tag/', '/download/'); $Tag = $FrameworkServiceUrl.Split('/')[-1]; $FrameworkServiceUrl = [string]::Format('{0}/icinga-service-{1}.zip', $FrameworkServiceUrl, $Tag); diff --git a/lib/core/tools/ConvertTo-ByteUnitSI.psm1 b/lib/core/tools/ConvertTo-ByteUnitSI.psm1 index 107dc42..2602611 100644 --- a/lib/core/tools/ConvertTo-ByteUnitSI.psm1 +++ b/lib/core/tools/ConvertTo-ByteUnitSI.psm1 @@ -5,12 +5,12 @@ This module converts a given unit size to byte. e.g Kilobyte to Byte. - More Information on https://github.com/LordHepipud/icinga-module-windows + More Information on https://github.com/Icinga/icinga-powershell-framework .EXAMPLE PS> ConvertTo-Byte -Unit TB 200 200000000000000 .LINK - https://github.com/LordHepipud/icinga-module-windows + https://github.com/Icinga/icinga-powershell-framework .NOTES #> @@ -45,12 +45,12 @@ function ConvertTo-ByteSI() This module converts a given unit size to kilobyte. e.g byte to kilobyte. - More Information on https://github.com/LordHepipud/icinga-module-windows + More Information on https://github.com/Icinga/icinga-powershell-framework .EXAMPLE PS> ConvertTo-KiloByte -Unit TB 200 200000000000 .LINK - https://github.com/LordHepipud/icinga-module-windows + https://github.com/Icinga/icinga-powershell-framework .NOTES #> @@ -85,12 +85,12 @@ function ConvertTo-KiloByte() This module converts a given unit size to megabyte. e.g byte to megabyte. - More Information on https://github.com/LordHepipud/icinga-module-windows + More Information on https://github.com/Icinga/icinga-powershell-framework .EXAMPLE PS> ConvertTo-KiloByte -Unit TB 200 200000000 .LINK - https://github.com/LordHepipud/icinga-module-windows + https://github.com/Icinga/icinga-powershell-framework .NOTES #> @@ -125,12 +125,12 @@ function ConvertTo-MegaByte() This module converts a given unit size to gigabyte. e.g byte to gigabyte. - More Information on https://github.com/LordHepipud/icinga-module-windows + More Information on https://github.com/Icinga/icinga-powershell-framework .EXAMPLE PS> ConvertTo-GigaByte -Unit TB 200 200000 .LINK - https://github.com/LordHepipud/icinga-module-windows + https://github.com/Icinga/icinga-powershell-framework .NOTES #> @@ -165,12 +165,12 @@ function ConvertTo-GigaByte() This module converts a given unit size to terabyte. e.g byte to terabyte. - More Information on https://github.com/LordHepipud/icinga-module-windows + More Information on https://github.com/Icinga/icinga-powershell-framework .EXAMPLE PS> ConvertTo-TeraByte -Unit GB 2000000 2000 .LINK - https://github.com/LordHepipud/icinga-module-windows + https://github.com/Icinga/icinga-powershell-framework .NOTES #> @@ -205,12 +205,12 @@ function ConvertTo-TeraByte() This module converts a given unit size to petabyte. e.g byte to petabyte. - More Information on https://github.com/LordHepipud/icinga-module-windows + More Information on https://github.com/Icinga/icinga-powershell-framework .EXAMPLE PS> ConvertTo-PetaByte -Unit GB 2000000 2 .LINK - https://github.com/LordHepipud/icinga-module-windows + https://github.com/Icinga/icinga-powershell-framework .NOTES #> diff --git a/lib/core/tools/ConvertTo-Seconds.psm1 b/lib/core/tools/ConvertTo-Seconds.psm1 index 7553361..6472e51 100644 --- a/lib/core/tools/ConvertTo-Seconds.psm1 +++ b/lib/core/tools/ConvertTo-Seconds.psm1 @@ -7,7 +7,7 @@ Import-IcingaLib core\tools; This module converts a given time unit to seconds. e.g hours to seconds. - More Information on https://github.com/LordHepipud/icinga-module-windows + More Information on https://github.com/Icinga/icinga-powershell-framework .PARAMETER Value Specify unit to be converted to seconds. Allowed units: ms, s, m, h, d, w, M, y @@ -18,7 +18,7 @@ Import-IcingaLib core\tools; PS> ConvertTo-Seconds 30d 2592000 .LINK - https://github.com/LordHepipud/icinga-module-windows + https://github.com/Icinga/icinga-powershell-framework .NOTES #> diff --git a/lib/core/tools/Get-IcingaCheckCommandConfig.psm1 b/lib/core/tools/Get-IcingaCheckCommandConfig.psm1 index e8f7bc7..5aa347c 100644 --- a/lib/core/tools/Get-IcingaCheckCommandConfig.psm1 +++ b/lib/core/tools/Get-IcingaCheckCommandConfig.psm1 @@ -6,7 +6,7 @@ Get-IcingaCheckCommandConfig returns a JSON-file of one or all 'Invoke-IcingaCheck'-Commands, which can be imported via Icinga-Director When no single command is specified all commands will be exported, and vice versa. - More Information on https://github.com/LordHepipud/icinga-module-windows + More Information on https://github.com/Icinga/icinga-powershell-framework .FUNCTIONALITY This module is intended to be used to export one or all PowerShell-Modules with the namespace 'Invoke-IcingaCheck'. @@ -56,7 +56,7 @@ System.String .LINK - https://github.com/LordHepipud/icinga-module-windows + https://github.com/Icinga/icinga-powershell-framework .NOTES #> diff --git a/lib/core/tools/Set-NumericNegative.psm1 b/lib/core/tools/Set-NumericNegative.psm1 index 2ae24d9..1f898ca 100644 --- a/lib/core/tools/Set-NumericNegative.psm1 +++ b/lib/core/tools/Set-NumericNegative.psm1 @@ -5,12 +5,12 @@ This module sets a numeric value to be negative. e.g 12 to -12 - More Information on https://github.com/LordHepipud/icinga-module-windows + More Information on https://github.com/Icinga/icinga-powershell-framework .EXAMPLE PS> Set-NumericNegative 32 -32 .LINK - https://github.com/LordHepipud/icinga-module-windows + https://github.com/Icinga/icinga-powershell-framework .NOTES #> diff --git a/lib/core/tools/Test-Numeric.psm1 b/lib/core/tools/Test-Numeric.psm1 index ad67b36..6ba75a6 100644 --- a/lib/core/tools/Test-Numeric.psm1 +++ b/lib/core/tools/Test-Numeric.psm1 @@ -4,12 +4,12 @@ .DESCRIPTION This module tests whether a value is numeric - More Information on https://github.com/LordHepipud/icinga-module-windows + More Information on https://github.com/Icinga/icinga-powershell-framework .EXAMPLE PS> Test-Numeric 32 True .LINK - https://github.com/LordHepipud/icinga-module-windows + https://github.com/Icinga/icinga-powershell-framework .NOTES #> function Test-Numeric ($number) { diff --git a/lib/plugins/Invoke-IcingaCheckBiosSerial.psm1 b/lib/plugins/Invoke-IcingaCheckBiosSerial.psm1 index d4cc69e..2d13871 100644 --- a/lib/plugins/Invoke-IcingaCheckBiosSerial.psm1 +++ b/lib/plugins/Invoke-IcingaCheckBiosSerial.psm1 @@ -5,7 +5,7 @@ Import-IcingaLib provider\bios; Finds out the Bios Serial .DESCRIPTION Invoke-IcingaCheckBiosSerial returns either the Bios Serial or nothing. - More Information on https://github.com/LordHepipud/icinga-module-windows + More Information on https://github.com/Icinga/icinga-powershell-framework .FUNCTIONALITY This module is intended to be used to find out the Bios Serial of a given system Either the a Bios Serial is returned or not. Thereby the Check is always okay. @@ -15,7 +15,7 @@ Import-IcingaLib provider\bios; .OUTPUTS System.String .LINK - https://github.com/LordHepipud/icinga-module-windows + https://github.com/Icinga/icinga-powershell-framework .NOTES #> diff --git a/lib/plugins/Invoke-IcingaCheckCPU.psm1 b/lib/plugins/Invoke-IcingaCheckCPU.psm1 index 6f0d968..ad1fa53 100644 --- a/lib/plugins/Invoke-IcingaCheckCPU.psm1 +++ b/lib/plugins/Invoke-IcingaCheckCPU.psm1 @@ -8,7 +8,7 @@ Import-IcingaLib icinga\plugin; .DESCRIPTION Invoke-IcingaCheckCPU returns either 'OK', 'WARNING' or 'CRITICAL', based on the thresholds set. e.g A system has 4 cores, each running at 60% usage, WARNING is set to 50%, CRITICAL is set to 75%. In this case the check will return WARNING. - More Information on https://github.com/LordHepipud/icinga-module-windows + More Information on https://github.com/Icinga/icinga-powershell-framework .FUNCTIONALITY This module is intended to be used to check on the current cpu usage of a specified core. Based on the thresholds set the status will change between 'OK', 'WARNING' or 'CRITICAL'. The function will return one of these given codes. @@ -31,7 +31,7 @@ Import-IcingaLib icinga\plugin; .OUTPUTS System.String .LINK - https://github.com/LordHepipud/icinga-module-windows + https://github.com/Icinga/icinga-powershell-framework .NOTES #> diff --git a/lib/plugins/Invoke-IcingaCheckCheckSum.psm1 b/lib/plugins/Invoke-IcingaCheckCheckSum.psm1 index a11d50a..c399184 100644 --- a/lib/plugins/Invoke-IcingaCheckCheckSum.psm1 +++ b/lib/plugins/Invoke-IcingaCheckCheckSum.psm1 @@ -4,7 +4,7 @@ .DESCRIPTION Invoke-IcingaCheckCheckSum returns either 'OK' or 'CRITICAL', whether the check matches or not. - More Information on https://github.com/LordHepipud/icinga-module-windows + More Information on https://github.com/Icinga/icinga-powershell-framework .FUNCTIONALITY This module is intended to be used to check a hash against a filehash of a file, to determine whether changes have occured. Based on the match result the status will change between 'OK' or 'CRITICAL'. The function will return one of these given codes. @@ -38,7 +38,7 @@ System.String .LINK - https://github.com/LordHepipud/icinga-module-windows + https://github.com/Icinga/icinga-powershell-framework .NOTES #> diff --git a/lib/plugins/Invoke-IcingaCheckDirectory.psm1 b/lib/plugins/Invoke-IcingaCheckDirectory.psm1 index 9e2be91..c030596 100644 --- a/lib/plugins/Invoke-IcingaCheckDirectory.psm1 +++ b/lib/plugins/Invoke-IcingaCheckDirectory.psm1 @@ -6,7 +6,7 @@ Import-IcingaLib provider\directory; .DESCRIPTION Invoke-IcingaCheckDirectory returns either 'OK', 'WARNING' or 'CRITICAL', based on the thresholds set. e.g 'C:\Users\Icinga\Backup' contains 200 files, WARNING is set to 150, CRITICAL is set to 300. In this case the check will return CRITICAL - More Information on https://github.com/LordHepipud/icinga-module-windows + More Information on https://github.com/Icinga/icinga-powershell-framework .FUNCTIONALITY This module is intended to be used to check how many files and directories are within are specified path. Based on the thresholds set the status will change between 'OK', 'WARNING' or 'CRITICAL'. The function will return one of these given codes. @@ -72,7 +72,7 @@ Import-IcingaLib provider\directory; .OUTPUTS System.String .LINK - https://github.com/LordHepipud/icinga-module-windows + https://github.com/Icinga/icinga-powershell-framework .NOTES #> diff --git a/lib/plugins/Invoke-IcingaCheckEventlog.psm1 b/lib/plugins/Invoke-IcingaCheckEventlog.psm1 index 1cea274..18b8ccc 100644 --- a/lib/plugins/Invoke-IcingaCheckEventlog.psm1 +++ b/lib/plugins/Invoke-IcingaCheckEventlog.psm1 @@ -7,7 +7,7 @@ Import-IcingaLib icinga\plugin; Invoke-IcingaCheckEventlog returns either 'OK', 'WARNING' or 'CRITICAL', based on the thresholds set. e.g Eventlog returns 500 entrys with the specified parameters, WARNING is set to 200, CRITICAL is set to 800. Thereby the check will return WARNING. - More Information on https://github.com/LordHepipud/icinga-module-windows + More Information on https://github.com/Icinga/icinga-powershell-framework .FUNCTIONALITY This Module is intended to be used to check how many eventlog occurences of a given type there are. Based on the thresholds set the status will change between 'OK', 'WARNING' or 'CRITICAL'. The function will return one of these given codes. @@ -63,7 +63,7 @@ Import-IcingaLib icinga\plugin; .OUTPUTS System.String .LINK - https://github.com/LordHepipud/icinga-module-windows + https://github.com/Icinga/icinga-powershell-framework .NOTES #> diff --git a/lib/plugins/Invoke-IcingaCheckFirewall.psm1 b/lib/plugins/Invoke-IcingaCheckFirewall.psm1 index 8857e4e..57d2bf8 100644 --- a/lib/plugins/Invoke-IcingaCheckFirewall.psm1 +++ b/lib/plugins/Invoke-IcingaCheckFirewall.psm1 @@ -4,7 +4,7 @@ .DESCRIPTION Invoke-IcingaCheckFirewall returns either 'OK' or 'CRITICAL', whether the check matches or not. - More Information on https://github.com/LordHepipud/icinga-module-windows + More Information on https://github.com/Icinga/icinga-powershell-framework .FUNCTIONALITY This module is intended to be used to check the status of a firewall profile. Based on the match result the status will change between 'OK' or 'CRITICAL'. The function will return one of these given codes. @@ -38,7 +38,7 @@ System.String .LINK - https://github.com/LordHepipud/icinga-module-windows + https://github.com/Icinga/icinga-powershell-framework .NOTES #> diff --git a/lib/plugins/Invoke-IcingaCheckMemory.psm1 b/lib/plugins/Invoke-IcingaCheckMemory.psm1 index 210f109..55b156c 100644 --- a/lib/plugins/Invoke-IcingaCheckMemory.psm1 +++ b/lib/plugins/Invoke-IcingaCheckMemory.psm1 @@ -8,7 +8,7 @@ Import-IcingaLib core\tools; Invoke-IcingaCheckMemory returns either 'OK', 'WARNING' or 'CRITICAL', based on the thresholds set. e.g memory is currently at 60% usage, WARNING is set to 50, CRITICAL is set to 90. In this case the check will return WARNING. - More Information on https://github.com/LordHepipud/icinga-module-windows + More Information on https://github.com/Icinga/icinga-powershell-framework .FUNCTIONALITY This module is intended to be used to check on memory usage. Based on the thresholds set the status will change between 'OK', 'WARNING' or 'CRITICAL'. The function will return one of these given codes. @@ -48,7 +48,7 @@ Import-IcingaLib core\tools; System.String .LINK - https://github.com/LordHepipud/icinga-module-windows + https://github.com/Icinga/icinga-powershell-framework .NOTES #> diff --git a/lib/plugins/Invoke-IcingaCheckPerfcounter.psm1 b/lib/plugins/Invoke-IcingaCheckPerfcounter.psm1 index 50726ec..2b9191c 100644 --- a/lib/plugins/Invoke-IcingaCheckPerfcounter.psm1 +++ b/lib/plugins/Invoke-IcingaCheckPerfcounter.psm1 @@ -9,7 +9,7 @@ Import-IcingaLib icinga\plugin; To gain insight on an specific performance counter use "Show-IcingaPerformanceCounters " e.g ' - More Information on https://github.com/LordHepipud/icinga-module-windows + More Information on https://github.com/Icinga/icinga-powershell-framework .FUNCTIONALITY This module is intended to be used to perform checks on different performance counter. Based on the thresholds set the status will change between 'OK', 'WARNING' or 'CRITICAL'. The function will return one of these given codes. @@ -29,7 +29,7 @@ Import-IcingaLib icinga\plugin; .OUTPUTS System.String .LINK - https://github.com/LordHepipud/icinga-module-windows + https://github.com/Icinga/icinga-powershell-framework .NOTES #> diff --git a/lib/plugins/Invoke-IcingaCheckProcessCount.psm1 b/lib/plugins/Invoke-IcingaCheckProcessCount.psm1 index 7487371..8bf792a 100644 --- a/lib/plugins/Invoke-IcingaCheckProcessCount.psm1 +++ b/lib/plugins/Invoke-IcingaCheckProcessCount.psm1 @@ -7,7 +7,7 @@ Import-IcingaLib icinga\plugin; .DESCRIPTION Invoke-IcingaCheckDirectory returns either 'OK', 'WARNING' or 'CRITICAL', based on the thresholds set. e.g there are three conhost processes running, WARNING is set to 3, CRITICAL is set to 4. In this case the check will return WARNING. - More Information on https://github.com/LordHepipud/icinga-module-windows + More Information on https://github.com/Icinga/icinga-powershell-framework .FUNCTIONALITY This module is intended to be used to check how many processes of a process exist. Based on the thresholds set the status will change between 'OK', 'WARNING' or 'CRITICAL'. The function will return one of these given codes. @@ -33,7 +33,7 @@ Import-IcingaLib icinga\plugin; .OUTPUTS System.String .LINK - https://github.com/LordHepipud/icinga-module-windows + https://github.com/Icinga/icinga-powershell-framework .NOTES #> diff --git a/lib/plugins/Invoke-IcingaCheckService.psm1 b/lib/plugins/Invoke-IcingaCheckService.psm1 index 3afa6c1..743d291 100644 --- a/lib/plugins/Invoke-IcingaCheckService.psm1 +++ b/lib/plugins/Invoke-IcingaCheckService.psm1 @@ -7,7 +7,7 @@ Import-IcingaLib icinga\plugin; Checks if a service has a specified status. .DESCRIPTION Invoke-icingaCheckService returns either 'OK' or 'CRITICAL', if a service status is matching status to be checked. - More Information on https://github.com/LordHepipud/icinga-module-windows + More Information on https://github.com/Icinga/icinga-powershell-framework .FUNCTIONALITY This module is intended to be used to check whether one or more services have a certain status. As soon as one of the specified services does not match the status, the function returns 'CRITICAL' instead of 'OK'. @@ -26,7 +26,7 @@ Import-IcingaLib icinga\plugin; .OUTPUTS System.String .LINK - https://github.com/LordHepipud/icinga-module-windows + https://github.com/Icinga/icinga-powershell-framework .NOTES #> diff --git a/lib/plugins/Invoke-IcingaCheckUpdates.psm1 b/lib/plugins/Invoke-IcingaCheckUpdates.psm1 index 531a0fe..fc954e0 100644 --- a/lib/plugins/Invoke-IcingaCheckUpdates.psm1 +++ b/lib/plugins/Invoke-IcingaCheckUpdates.psm1 @@ -7,7 +7,7 @@ Import-IcingaLib provider\updates; .DESCRIPTION Invoke-IcingaCheckUpdates returns either 'OK', 'WARNING' or 'CRITICAL', based on the thresholds set. e.g 'C:\Users\Icinga\Backup' 10 updates are pending, WARNING is set to 20, CRITICAL is set to 50. In this case the check will return OK. - More Information on https://github.com/LordHepipud/icinga-module-windows + More Information on https://github.com/Icinga/icinga-powershell-framework .FUNCTIONALITY This module is intended to be used to check how many updates are to be applied and thereby currently pending Based on the thresholds set the status will change between 'OK', 'WARNING' or 'CRITICAL'. The function will return one of these given codes. @@ -25,7 +25,7 @@ Import-IcingaLib provider\updates; .OUTPUTS System.String .LINK - https://github.com/LordHepipud/icinga-module-windows + https://github.com/Icinga/icinga-powershell-framework .NOTES #> diff --git a/lib/plugins/Invoke-IcingaCheckUptime.psm1 b/lib/plugins/Invoke-IcingaCheckUptime.psm1 index 1635539..591a0c9 100644 --- a/lib/plugins/Invoke-IcingaCheckUptime.psm1 +++ b/lib/plugins/Invoke-IcingaCheckUptime.psm1 @@ -8,7 +8,7 @@ Import-IcingaLib core\tools; .DESCRIPTION InvokeIcingaCheckUptime returns either 'OK', 'WARNING' or 'CRITICAL', based on the thresholds set. e.g 'C:\Users\Icinga\Backup' the system has been running for 10 days, WARNING is set to 15d, CRITICAL is set to 30d. In this case the check will return OK. - More Information on https://github.com/LordHepipud/icinga-module-windows + More Information on https://github.com/Icinga/icinga-powershell-framework .FUNCTIONALITY This module is intended to check how long a Windows system has been up for. Based on the thresholds set the status will change between 'OK', 'WARNING' or 'CRITICAL'. The function will return one of these given codes. @@ -27,7 +27,7 @@ Import-IcingaLib core\tools; .OUTPUTS System.String .LINK - https://github.com/LordHepipud/icinga-module-windows + https://github.com/Icinga/icinga-powershell-framework .NOTES #> diff --git a/lib/plugins/Invoke-IcingaCheckUsedPartitionSpace.psm1 b/lib/plugins/Invoke-IcingaCheckUsedPartitionSpace.psm1 index 95aa13f..7ee2f0f 100644 --- a/lib/plugins/Invoke-IcingaCheckUsedPartitionSpace.psm1 +++ b/lib/plugins/Invoke-IcingaCheckUsedPartitionSpace.psm1 @@ -7,7 +7,7 @@ Import-IcingaLib icinga\plugin; .DESCRIPTION Invoke-IcingaCheckUsedPartition returns either 'OK', 'WARNING' or 'CRITICAL', based on the thresholds set. e.g 'C:' is at 8% usage, WARNING is set to 60, CRITICAL is set to 80. In this case the check will return OK. - More Information on https://github.com/LordHepipud/icinga-module-windows + More Information on https://github.com/Icinga/icinga-powershell-framework .FUNCTIONALITY This module is intended to be used to check how much usage there is on an partition. Based on the thresholds set the status will change between 'OK', 'WARNING' or 'CRITICAL'. The function will return one of these given codes. @@ -38,7 +38,7 @@ Import-IcingaLib icinga\plugin; .OUTPUTS System.String .LINK - https://github.com/LordHepipud/icinga-module-windows + https://github.com/Icinga/icinga-powershell-framework .NOTES #> diff --git a/lib/plugins/Invoke-IcingaCheckUsers.psm1 b/lib/plugins/Invoke-IcingaCheckUsers.psm1 index 2fc1871..feb588e 100644 --- a/lib/plugins/Invoke-IcingaCheckUsers.psm1 +++ b/lib/plugins/Invoke-IcingaCheckUsers.psm1 @@ -7,7 +7,7 @@ Import-IcingaLib provider\users; .DESCRIPTION Invoke-IcingaCheckDirectory returns either 'OK', 'WARNING' or 'CRITICAL', based on the thresholds set. e.g 'C:\Users\Icinga\Backup' contains 200 files, WARNING is set to 150, CRITICAL is set to 300. In this case the check will return CRITICAL - More Information on https://github.com/LordHepipud/icinga-module-windows + More Information on https://github.com/Icinga/icinga-powershell-framework .FUNCTIONALITY This module is intended to be used to check how many files and directories are within are specified path. Based on the thresholds set the status will change between 'OK', 'WARNING' or 'CRITICAL'. The function will return one of these given codes. @@ -29,7 +29,7 @@ Import-IcingaLib provider\users; .OUTPUTS System.String .LINK - https://github.com/LordHepipud/icinga-module-windows + https://github.com/Icinga/icinga-powershell-framework .NOTES #>