Fixes repo links and namings

This commit is contained in:
Lord Hepipud 2019-10-31 17:24:30 +01:00
parent c69ca9489a
commit 8057fcd907
26 changed files with 70 additions and 63 deletions

View file

@ -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!

View file

@ -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.

View file

@ -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;";

View file

@ -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.

View file

@ -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'

View file

@ -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');
}

View file

@ -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);

View file

@ -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
#>

View file

@ -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
#>

View file

@ -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
#>

View file

@ -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
#>

View file

@ -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) {

View file

@ -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
#>

View file

@ -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
#>

View file

@ -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
#>

View file

@ -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
#>

View file

@ -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
#>

View file

@ -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
#>

View file

@ -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
#>

View file

@ -9,7 +9,7 @@ Import-IcingaLib icinga\plugin;
To gain insight on an specific performance counter use "Show-IcingaPerformanceCounters <performance counter category>"
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
#>

View file

@ -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
#>

View file

@ -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
#>

View file

@ -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
#>

View file

@ -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
#>

View file

@ -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
#>

View file

@ -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
#>