mirror of
https://github.com/nikdoof/huawei-hg612-munin.git
synced 2025-12-25 08:39:31 +00:00
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.
This commit is contained in:
@@ -1,2 +1,5 @@
|
||||
#!/bin/sh
|
||||
expect /etc/munin/huawei/huawei.expect | tee | tr -d "\015" > /etc/munin/huawei/output.txt
|
||||
|
||||
statsfile=${statsfile:-/var/lib/munin/plugin-state/huawei-hg612-munin-output.txt}
|
||||
|
||||
expect `dirname $0`/huawei.expect | tee | tr -d "\015" > $statsfile
|
||||
|
||||
Reference in New Issue
Block a user