Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
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