mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
Fixes data types of plugins
This commit is contained in:
parent
9d6968595f
commit
d9516db82f
8 changed files with 17 additions and 17 deletions
|
|
@ -38,8 +38,8 @@ Import-IcingaLib icinga\plugin;
|
||||||
function Invoke-IcingaCheckCPU()
|
function Invoke-IcingaCheckCPU()
|
||||||
{
|
{
|
||||||
param(
|
param(
|
||||||
[int]$Warning = $null,
|
$Warning = $null,
|
||||||
[int]$Critical = $null,
|
$Critical = $null,
|
||||||
[string]$Core = '*',
|
[string]$Core = '*',
|
||||||
[switch]$NoPerfData,
|
[switch]$NoPerfData,
|
||||||
[ValidateSet(0, 1, 2, 3)]
|
[ValidateSet(0, 1, 2, 3)]
|
||||||
|
|
|
||||||
|
|
@ -62,8 +62,8 @@ function Invoke-IcingaCheckDirectory()
|
||||||
[string]$Path,
|
[string]$Path,
|
||||||
[array]$FileNames,
|
[array]$FileNames,
|
||||||
[switch]$Recurse,
|
[switch]$Recurse,
|
||||||
[int]$Critical = $null,
|
$Critical = $null,
|
||||||
[int]$Warning = $null,
|
$Warning = $null,
|
||||||
[string]$YoungerThen,
|
[string]$YoungerThen,
|
||||||
[string]$OlderThen,
|
[string]$OlderThen,
|
||||||
[ValidateSet(0, 1, 2, 3)]
|
[ValidateSet(0, 1, 2, 3)]
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ function Invoke-IcingaCheckPerfcounter()
|
||||||
{
|
{
|
||||||
param(
|
param(
|
||||||
[array]$PerfCounter,
|
[array]$PerfCounter,
|
||||||
[double]$Warning = $null,
|
$Warning = $null,
|
||||||
[double]$Critical = $null,
|
$Critical = $null,
|
||||||
[switch]$NoPerfData,
|
[switch]$NoPerfData,
|
||||||
[ValidateSet(0, 1, 2, 3)]
|
[ValidateSet(0, 1, 2, 3)]
|
||||||
[int]$Verbosity = 0
|
[int]$Verbosity = 0
|
||||||
|
|
|
||||||
|
|
@ -40,8 +40,8 @@ Import-IcingaLib icinga\plugin;
|
||||||
function Invoke-IcingaCheckProcessCount()
|
function Invoke-IcingaCheckProcessCount()
|
||||||
{
|
{
|
||||||
param(
|
param(
|
||||||
[int]$Warning = $null,
|
$Warning = $null,
|
||||||
[int]$Critical = $null,
|
$Critical = $null,
|
||||||
[array]$Process,
|
[array]$Process,
|
||||||
[switch]$NoPerfData,
|
[switch]$NoPerfData,
|
||||||
[ValidateSet(0, 1, 2, 3)]
|
[ValidateSet(0, 1, 2, 3)]
|
||||||
|
|
|
||||||
|
|
@ -33,8 +33,8 @@ function Invoke-IcingaCheckUpdates()
|
||||||
{
|
{
|
||||||
param (
|
param (
|
||||||
[array]$UpdateFilter,
|
[array]$UpdateFilter,
|
||||||
[int]$Warning = $null,
|
$Warning = $null,
|
||||||
[int]$Critical = $null,
|
$Critical = $null,
|
||||||
[switch]$NoPerfData,
|
[switch]$NoPerfData,
|
||||||
[ValidateSet(0, 1, 2, 3)]
|
[ValidateSet(0, 1, 2, 3)]
|
||||||
[int]$Verbosity = 0
|
[int]$Verbosity = 0
|
||||||
|
|
|
||||||
|
|
@ -45,8 +45,8 @@ Import-IcingaLib icinga\plugin;
|
||||||
function Invoke-IcingaCheckUsedPartitionSpace()
|
function Invoke-IcingaCheckUsedPartitionSpace()
|
||||||
{
|
{
|
||||||
param(
|
param(
|
||||||
[int]$Warning = $null,
|
$Warning = $null,
|
||||||
[int]$Critical = $null,
|
$Critical = $null,
|
||||||
[array]$Include = @(),
|
[array]$Include = @(),
|
||||||
[array]$Exclude = @(),
|
[array]$Exclude = @(),
|
||||||
[switch]$NoPerfData,
|
[switch]$NoPerfData,
|
||||||
|
|
|
||||||
|
|
@ -37,8 +37,8 @@ function Invoke-IcingaCheckUsers()
|
||||||
{
|
{
|
||||||
param (
|
param (
|
||||||
[array]$Username,
|
[array]$Username,
|
||||||
[int]$Warning = $null,
|
$Warning = $null,
|
||||||
[int]$Critical = $null,
|
$Critical = $null,
|
||||||
[switch]$NoPerfData,
|
[switch]$NoPerfData,
|
||||||
[ValidateSet(0, 1, 2, 3)]
|
[ValidateSet(0, 1, 2, 3)]
|
||||||
[int]$Verbosity = 0
|
[int]$Verbosity = 0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue