mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
improved graph labels
added changelog
This commit is contained in:
parent
0aa2b8d1f5
commit
ea382ede4e
1 changed files with 10 additions and 2 deletions
|
@ -1,4 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# Revision 1.1 2012/02/26 03:43:27
|
||||||
|
# Improved labels
|
||||||
|
#
|
||||||
|
# Revision 1.0 2012/02/25 21:31:16
|
||||||
|
# Initial release
|
||||||
|
#
|
||||||
|
|
||||||
: <<=cut
|
: <<=cut
|
||||||
=head1 NAME
|
=head1 NAME
|
||||||
|
@ -107,13 +114,14 @@ if [ "$1" = "autoconf" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$1" = "config" ]; then
|
if [ "$1" = "config" ]; then
|
||||||
echo 'graph_title IMAP speed'
|
echo 'graph_title IMAP bandwidth'
|
||||||
echo 'graph_vlabel upload/download speed [bit/s]'
|
echo 'graph_vlabel to (+) / from (-) server [bit/s]'
|
||||||
echo 'graph_category network'
|
echo 'graph_category network'
|
||||||
for item in $SERVERS; do
|
for item in $SERVERS; do
|
||||||
key="$(echo "$item" | cut -f 1 -d =)"
|
key="$(echo "$item" | cut -f 1 -d =)"
|
||||||
clean_name="$(clean_fieldname "$key")"
|
clean_name="$(clean_fieldname "$key")"
|
||||||
echo "download_${clean_name}.graph no"
|
echo "download_${clean_name}.graph no"
|
||||||
|
echo "download_${clean_name}.label download"
|
||||||
echo "upload_${clean_name}.label $key"
|
echo "upload_${clean_name}.label $key"
|
||||||
echo "upload_${clean_name}.negative download_${clean_name}"
|
echo "upload_${clean_name}.negative download_${clean_name}"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue