1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00: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: # Created:
# 20th December 2012 # 20th December 2012
# #
# License:
# GPL-2
#
# Usage: # Usage:
# Place in /etc/munin/plugins/ (or link it there using ln -s) # Place in /etc/munin/plugins/ (or link it there using ln -s)
# #
# Parameters:
# config (required)
#
dbserver='' # '-h localhost' dbserver='' # '-h localhost'
dbuser='postgres' dbuser='postgres'
@ -46,7 +46,11 @@ if [ "$1" = "config" ]; then
echo ${pool}.type GAUGE echo ${pool}.type GAUGE
done 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 fi
# Output looks like this: # Output looks like this:

View file

@ -5,15 +5,15 @@
# Author: # Author:
# Dave Fennell <dave@microtux.co.uk> # Dave Fennell <dave@microtux.co.uk>
# #
# License:
# GPL-2
#
# Created: # Created:
# 20th December 2012 # 20th December 2012
# #
# Usage: # Usage:
# Place in /etc/munin/plugins/ (or link it there using ln -s) # Place in /etc/munin/plugins/ (or link it there using ln -s)
# #
# Parameters:
# config (required)
#
dbserver='' # '-h localhost' dbserver='' # '-h localhost'
dbuser='postgres' dbuser='postgres'
@ -46,7 +46,11 @@ if [ "$1" = "config" ]; then
echo ${pool}.type GAUGE echo ${pool}.type GAUGE
done 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 fi
# Output looks like this: # Output looks like this:

View file

@ -8,12 +8,12 @@
# Created: # Created:
# 20th December 2012 # 20th December 2012
# #
# License:
# GPL-2
#
# Usage: # Usage:
# Place in /etc/munin/plugins/ (or link it there using ln -s) # Place in /etc/munin/plugins/ (or link it there using ln -s)
# #
# Parameters:
# config (required)
#
dbserver='' # '-h localhost' dbserver='' # '-h localhost'
dbuser='postgres' dbuser='postgres'
@ -46,7 +46,11 @@ if [ "$1" = "config" ]; then
echo ${pool}.type GAUGE echo ${pool}.type GAUGE
done 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 fi
# Output looks like this: # Output looks like this:
@ -63,4 +67,3 @@ do
echo ${pool}.value ${total} echo ${pool}.value ${total}
done done