mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
Set default for Warning, Critical; Change Verbose to Verbosity with default and ValidateSet, Add ValidateSet for ServiceStatus, Fixed CPU-Check
This commit is contained in:
parent
35d5891a6a
commit
b6e2a0c9c4
10 changed files with 61 additions and 50 deletions
|
|
@ -38,15 +38,16 @@ Import-IcingaLib icinga\plugin;
|
||||||
function Invoke-IcingaCheckCPU()
|
function Invoke-IcingaCheckCPU()
|
||||||
{
|
{
|
||||||
param(
|
param(
|
||||||
[int]$Warning,
|
[int]$Warning = $null,
|
||||||
[int]$Critical,
|
[int]$Critical = $null,
|
||||||
$Core = '*',
|
[string]$Core = '*',
|
||||||
[switch]$NoPerfData,
|
[switch]$NoPerfData,
|
||||||
$Verbose
|
[ValidateSet(0, 1, 2, 3)]
|
||||||
|
[int]$Verbosity = 0
|
||||||
);
|
);
|
||||||
|
|
||||||
$CpuCounter = New-IcingaPerformanceCounter -Counter ([string]::Format('\Processor({0})\% processor time', $Core));
|
$CpuCounter = New-IcingaPerformanceCounter -Counter ([string]::Format('\Processor({0})\% processor time', $Core));
|
||||||
$CpuPackage = New-IcingaCheckPackage -Name 'CPU Load' -OperatorAnd -Verbos $Verbose;
|
$CpuPackage = New-IcingaCheckPackage -Name 'CPU Load' -OperatorAnd -Verbose $Verbosity;
|
||||||
$CpuCount = ([string](Get-IcingaCpuCount)).Length;
|
$CpuCount = ([string](Get-IcingaCpuCount)).Length;
|
||||||
|
|
||||||
if ($CpuCounter.Counters.Count -ne 0) {
|
if ($CpuCounter.Counters.Count -ne 0) {
|
||||||
|
|
|
||||||
|
|
@ -11,19 +11,19 @@ Import-IcingaLib provider\directory;
|
||||||
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.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS>Invoke-IcingaCheckDirectory -Path "C:\Users\Icinga\Downloads" -Warning 20 -Critical 30 -Verbose 3
|
PS>Invoke-IcingaCheckDirectory -Path "C:\Users\Icinga\Downloads" -Warning 20 -Critical 30 -Verbosity 3
|
||||||
[OK]: Check package "C:\Users\Icinga\Downloads" is [OK] (Match All)
|
[OK]: Check package "C:\Users\Icinga\Downloads" is [OK] (Match All)
|
||||||
\_ [OK]: C:\Users\Icinga\Downloads is 19
|
\_ [OK]: C:\Users\Icinga\Downloads is 19
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS>Invoke-IcingaCheckDirectory -Path "C:\Users\Icinga\Downloads" -Warning 20 -Critical 30 -Verbose 3
|
PS>Invoke-IcingaCheckDirectory -Path "C:\Users\Icinga\Downloads" -Warning 20 -Critical 30 -Verbosity 3
|
||||||
[WARNING]: Check package "C:\Users\Icinga\Downloads" is [WARNING] (Match All)
|
[WARNING]: Check package "C:\Users\Icinga\Downloads" is [WARNING] (Match All)
|
||||||
\_ [WARNING]: C:\Users\Icinga\Downloads is 24
|
\_ [WARNING]: C:\Users\Icinga\Downloads is 24
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS>Invoke-IcingaCheckDirectory -Path "C:\Users\Icinga\Downloads" -Warning 20 -Critical 30 -Verbose 3 -YoungerThen 20d -OlderThen 10d
|
PS>Invoke-IcingaCheckDirectory -Path "C:\Users\Icinga\Downloads" -Warning 20 -Critical 30 -Verbosity 3 -YoungerThen 20d -OlderThen 10d
|
||||||
[OK]: Check package "C:\Users\Icinga\Downloads" is [OK] (Match All)
|
[OK]: Check package "C:\Users\Icinga\Downloads" is [OK] (Match All)
|
||||||
\_ [OK]: C:\Users\Icinga\Downloads is 1
|
\_ [OK]: C:\Users\Icinga\Downloads is 1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS>Invoke-IcingaCheckDirectory -Path "C:\Users\Icinga\Downloads" -FileNames "*.txt","*.sql" -Warning 20 -Critical 30 -Verbose 3
|
PS>Invoke-IcingaCheckDirectory -Path "C:\Users\Icinga\Downloads" -FileNames "*.txt","*.sql" -Warning 20 -Critical 30 -Verbosity 3
|
||||||
[OK]: Check package "C:\Users\Icinga\Downloads" is [OK] (Match All)
|
[OK]: Check package "C:\Users\Icinga\Downloads" is [OK] (Match All)
|
||||||
\_ [OK]: C:\Users\Icinga\Downloads is 4
|
\_ [OK]: C:\Users\Icinga\Downloads is 4
|
||||||
.PARAMETER Warning
|
.PARAMETER Warning
|
||||||
|
|
@ -62,12 +62,13 @@ function Invoke-IcingaCheckDirectory()
|
||||||
[string]$Path,
|
[string]$Path,
|
||||||
[array]$FileNames,
|
[array]$FileNames,
|
||||||
[switch]$Recurse,
|
[switch]$Recurse,
|
||||||
[int]$Critical,
|
[int]$Critical = $null,
|
||||||
[int]$Warning,
|
[int]$Warning = $null,
|
||||||
[string]$YoungerThen,
|
[string]$YoungerThen,
|
||||||
[string]$OlderThen,
|
[string]$OlderThen,
|
||||||
[int]$Verbose
|
[ValidateSet(0, 1, 2, 3)]
|
||||||
);
|
[int]$Verbosity = 0
|
||||||
|
);
|
||||||
|
|
||||||
$DirectoryData = Get-IcingaDirectoryAll -Path $Path -FileNames $FileNames `
|
$DirectoryData = Get-IcingaDirectoryAll -Path $Path -FileNames $FileNames `
|
||||||
-Recurse $Recurse -YoungerThen $YoungerThen -OlderThen $OlderThen;
|
-Recurse $Recurse -YoungerThen $YoungerThen -OlderThen $OlderThen;
|
||||||
|
|
@ -79,7 +80,7 @@ function Invoke-IcingaCheckDirectory()
|
||||||
($Critical)
|
($Critical)
|
||||||
) | Out-Null;
|
) | Out-Null;
|
||||||
|
|
||||||
$DirectoryPackage = New-IcingaCheckPackage -Name $Path -OperatorAnd -Checks $DirectoryCheck -Verbose $Verbose;
|
$DirectoryPackage = New-IcingaCheckPackage -Name $Path -OperatorAnd -Checks $DirectoryCheck -Verbose $Verbosity;
|
||||||
|
|
||||||
return (New-IcingaCheckresult -Check $DirectoryPackage -NoPerfData $TRUE -Compile);
|
return (New-IcingaCheckresult -Check $DirectoryPackage -NoPerfData $TRUE -Compile);
|
||||||
}
|
}
|
||||||
|
|
@ -3,8 +3,8 @@ Import-IcingaLib icinga\plugin;
|
||||||
function Invoke-IcingaCheckEventlog()
|
function Invoke-IcingaCheckEventlog()
|
||||||
{
|
{
|
||||||
param(
|
param(
|
||||||
$Warning,
|
$Warning = $null,
|
||||||
$Critical,
|
$Critical = $null,
|
||||||
[string]$LogName,
|
[string]$LogName,
|
||||||
[array]$IncludeEventId,
|
[array]$IncludeEventId,
|
||||||
[array]$ExcludeEventId,
|
[array]$ExcludeEventId,
|
||||||
|
|
@ -18,10 +18,11 @@ function Invoke-IcingaCheckEventlog()
|
||||||
$Before = $null,
|
$Before = $null,
|
||||||
[switch]$DisableTimeCache = $FALSE,
|
[switch]$DisableTimeCache = $FALSE,
|
||||||
[switch]$NoPerfData,
|
[switch]$NoPerfData,
|
||||||
$Verbose
|
[ValidateSet(0, 1, 2, 3)]
|
||||||
|
[int]$Verbosity = 0
|
||||||
);
|
);
|
||||||
|
|
||||||
$EventLogPackage = New-IcingaCheckPackage -Name 'EventLog' -OperatorAnd -Verbose $Verbose;
|
$EventLogPackage = New-IcingaCheckPackage -Name 'EventLog' -OperatorAnd -Verbose $Verbosity;
|
||||||
$EventLogData = Get-IcingaEventLog -LogName $LogName -IncludeEventId $IncludeEventId -ExcludeEventId $ExcludeEventId -IncludeUsername $IncludeUsername -ExcludeUsername $ExcludeUsername `
|
$EventLogData = Get-IcingaEventLog -LogName $LogName -IncludeEventId $IncludeEventId -ExcludeEventId $ExcludeEventId -IncludeUsername $IncludeUsername -ExcludeUsername $ExcludeUsername `
|
||||||
-IncludeEntryType $IncludeEntryType -ExcludeEntryType $ExcludeEntryType -IncludeMessage $IncludeMessage -ExcludeMessage $ExcludeMessage `
|
-IncludeEntryType $IncludeEntryType -ExcludeEntryType $ExcludeEntryType -IncludeMessage $IncludeMessage -ExcludeMessage $ExcludeMessage `
|
||||||
-After $After -Before $Before -DisableTimeCache $DisableTimeCache;
|
-After $After -Before $Before -DisableTimeCache $DisableTimeCache;
|
||||||
|
|
@ -29,7 +30,7 @@ function Invoke-IcingaCheckEventlog()
|
||||||
if ($EventLogData.eventlog.Count -ne 0) {
|
if ($EventLogData.eventlog.Count -ne 0) {
|
||||||
foreach ($event in $EventLogData.eventlog.Keys) {
|
foreach ($event in $EventLogData.eventlog.Keys) {
|
||||||
$eventEntry = $EventLogData.eventlog[$event];
|
$eventEntry = $EventLogData.eventlog[$event];
|
||||||
$EventLogEntryPackage = New-IcingaCheckPackage -Name ([string]::Format('Between: [{0}] - [{1}] there occured {2} event(s).', $eventEntry.OldestEntry, $eventEntry.NewestEntry, $eventEntry.Count)) -OperatorAnd -Verbose $Verbose;
|
$EventLogEntryPackage = New-IcingaCheckPackage -Name ([string]::Format('Between: [{0}] - [{1}] there occured {2} event(s).', $eventEntry.OldestEntry, $eventEntry.NewestEntry, $eventEntry.Count)) -OperatorAnd -Verbose $Verbosity;
|
||||||
$IcingaCheck = New-IcingaCheck -Name ([string]::Format('EventId {0}', $EventLogData.eventlog[$event].EventId)) -Value $eventEntry.Count -NoPerfData;
|
$IcingaCheck = New-IcingaCheck -Name ([string]::Format('EventId {0}', $EventLogData.eventlog[$event].EventId)) -Value $eventEntry.Count -NoPerfData;
|
||||||
$IcingaCheck.WarnOutOfRange($Warning).CritOutOfRange($Critical) | Out-Null;
|
$IcingaCheck.WarnOutOfRange($Warning).CritOutOfRange($Critical) | Out-Null;
|
||||||
$EventLogEntryPackage.AddCheck($IcingaCheck);
|
$EventLogEntryPackage.AddCheck($IcingaCheck);
|
||||||
|
|
@ -37,7 +38,7 @@ function Invoke-IcingaCheckEventlog()
|
||||||
$EventLogPackage.AddCheck($EventLogEntryPackage);
|
$EventLogPackage.AddCheck($EventLogEntryPackage);
|
||||||
}
|
}
|
||||||
|
|
||||||
$EventLogCountPackage = New-IcingaCheckPackage -Name 'EventLog Count' -OperatorAnd -Verbose $Verbose -Hidden;
|
$EventLogCountPackage = New-IcingaCheckPackage -Name 'EventLog Count' -OperatorAnd -Verbose $Verbosity -Hidden;
|
||||||
|
|
||||||
foreach ($event in $EventLogData.events.Keys) {
|
foreach ($event in $EventLogData.events.Keys) {
|
||||||
$IcingaCheck = New-IcingaCheck -Name ([string]::Format('EventId {0}', $event)) -Value $EventLogData.events[$event] -Unit 'c';
|
$IcingaCheck = New-IcingaCheck -Name ([string]::Format('EventId {0}', $event)) -Value $EventLogData.events[$event] -Unit 'c';
|
||||||
|
|
|
||||||
|
|
@ -4,18 +4,19 @@ function Invoke-IcingaCheckPerfcounter()
|
||||||
{
|
{
|
||||||
param(
|
param(
|
||||||
[array]$PerfCounter,
|
[array]$PerfCounter,
|
||||||
$Warning,
|
[double]$Warning = $null,
|
||||||
$Critical,
|
[double]$Critical = $null,
|
||||||
[switch]$NoPerfData,
|
[switch]$NoPerfData,
|
||||||
[int]$Verbose
|
[ValidateSet(0, 1, 2, 3)]
|
||||||
|
[int]$Verbosity = 0
|
||||||
);
|
);
|
||||||
|
|
||||||
$Counters = New-IcingaPerformanceCounterArray -CounterArray $PerfCounter;
|
$Counters = New-IcingaPerformanceCounterArray -CounterArray $PerfCounter;
|
||||||
$CheckPackage = New-IcingaCheckPackage -Name 'Performance Counter' -OperatorAnd -Verbose $Verbose;
|
$CheckPackage = New-IcingaCheckPackage -Name 'Performance Counter' -OperatorAnd -Verbose $Verbosity;
|
||||||
|
|
||||||
foreach ($counter in $Counters.Keys) {
|
foreach ($counter in $Counters.Keys) {
|
||||||
|
|
||||||
$CounterPackage = New-IcingaCheckPackage -Name $counter -OperatorAnd -Verbose $Verbose;
|
$CounterPackage = New-IcingaCheckPackage -Name $counter -OperatorAnd -Verbose $Verbosity;
|
||||||
|
|
||||||
foreach ($instanceName in $Counters[$counter].Keys) {
|
foreach ($instanceName in $Counters[$counter].Keys) {
|
||||||
$instance = $Counters[$counter][$instanceName];
|
$instance = $Counters[$counter][$instanceName];
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ Import-IcingaLib icinga\plugin;
|
||||||
[OK]: Check package "Process Check" is [OK]
|
[OK]: Check package "Process Check" is [OK]
|
||||||
| 'Process Count "conhost"'=3;;
|
| 'Process Count "conhost"'=3;;
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS>Invoke-IcingaCheckProcessCount -Process conhost,wininit -Warning 5 -Critical 10 -Verbose 4
|
PS>Invoke-IcingaCheckProcessCount -Process conhost,wininit -Warning 5 -Critical 10 -Verbosity 4
|
||||||
[OK]: Check package "Process Check" is [OK] (Match All)
|
[OK]: Check package "Process Check" is [OK] (Match All)
|
||||||
\_ [OK]: Process Count "conhost" is 3
|
\_ [OK]: Process Count "conhost" is 3
|
||||||
\_ [OK]: Process Count "wininit" is 1
|
\_ [OK]: Process Count "wininit" is 1
|
||||||
|
|
@ -40,16 +40,17 @@ Import-IcingaLib icinga\plugin;
|
||||||
function Invoke-IcingaCheckProcessCount()
|
function Invoke-IcingaCheckProcessCount()
|
||||||
{
|
{
|
||||||
param(
|
param(
|
||||||
[int]$Warning,
|
[int]$Warning = $null,
|
||||||
[int]$Critical,
|
[int]$Critical = $null,
|
||||||
[array]$Process,
|
[array]$Process,
|
||||||
[switch]$NoPerfData,
|
[switch]$NoPerfData,
|
||||||
$Verbose
|
[ValidateSet(0, 1, 2, 3)]
|
||||||
|
[int]$Verbosity = 0
|
||||||
);
|
);
|
||||||
|
|
||||||
$ProcessInformation = (Get-IcingaProcessData -Name $Process)
|
$ProcessInformation = (Get-IcingaProcessData -Name $Process)
|
||||||
|
|
||||||
$ProcessPackage = New-icingaCheckPackage -Name "Process Check" -OperatorAnd -Verbose $Verbose -NoPerfData $NoPerfData;
|
$ProcessPackage = New-icingaCheckPackage -Name "Process Check" -OperatorAnd -Verbose $Verbosity -NoPerfData $NoPerfData;
|
||||||
|
|
||||||
if ($Process.Count -eq 0) {
|
if ($Process.Count -eq 0) {
|
||||||
$ProcessCount = $ProcessInformation['Process Count'];
|
$ProcessCount = $ProcessInformation['Process Count'];
|
||||||
|
|
|
||||||
|
|
@ -34,11 +34,13 @@ function Invoke-IcingaCheckService()
|
||||||
{
|
{
|
||||||
param(
|
param(
|
||||||
[array]$Service,
|
[array]$Service,
|
||||||
|
[ValidateSet('Stopped', 'StartPending', 'StopPending', 'Running', 'ContinuePending', 'PausePending', 'Paused')]
|
||||||
[string]$Status,
|
[string]$Status,
|
||||||
[int]$Verbose
|
[ValidateSet(0, 1, 2, 3)]
|
||||||
|
[int]$Verbosity = 0
|
||||||
);
|
);
|
||||||
|
|
||||||
$ServicesPackage = New-IcingaCheckPackage -Name 'Services' -OperatorAnd -Verbose $Verbose;
|
$ServicesPackage = New-IcingaCheckPackage -Name 'Services' -OperatorAnd -Verbose $Verbosity;
|
||||||
|
|
||||||
if ($Service.Count -ne 1) {
|
if ($Service.Count -ne 1) {
|
||||||
foreach ($services in $Service) {
|
foreach ($services in $Service) {
|
||||||
|
|
|
||||||
|
|
@ -33,10 +33,11 @@ function Invoke-IcingaCheckUpdates()
|
||||||
{
|
{
|
||||||
param (
|
param (
|
||||||
[array]$UpdateFilter,
|
[array]$UpdateFilter,
|
||||||
[int]$Warning,
|
[int]$Warning = $null,
|
||||||
[int]$Critical,
|
[int]$Critical = $null,
|
||||||
[switch]$NoPerfData,
|
[switch]$NoPerfData,
|
||||||
[int]$Verbose
|
[ValidateSet(0, 1, 2, 3)]
|
||||||
|
[int]$Verbosity = 0
|
||||||
);
|
);
|
||||||
|
|
||||||
$PendingUpdates = Get-IcingaUpdatesPending;
|
$PendingUpdates = Get-IcingaUpdatesPending;
|
||||||
|
|
@ -74,7 +75,7 @@ function Invoke-IcingaCheckUpdates()
|
||||||
$IcingaCheck.WarnOutOfRange($Warning).CritOutOfRange($Critical) | Out-Null;
|
$IcingaCheck.WarnOutOfRange($Warning).CritOutOfRange($Critical) | Out-Null;
|
||||||
$UpdateCount.AddCheck($IcingaCheck);
|
$UpdateCount.AddCheck($IcingaCheck);
|
||||||
|
|
||||||
$UpdatePackage = New-IcingaCheckPackage -Name 'Updates' -OperatorAnd -Verbose $Verbose -Checks @(
|
$UpdatePackage = New-IcingaCheckPackage -Name 'Updates' -OperatorAnd -Verbose $Verbosity -Checks @(
|
||||||
$UpdateCount
|
$UpdateCount
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -35,11 +35,12 @@ Import-IcingaLib core\tools;
|
||||||
function Invoke-IcingaCheckUptime()
|
function Invoke-IcingaCheckUptime()
|
||||||
{
|
{
|
||||||
param(
|
param(
|
||||||
[string]$Warning,
|
[string]$Warning = $null,
|
||||||
[string]$Critical,
|
[string]$Critical = $null,
|
||||||
[switch]$NoPerfData,
|
[switch]$NoPerfData,
|
||||||
[int]$Verbose
|
[ValidateSet(0, 1, 2, 3)]
|
||||||
);
|
[int]$Verbosity = 0
|
||||||
|
);
|
||||||
|
|
||||||
$WindowsData = Get-IcingaWindows;
|
$WindowsData = Get-IcingaWindows;
|
||||||
$Name = ([string]::Format('Windows Uptime: {0}', (ConvertFrom-TimeSpan -Seconds $WindowsData.windows.metadata.uptime.value)));
|
$Name = ([string]::Format('Windows Uptime: {0}', (ConvertFrom-TimeSpan -Seconds $WindowsData.windows.metadata.uptime.value)));
|
||||||
|
|
@ -51,7 +52,7 @@ function Invoke-IcingaCheckUptime()
|
||||||
(ConvertTo-SecondsFromIcingaThresholds -Threshold $Critical)
|
(ConvertTo-SecondsFromIcingaThresholds -Threshold $Critical)
|
||||||
) | Out-Null;
|
) | Out-Null;
|
||||||
|
|
||||||
$CheckPackage = New-IcingaCheckPackage -Name $Name -OperatorAnd -Checks $IcingaCheck -Verbose $Verbose;
|
$CheckPackage = New-IcingaCheckPackage -Name $Name -OperatorAnd -Checks $IcingaCheck -Verbose $Verbosity;
|
||||||
|
|
||||||
return (New-IcingaCheckresult -Check $CheckPackage -NoPerfData $NoPerfData -Compile);
|
return (New-IcingaCheckresult -Check $CheckPackage -NoPerfData $NoPerfData -Compile);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -45,16 +45,17 @@ Import-IcingaLib icinga\plugin;
|
||||||
function Invoke-IcingaCheckUsedPartitionSpace()
|
function Invoke-IcingaCheckUsedPartitionSpace()
|
||||||
{
|
{
|
||||||
param(
|
param(
|
||||||
[int]$Warning,
|
[int]$Warning = $null,
|
||||||
[int]$Critical,
|
[int]$Critical = $null,
|
||||||
[array]$Include = @(),
|
[array]$Include = @(),
|
||||||
[array]$Exclude = @(),
|
[array]$Exclude = @(),
|
||||||
[switch]$NoPerfData,
|
[switch]$NoPerfData,
|
||||||
$Verbose
|
[ValidateSet(0, 1, 2, 3)]
|
||||||
|
[int]$Verbosity = 0
|
||||||
);
|
);
|
||||||
|
|
||||||
$DiskFree = Get-IcingaDiskPartitions;
|
$DiskFree = Get-IcingaDiskPartitions;
|
||||||
$DiskPackage = New-IcingaCheckPackage -Name 'Used Partition Space' -OperatorAnd -Verbos $Verbose;
|
$DiskPackage = New-IcingaCheckPackage -Name 'Used Partition Space' -OperatorAnd -Verbos $Verbosity;
|
||||||
|
|
||||||
foreach ($Letter in $DiskFree.Keys) {
|
foreach ($Letter in $DiskFree.Keys) {
|
||||||
if ($Include.Count -ne 0) {
|
if ($Include.Count -ne 0) {
|
||||||
|
|
|
||||||
|
|
@ -37,13 +37,14 @@ function Invoke-IcingaCheckUsers()
|
||||||
{
|
{
|
||||||
param (
|
param (
|
||||||
[array]$Username,
|
[array]$Username,
|
||||||
[int]$Warning,
|
[int]$Warning = $null,
|
||||||
[int]$Critical,
|
[int]$Critical = $null,
|
||||||
[switch]$NoPerfData,
|
[switch]$NoPerfData,
|
||||||
[int]$Verbose
|
[ValidateSet(0, 1, 2, 3)]
|
||||||
);
|
[int]$Verbosity = 0
|
||||||
|
);
|
||||||
|
|
||||||
$UsersPackage = New-IcingaCheckPackage -Name 'Users' -OperatorAnd -Verbose $Verbose;
|
$UsersPackage = New-IcingaCheckPackage -Name 'Users' -OperatorAnd -Verbose $Verbosity;
|
||||||
$LoggedOnUsers = Get-IcingaLoggedOnUsers -UserFilter $Username;
|
$LoggedOnUsers = Get-IcingaLoggedOnUsers -UserFilter $Username;
|
||||||
|
|
||||||
if ($Username.Count -ne 0) {
|
if ($Username.Count -ne 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue