mirror of
https://github.com/nikdoof/huawei-hg612-munin.git
synced 2025-12-23 07:39:30 +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,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# -*- sh -*-
|
||||
|
||||
statsfile="/etc/munin/huawei/output.txt"
|
||||
statsfile=${statsfile:-/var/lib/munin/plugin-state/huawei-hg612-munin-output.txt}
|
||||
|
||||
: << =cut
|
||||
|
||||
|
||||
Reference in New Issue
Block a user