Révision b4d9f328
Updated new pgbouncer plugins with license information and added MUNIN_CAP_DIRTYCONFIG support.
| plugins/postgresql/pgbouncer_maxwait | ||
|---|---|---|
| 5 | 5 |
# Author: |
| 6 | 6 |
# Dave Fennell <dave@microtux.co.uk> |
| 7 | 7 |
# |
| 8 |
# License: |
|
| 9 |
# GPL-2 |
|
| 10 |
# |
|
| 8 | 11 |
# Created: |
| 9 | 12 |
# 20th December 2012 |
| 10 | 13 |
# |
| 11 | 14 |
# Usage: |
| 12 | 15 |
# Place in /etc/munin/plugins/ (or link it there using ln -s) |
| 13 | 16 |
# |
| 14 |
# Parameters: |
|
| 15 |
# config (required) |
|
| 16 |
# |
|
| 17 | 17 |
|
| 18 | 18 |
dbserver='' # '-h localhost' |
| 19 | 19 |
dbuser='postgres' |
| ... | ... | |
| 46 | 46 |
echo ${pool}.type GAUGE
|
| 47 | 47 |
done |
| 48 | 48 |
|
| 49 |
exit 0 |
|
| 49 |
# If dirty config capability is enabled then fall through |
|
| 50 |
# to output the data with the config information. |
|
| 51 |
if [ "$MUNIN_CAP_DIRTYCONFIG" = "" ]; then |
|
| 52 |
exit 0 |
|
| 53 |
fi |
|
| 50 | 54 |
fi |
| 51 | 55 |
|
| 52 | 56 |
# Output looks like this: |
Formats disponibles : Unified diff