mirror of
https://github.com/nikdoof/huawei-hg612-munin.git
synced 2025-12-13 02:32:16 +00:00
Add the script to fetch stats from ADSL modem.
This commit is contained in:
@@ -2,4 +2,10 @@
|
||||
|
||||
statsfile=${statsfile:-/var/lib/munin/plugin-state/huawei-hg612-munin-output.txt}
|
||||
|
||||
expect `dirname $0`/huawei.expect | tee | tr -d "\015" > $statsfile
|
||||
expect `dirname $0`/huawei.expect | tee | tr -d "\015" > $statsfile.new
|
||||
|
||||
if [ -s "$statsfile.new" ]; then
|
||||
mv $statsfile.new $statsfile
|
||||
else
|
||||
echo "Empty output from expect script"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user