diff --git a/check_lysrdiff b/check_lysrdiff index 0405ef7a5b29adf9823c5eb3c158416d105d8cbf..8d6dae8b5c4cb2445caa2b05a6c254a18d74978a 100755 --- a/check_lysrdiff +++ b/check_lysrdiff @@ -157,6 +157,19 @@ then set_state 1 WARNING "No activity." fi +if [ -f $BASE/lysrdiff/tasks ] +then + TASKS=`wc -l < $BASE/lysrdiff/tasks` + PERF="$PERF tasks=$TASKS" + if [ $TASKS -gt $ACTIVITY ] + then + set_state 1 WARNING "$TASKS jobs defined, but only $ACTIVITY are active." + fi +else + set_state 2 CRITICAL "$BASE/lysrdiff/tasks is missing." + PERF="$PERF tasks=0" +fi + if [ -z "$message" ] then set_state 0 OK "all ok."