summaryrefslogtreecommitdiffstats
path: root/stacks/lwip_stack/release/send_alarm.sh
blob: 46ea413a085aa5fd3c6f6008f3241c2d709d0744 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

cur_dir=$(cd "$(dirname "$0")"; pwd)
alarm_history=${cur_dir}/.nstack_fault_alarm

. ./script/nstack_var.sh
. ./script/nstack_fun.sh

if [ ! -f ${alarm_history} ]; then
    ./nStackCtrl --module alm -n nsMain -t abnormal
    log $LINENO "nstack is not running ok, send fault alarm"
    touch ${alarm_history}
else
    log $LINENO "nstack is not running ok, send fault alarm already"
fi

exit 0