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:
root
2013-03-21 14:04:49 +00:00
parent d9bd73b8ac
commit c92256cc47
13 changed files with 19 additions and 23 deletions

View File

@@ -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