mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
[disk/file_age] Add support for host_name
This commit is contained in:
parent
49b2fda89b
commit
593d66423c
1 changed files with 5 additions and 0 deletions
|
@ -51,6 +51,9 @@ case $1 in
|
||||||
echo 'graph_vlabel seconds'
|
echo 'graph_vlabel seconds'
|
||||||
echo 'graph_category disk'
|
echo 'graph_category disk'
|
||||||
|
|
||||||
|
if [ -n "$host_name" ]; then
|
||||||
|
echo "host_name $host_name"
|
||||||
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -91,6 +94,8 @@ Since there is no way for the plugin to guess which files you want monitored, yo
|
||||||
[file_age]
|
[file_age]
|
||||||
user root # May not be necessary, depending on which files you want monitored.
|
user root # May not be necessary, depending on which files you want monitored.
|
||||||
|
|
||||||
|
env.host_name backup # Optional to group chart under a different host
|
||||||
|
|
||||||
env.file1_path /var/log/syslog # Mandatory, complete path to file.
|
env.file1_path /var/log/syslog # Mandatory, complete path to file.
|
||||||
env.file1_label System syslog # Optional label if you don't want the file name to be displayed.
|
env.file1_label System syslog # Optional label if you don't want the file name to be displayed.
|
||||||
env.file1_warning 86400 # Optional warning level. Measured in seconds. 86400 is one day of seconds.
|
env.file1_warning 86400 # Optional warning level. Measured in seconds. 86400 is one day of seconds.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue