mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 15:19:58 -05:00
Fixed missing EventLog Check input for count on value
This commit is contained in:
parent
9c889d2210
commit
895e7f1631
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ function Invoke-IcingaCheckEventlog()
|
|||
foreach ($event in $EventLogData.eventlog.Keys) {
|
||||
$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;
|
||||
$IcingaCheck = New-IcingaCheck -Name ([string]::Format('EventId {0}', $EventLogData.eventlog[$event].EventId)) -NoPerfData;
|
||||
$IcingaCheck = New-IcingaCheck -Name ([string]::Format('EventId {0}', $EventLogData.eventlog[$event].EventId)) -Value $eventEntry.Count -NoPerfData;
|
||||
$IcingaCheck.WarnOutOfRange($Warning).CritOutOfRange($Critical) | Out-Null;
|
||||
$EventLogEntryPackage.AddCheck($IcingaCheck);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue