mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
[plugins/dovecot/dovecot] make 'connected users' graph DERIVEable
This commit is contained in:
parent
06919f1801
commit
a1cff256cd
1 changed files with 9 additions and 6 deletions
|
@ -8,6 +8,7 @@
|
||||||
# Contributions by:
|
# Contributions by:
|
||||||
# - Stephane Enten <tuf@delyth.net>
|
# - Stephane Enten <tuf@delyth.net>
|
||||||
# - Steve Schnepp <steve.schnepp@pwkf.org>
|
# - Steve Schnepp <steve.schnepp@pwkf.org>
|
||||||
|
# - pcy <pcy@ulyssis.org> (make 'Connected Users' DERIVE, check existence of logfile in autoconf)
|
||||||
#
|
#
|
||||||
# Parameters understood:
|
# Parameters understood:
|
||||||
#
|
#
|
||||||
|
@ -34,7 +35,7 @@ LOGFILE=${logfile:-/var/log/mail.log}
|
||||||
######################
|
######################
|
||||||
|
|
||||||
if [ "$1" = "autoconf" ]; then
|
if [ "$1" = "autoconf" ]; then
|
||||||
echo yes
|
[ -f "$LOGFILE" ] && echo yes || echo "no (logfile $LOGFILE not found)"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -53,6 +54,7 @@ if [ "$1" = "config" ]; then
|
||||||
done
|
done
|
||||||
|
|
||||||
echo 'connected.label Connected Users'
|
echo 'connected.label Connected Users'
|
||||||
|
echo "connected.type DERIVE"
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
@ -124,3 +126,4 @@ else
|
||||||
echo "0"
|
echo "0"
|
||||||
fi
|
fi
|
||||||
echo -n
|
echo -n
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue