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:
parent
d79ab66b69
commit
b4d9f32859
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user