LC_ALL=C lag=$(printf "%.*f" 0 $lag)
if [[ $offset -lt 5 ]]; then
- echo "OK - $output"
+ echo "OK - $output | time=${offset}s;5;10;;"
exit $STATE_OK
elif [[ $offset -lt 10 ]]; then
- echo "WARNING - $output"
+ echo "WARNING - $output | time=${offset}s;5;10;;"
exit $STATE_WARNING
else
- echo "CRITICAL - $output"
+ echo "CRITICAL - $output | time=${offset}s;5;10;;"
exit $STATE_CRITICAL
fi
fi