mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Fixes repo links and namings
This commit is contained in:
parent
c69ca9489a
commit
8057fcd907
26 changed files with 70 additions and 63 deletions
|
|
@ -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.
|
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)
|
* 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/LordHepipud/icinga-module-windows/pulls)
|
* Send a [Pull Request](https://github.com/Icinga/icinga-powershell-framework/pulls)
|
||||||
* The master branche shall never be corrupt!
|
* The master branche shall never be corrupt!
|
||||||
|
|
|
||||||
|
|
@ -6,12 +6,12 @@ Requirements
|
||||||
|
|
||||||
As PowerShell Scripts / Modules can not be installed directly as Windows Service, we will require a little assistance here.
|
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
|
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.
|
Any other custom location is fully supported, has to be however accessable from the Windows Service Environment.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
Install the framework with the Kickstart Script
|
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:
|
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";
|
[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11";
|
||||||
$ProgressPreference = "SilentlyContinue";
|
$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 = (Invoke-WebRequest -UseBasicParsing -Uri $global:IcingaFrameworkKickstartSource).Content;
|
||||||
$Script += "`r`n`r`n Start-IcingaFrameworkWizard;";
|
$Script += "`r`n`r`n Start-IcingaFrameworkWizard;";
|
||||||
|
|
|
||||||
|
|
@ -19,13 +19,13 @@ To be able to use the module, you will require to have named the folder **exactl
|
||||||
Example folder path:
|
Example folder path:
|
||||||
|
|
||||||
```powershell
|
```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
|
To validate if the module is installed properly, you can start a **new** PowerShell instance and type the following command
|
||||||
|
|
||||||
```powershell
|
```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.
|
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.
|
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
|
```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.
|
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.
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
@{
|
@{
|
||||||
|
|
||||||
# Script module or binary module file associated with this manifest.
|
# Script module or binary module file associated with this manifest.
|
||||||
ModuleToProcess = 'icinga-module-windows.psm1'
|
ModuleToProcess = 'icinga-powershell-framework.psm1'
|
||||||
|
|
||||||
# Module version number
|
# Module version number
|
||||||
ModuleVersion = '0.0.1'
|
ModuleVersion = '0.0.1'
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
.Synopsis
|
.Synopsis
|
||||||
Icinga PowerShell Module - Powerfull PowerShell Framework for monitoring Windows Systems
|
Icinga PowerShell Module - Powerfull PowerShell Framework for monitoring Windows Systems
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
More Information on https://github.com/LordHepipud/icinga-module-windows
|
More Information on https://github.com/Icinga/icinga-powershell-framework
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
Install-Icinga
|
Install-Icinga
|
||||||
.NOTES
|
.NOTES
|
||||||
|
|
@ -51,7 +51,8 @@ function Import-IcingaLib()
|
||||||
# possible development changes without having to create new PowerShell environments
|
# possible development changes without having to create new PowerShell environments
|
||||||
[Switch]$ForceReload,
|
[Switch]$ForceReload,
|
||||||
[switch]$Init,
|
[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
|
# 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 {
|
} else {
|
||||||
Import-Module ([string]::Format('{0}', $modulePath)) -Global;
|
Import-Module ([string]::Format('{0}', $modulePath)) -Global;
|
||||||
|
if ($WriteManifests) {
|
||||||
|
Publish-IcingaModuleManifests -Module $moduleName;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -98,6 +102,9 @@ function Import-IcingaLib()
|
||||||
}
|
}
|
||||||
|
|
||||||
Import-Module ([string]::Format('{0}.psm1', $module)) -Global;
|
Import-Module ([string]::Format('{0}.psm1', $module)) -Global;
|
||||||
|
if ($WriteManifests) {
|
||||||
|
Publish-IcingaModuleManifests -Module $moduleName;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -168,5 +175,5 @@ function Get-IcingaPowerShellConfigDir()
|
||||||
|
|
||||||
function Get-IcingaPowerShellModuleFile()
|
function Get-IcingaPowerShellModuleFile()
|
||||||
{
|
{
|
||||||
return (Join-Path -Path $PSScriptRoot -ChildPath 'icinga-module-windows.psm1');
|
return (Join-Path -Path $PSScriptRoot -ChildPath 'icinga-powershell-framework.psm1');
|
||||||
}
|
}
|
||||||
|
|
@ -9,7 +9,7 @@ function Get-IcingaFrameworkServiceBinary()
|
||||||
|
|
||||||
if ([string]::IsNullOrEmpty($FrameworkServiceUrl)) {
|
if ([string]::IsNullOrEmpty($FrameworkServiceUrl)) {
|
||||||
if ((Get-IcingaAgentInstallerAnswerInput -Prompt 'Do you provide a custom source of the service binary?' -Default 'n').result -eq 1) {
|
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/');
|
$FrameworkServiceUrl = $LatestRelease.Replace('/tag/', '/download/');
|
||||||
$Tag = $FrameworkServiceUrl.Split('/')[-1];
|
$Tag = $FrameworkServiceUrl.Split('/')[-1];
|
||||||
$FrameworkServiceUrl = [string]::Format('{0}/icinga-service-{1}.zip', $FrameworkServiceUrl, $Tag);
|
$FrameworkServiceUrl = [string]::Format('{0}/icinga-service-{1}.zip', $FrameworkServiceUrl, $Tag);
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,12 @@
|
||||||
This module converts a given unit size to byte.
|
This module converts a given unit size to byte.
|
||||||
e.g Kilobyte 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
|
.EXAMPLE
|
||||||
PS> ConvertTo-Byte -Unit TB 200
|
PS> ConvertTo-Byte -Unit TB 200
|
||||||
200000000000000
|
200000000000000
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/LordHepipud/icinga-module-windows
|
https://github.com/Icinga/icinga-powershell-framework
|
||||||
.NOTES
|
.NOTES
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
|
@ -45,12 +45,12 @@ function ConvertTo-ByteSI()
|
||||||
This module converts a given unit size to kilobyte.
|
This module converts a given unit size to kilobyte.
|
||||||
e.g byte 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
|
.EXAMPLE
|
||||||
PS> ConvertTo-KiloByte -Unit TB 200
|
PS> ConvertTo-KiloByte -Unit TB 200
|
||||||
200000000000
|
200000000000
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/LordHepipud/icinga-module-windows
|
https://github.com/Icinga/icinga-powershell-framework
|
||||||
.NOTES
|
.NOTES
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
|
@ -85,12 +85,12 @@ function ConvertTo-KiloByte()
|
||||||
This module converts a given unit size to megabyte.
|
This module converts a given unit size to megabyte.
|
||||||
e.g byte 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
|
.EXAMPLE
|
||||||
PS> ConvertTo-KiloByte -Unit TB 200
|
PS> ConvertTo-KiloByte -Unit TB 200
|
||||||
200000000
|
200000000
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/LordHepipud/icinga-module-windows
|
https://github.com/Icinga/icinga-powershell-framework
|
||||||
.NOTES
|
.NOTES
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
|
@ -125,12 +125,12 @@ function ConvertTo-MegaByte()
|
||||||
This module converts a given unit size to gigabyte.
|
This module converts a given unit size to gigabyte.
|
||||||
e.g byte 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
|
.EXAMPLE
|
||||||
PS> ConvertTo-GigaByte -Unit TB 200
|
PS> ConvertTo-GigaByte -Unit TB 200
|
||||||
200000
|
200000
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/LordHepipud/icinga-module-windows
|
https://github.com/Icinga/icinga-powershell-framework
|
||||||
.NOTES
|
.NOTES
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
|
@ -165,12 +165,12 @@ function ConvertTo-GigaByte()
|
||||||
This module converts a given unit size to terabyte.
|
This module converts a given unit size to terabyte.
|
||||||
e.g byte 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
|
.EXAMPLE
|
||||||
PS> ConvertTo-TeraByte -Unit GB 2000000
|
PS> ConvertTo-TeraByte -Unit GB 2000000
|
||||||
2000
|
2000
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/LordHepipud/icinga-module-windows
|
https://github.com/Icinga/icinga-powershell-framework
|
||||||
.NOTES
|
.NOTES
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
|
@ -205,12 +205,12 @@ function ConvertTo-TeraByte()
|
||||||
This module converts a given unit size to petabyte.
|
This module converts a given unit size to petabyte.
|
||||||
e.g byte 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
|
.EXAMPLE
|
||||||
PS> ConvertTo-PetaByte -Unit GB 2000000
|
PS> ConvertTo-PetaByte -Unit GB 2000000
|
||||||
2
|
2
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/LordHepipud/icinga-module-windows
|
https://github.com/Icinga/icinga-powershell-framework
|
||||||
.NOTES
|
.NOTES
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ Import-IcingaLib core\tools;
|
||||||
This module converts a given time unit to seconds.
|
This module converts a given time unit to seconds.
|
||||||
e.g hours 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
|
.PARAMETER Value
|
||||||
Specify unit to be converted to seconds. Allowed units: ms, s, m, h, d, w, M, y
|
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
|
PS> ConvertTo-Seconds 30d
|
||||||
2592000
|
2592000
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/LordHepipud/icinga-module-windows
|
https://github.com/Icinga/icinga-powershell-framework
|
||||||
.NOTES
|
.NOTES
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
Get-IcingaCheckCommandConfig returns a JSON-file of one or all 'Invoke-IcingaCheck'-Commands, which can be imported via Icinga-Director
|
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.
|
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
|
.FUNCTIONALITY
|
||||||
This module is intended to be used to export one or all PowerShell-Modules with the namespace 'Invoke-IcingaCheck'.
|
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
|
System.String
|
||||||
|
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/LordHepipud/icinga-module-windows
|
https://github.com/Icinga/icinga-powershell-framework
|
||||||
|
|
||||||
.NOTES
|
.NOTES
|
||||||
#>
|
#>
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,12 @@
|
||||||
This module sets a numeric value to be negative.
|
This module sets a numeric value to be negative.
|
||||||
e.g 12 to -12
|
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
|
.EXAMPLE
|
||||||
PS> Set-NumericNegative 32
|
PS> Set-NumericNegative 32
|
||||||
-32
|
-32
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/LordHepipud/icinga-module-windows
|
https://github.com/Icinga/icinga-powershell-framework
|
||||||
.NOTES
|
.NOTES
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,12 +4,12 @@
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
This module tests whether a value is numeric
|
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
|
.EXAMPLE
|
||||||
PS> Test-Numeric 32
|
PS> Test-Numeric 32
|
||||||
True
|
True
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/LordHepipud/icinga-module-windows
|
https://github.com/Icinga/icinga-powershell-framework
|
||||||
.NOTES
|
.NOTES
|
||||||
#>
|
#>
|
||||||
function Test-Numeric ($number) {
|
function Test-Numeric ($number) {
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ Import-IcingaLib provider\bios;
|
||||||
Finds out the Bios Serial
|
Finds out the Bios Serial
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Invoke-IcingaCheckBiosSerial returns either the Bios Serial or nothing.
|
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
|
.FUNCTIONALITY
|
||||||
This module is intended to be used to find out the Bios Serial of a given system
|
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.
|
Either the a Bios Serial is returned or not. Thereby the Check is always okay.
|
||||||
|
|
@ -15,7 +15,7 @@ Import-IcingaLib provider\bios;
|
||||||
.OUTPUTS
|
.OUTPUTS
|
||||||
System.String
|
System.String
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/LordHepipud/icinga-module-windows
|
https://github.com/Icinga/icinga-powershell-framework
|
||||||
.NOTES
|
.NOTES
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ Import-IcingaLib icinga\plugin;
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Invoke-IcingaCheckCPU returns either 'OK', 'WARNING' or 'CRITICAL', based on the thresholds set.
|
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.
|
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
|
.FUNCTIONALITY
|
||||||
This module is intended to be used to check on the current cpu usage of a specified core.
|
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.
|
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
|
.OUTPUTS
|
||||||
System.String
|
System.String
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/LordHepipud/icinga-module-windows
|
https://github.com/Icinga/icinga-powershell-framework
|
||||||
.NOTES
|
.NOTES
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Invoke-IcingaCheckCheckSum returns either 'OK' or 'CRITICAL', whether the check matches or not.
|
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
|
.FUNCTIONALITY
|
||||||
This module is intended to be used to check a hash against a filehash of a file, to determine whether changes have occured.
|
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.
|
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
|
System.String
|
||||||
|
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/LordHepipud/icinga-module-windows
|
https://github.com/Icinga/icinga-powershell-framework
|
||||||
.NOTES
|
.NOTES
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ Import-IcingaLib provider\directory;
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Invoke-IcingaCheckDirectory returns either 'OK', 'WARNING' or 'CRITICAL', based on the thresholds set.
|
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
|
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
|
.FUNCTIONALITY
|
||||||
This module is intended to be used to check how many files and directories are within are specified path.
|
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.
|
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
|
.OUTPUTS
|
||||||
System.String
|
System.String
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/LordHepipud/icinga-module-windows
|
https://github.com/Icinga/icinga-powershell-framework
|
||||||
.NOTES
|
.NOTES
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ Import-IcingaLib icinga\plugin;
|
||||||
Invoke-IcingaCheckEventlog returns either 'OK', 'WARNING' or 'CRITICAL', based on the thresholds set.
|
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.
|
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
|
.FUNCTIONALITY
|
||||||
This Module is intended to be used to check how many eventlog occurences of a given type there are.
|
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.
|
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
|
.OUTPUTS
|
||||||
System.String
|
System.String
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/LordHepipud/icinga-module-windows
|
https://github.com/Icinga/icinga-powershell-framework
|
||||||
.NOTES
|
.NOTES
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Invoke-IcingaCheckFirewall returns either 'OK' or 'CRITICAL', whether the check matches or not.
|
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
|
.FUNCTIONALITY
|
||||||
This module is intended to be used to check the status of a firewall profile.
|
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.
|
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
|
System.String
|
||||||
|
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/LordHepipud/icinga-module-windows
|
https://github.com/Icinga/icinga-powershell-framework
|
||||||
.NOTES
|
.NOTES
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ Import-IcingaLib core\tools;
|
||||||
Invoke-IcingaCheckMemory returns either 'OK', 'WARNING' or 'CRITICAL', based on the thresholds set.
|
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.
|
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
|
.FUNCTIONALITY
|
||||||
This module is intended to be used to check on memory usage.
|
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.
|
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
|
System.String
|
||||||
|
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/LordHepipud/icinga-module-windows
|
https://github.com/Icinga/icinga-powershell-framework
|
||||||
.NOTES
|
.NOTES
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ Import-IcingaLib icinga\plugin;
|
||||||
To gain insight on an specific performance counter use "Show-IcingaPerformanceCounters <performance counter category>"
|
To gain insight on an specific performance counter use "Show-IcingaPerformanceCounters <performance counter category>"
|
||||||
e.g '
|
e.g '
|
||||||
|
|
||||||
More Information on https://github.com/LordHepipud/icinga-module-windows
|
More Information on https://github.com/Icinga/icinga-powershell-framework
|
||||||
.FUNCTIONALITY
|
.FUNCTIONALITY
|
||||||
This module is intended to be used to perform checks on different performance counter.
|
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.
|
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
|
.OUTPUTS
|
||||||
System.String
|
System.String
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/LordHepipud/icinga-module-windows
|
https://github.com/Icinga/icinga-powershell-framework
|
||||||
.NOTES
|
.NOTES
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ Import-IcingaLib icinga\plugin;
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Invoke-IcingaCheckDirectory returns either 'OK', 'WARNING' or 'CRITICAL', based on the thresholds set.
|
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.
|
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
|
.FUNCTIONALITY
|
||||||
This module is intended to be used to check how many processes of a process exist.
|
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.
|
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
|
.OUTPUTS
|
||||||
System.String
|
System.String
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/LordHepipud/icinga-module-windows
|
https://github.com/Icinga/icinga-powershell-framework
|
||||||
.NOTES
|
.NOTES
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ Import-IcingaLib icinga\plugin;
|
||||||
Checks if a service has a specified status.
|
Checks if a service has a specified status.
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Invoke-icingaCheckService returns either 'OK' or 'CRITICAL', if a service status is matching status to be checked.
|
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
|
.FUNCTIONALITY
|
||||||
This module is intended to be used to check whether one or more services have a certain status.
|
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'.
|
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
|
.OUTPUTS
|
||||||
System.String
|
System.String
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/LordHepipud/icinga-module-windows
|
https://github.com/Icinga/icinga-powershell-framework
|
||||||
.NOTES
|
.NOTES
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ Import-IcingaLib provider\updates;
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Invoke-IcingaCheckUpdates returns either 'OK', 'WARNING' or 'CRITICAL', based on the thresholds set.
|
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.
|
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
|
.FUNCTIONALITY
|
||||||
This module is intended to be used to check how many updates are to be applied and thereby currently pending
|
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.
|
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
|
.OUTPUTS
|
||||||
System.String
|
System.String
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/LordHepipud/icinga-module-windows
|
https://github.com/Icinga/icinga-powershell-framework
|
||||||
.NOTES
|
.NOTES
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ Import-IcingaLib core\tools;
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
InvokeIcingaCheckUptime returns either 'OK', 'WARNING' or 'CRITICAL', based on the thresholds set.
|
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.
|
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
|
.FUNCTIONALITY
|
||||||
This module is intended to check how long a Windows system has been up for.
|
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.
|
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
|
.OUTPUTS
|
||||||
System.String
|
System.String
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/LordHepipud/icinga-module-windows
|
https://github.com/Icinga/icinga-powershell-framework
|
||||||
.NOTES
|
.NOTES
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ Import-IcingaLib icinga\plugin;
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Invoke-IcingaCheckUsedPartition returns either 'OK', 'WARNING' or 'CRITICAL', based on the thresholds set.
|
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.
|
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
|
.FUNCTIONALITY
|
||||||
This module is intended to be used to check how much usage there is on an partition.
|
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.
|
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
|
.OUTPUTS
|
||||||
System.String
|
System.String
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/LordHepipud/icinga-module-windows
|
https://github.com/Icinga/icinga-powershell-framework
|
||||||
.NOTES
|
.NOTES
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ Import-IcingaLib provider\users;
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Invoke-IcingaCheckDirectory returns either 'OK', 'WARNING' or 'CRITICAL', based on the thresholds set.
|
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
|
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
|
.FUNCTIONALITY
|
||||||
This module is intended to be used to check how many files and directories are within are specified path.
|
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.
|
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
|
.OUTPUTS
|
||||||
System.String
|
System.String
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/LordHepipud/icinga-module-windows
|
https://github.com/Icinga/icinga-powershell-framework
|
||||||
.NOTES
|
.NOTES
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue