Random Project

Problem with result.Count

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