Files
huawei-hg612-munin/getstats.sh
root c92256cc47 Allow configuring statsfile using env.statsfile.
Set the default to /var/lib/munin/plugin-state/huawei-hg612-munin-output.txt
for safety.

Include a crontab file to be placed in /etc/cron.d.

Update readme to match, and simplify.
2013-03-21 14:04:49 +00:00

6 lines
164 B
Bash
Executable File

#!/bin/sh
statsfile=${statsfile:-/var/lib/munin/plugin-state/huawei-hg612-munin-output.txt}
expect `dirname $0`/huawei.expect | tee | tr -d "\015" > $statsfile