summaryrefslogtreecommitdiff
path: root/scripts/vyatta-monitor-check-rule-log
blob: 5466edc207060d1e0b22bd664b48e213d4c253a7 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

RULE_PATH=$1
RULE_NUM=$2

if ! cli-shell-api existsActive $RULE_PATH rule $RULE_NUM log; then
    echo "Warning: logging is not enabled for rule $RULE_NUM"
    echo "For proper monitor operation enable logging before issuing this command:"
    echo "set $RULE_PATH rule $RULE_NUM log enable"
fi