2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Updated new pgbouncer plugins with license information and added MUNIN_CAP_DIRTYCONFIG support.

This commit is contained in:
Dave Fennell 2012-12-21 10:37:29 +00:00
parent d79ab66b69
commit b4d9f32859
3 changed files with 24 additions and 13 deletions

View File

@ -8,12 +8,12 @@
# Created:
# 20th December 2012
#
# License:
# GPL-2
#
# Usage:
# Place in /etc/munin/plugins/ (or link it there using ln -s)
#
# Parameters:
# config (required)
#
dbserver='' # '-h localhost'
dbuser='postgres'
@ -46,7 +46,11 @@ if [ "$1" = "config" ]; then
echo ${pool}.type GAUGE
done
exit 0
# If dirty config capability is enabled then fall through
# to output the data with the config information.
if [ "$MUNIN_CAP_DIRTYCONFIG" = "" ]; then
exit 0
fi
fi
# Output looks like this:

View File

@ -5,15 +5,15 @@
# Author:
# Dave Fennell <dave@microtux.co.uk>
#
# License:
# GPL-2
#
# Created:
# 20th December 2012
#
# Usage:
# Place in /etc/munin/plugins/ (or link it there using ln -s)
#
# Parameters:
# config (required)
#
dbserver='' # '-h localhost'
dbuser='postgres'
@ -46,7 +46,11 @@ if [ "$1" = "config" ]; then
echo ${pool}.type GAUGE
done
exit 0
# If dirty config capability is enabled then fall through
# to output the data with the config information.
if [ "$MUNIN_CAP_DIRTYCONFIG" = "" ]; then
exit 0
fi
fi
# Output looks like this:

View File

@ -8,12 +8,12 @@
# Created:
# 20th December 2012
#
# License:
# GPL-2
#
# Usage:
# Place in /etc/munin/plugins/ (or link it there using ln -s)
#
# Parameters:
# config (required)
#
dbserver='' # '-h localhost'
dbuser='postgres'
@ -46,7 +46,11 @@ if [ "$1" = "config" ]; then
echo ${pool}.type GAUGE
done
exit 0
# If dirty config capability is enabled then fall through
# to output the data with the config information.
if [ "$MUNIN_CAP_DIRTYCONFIG" = "" ]; then
exit 0
fi
fi
# Output looks like this:
@ -63,4 +67,3 @@ do
echo ${pool}.value ${total}
done