Skip to content
Snippets Groups Projects
Commit 255b072a authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Ensure all backup jobs sees activity

parent c3cee871
No related branches found
No related tags found
No related merge requests found
...@@ -157,6 +157,19 @@ then ...@@ -157,6 +157,19 @@ then
set_state 1 WARNING "No activity." set_state 1 WARNING "No activity."
fi 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" ] if [ -z "$message" ]
then then
set_state 0 OK "all ok." set_state 0 OK "all ok."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment