mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
commit
d32dbf230a
@ -74,11 +74,11 @@ echo -n
|
|||||||
DISCONNECTS=$(egrep -c '[dovecot]?.*Disconnected' $LOGFILE)
|
DISCONNECTS=$(egrep -c '[dovecot]?.*Disconnected' $LOGFILE)
|
||||||
CONNECTS=$(egrep -c '[dovecot]?.*Login' $LOGFILE)
|
CONNECTS=$(egrep -c '[dovecot]?.*Login' $LOGFILE)
|
||||||
VALUE=$($EXPR_BIN $CONNECTS - $DISCONNECTS)
|
VALUE=$($EXPR_BIN $CONNECTS - $DISCONNECTS)
|
||||||
if [ -z "$DISCON" ] || [ "$DISCON" -lt 0 ]; then
|
if [ -z "$VALUE" ] || [ "$VALUE" -lt 0 ]; then
|
||||||
DISCON=0
|
VALUE=0
|
||||||
fi
|
fi
|
||||||
echo -en "connected.value "
|
echo -en "connected.value "
|
||||||
echo $DISCON
|
echo $VALUE
|
||||||
echo -n
|
echo -n
|
||||||
######################
|
######################
|
||||||
# TLS Logins
|
# TLS Logins
|
||||||
|
Loading…
Reference in New Issue
Block a user