1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

[ssl_] Can't use colon in plugin names

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
This commit is contained in:
Olivier Mehani 2016-08-05 14:04:42 +10:00
parent 21dfe488c0
commit 43e67ac747

View file

@ -29,8 +29,8 @@ Copyright (C) 2013 Patrick Domack <patrickdk@patrickdk.com>
. $MUNIN_LIBDIR/plugins/plugin.sh
ARGS=${0##*ssl_}
SITE=${ARGS/:*/}
PORT=${ARGS##*:}
SITE=${ARGS/_*/}
PORT=${ARGS##*_}
if [ "$PORT" = "$SITE" ]; then
PORT=443
fi