Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
Stefan.Rudat
byStefan.Rudat, August 15, 2024
An extremely useful option. I used the acknowledgment link, which generates a syslog entry, to clear the alarm..
defined the string okpatterns
defined the string okpatterns
byStefan.Rudat, August 24, 2023
thanks for the very usefull script
I have to make a little change, result.Count was allways empty
$result=invoke-expression $command
$SCount = ( $result | Measure-Object -Line).Lines
and in the following if and elseif
if($SCount -gt $maxCrit)
elseif($SCount -gt $maxWarn)
write-hoste
$output=$state+": "+$SCount+" "+$action+"|"+$action+"="+$SCount+";"+$maxWarn+";"+$maxCrit
I have to make a little change, result.Count was allways empty
$result=invoke-expression $command
$SCount = ( $result | Measure-Object -Line).Lines
and in the following if and elseif
if($SCount -gt $maxCrit)
elseif($SCount -gt $maxWarn)
write-hoste
$output=$state+": "+$SCount+" "+$action+"|"+$action+"="+$SCount+";"+$maxWarn+";"+$maxCrit