Révision e93a46bc
postgresql_transactions: use perldoc documentation header
| plugins/postgresql/postgresql_transactions | ||
|---|---|---|
| 1 | 1 |
#!/bin/sh |
| 2 |
# |
|
| 3 |
# Plugin to monitor PostgreSQL Commits and Rollbacks in Transactions |
|
| 4 |
# |
|
| 5 |
# Author: |
|
| 6 |
# Guilherme Augusto da Rocha Silva <gars.dba@gmail.com> |
|
| 7 |
# |
|
| 8 |
# Created: |
|
| 9 |
# 9th of november 2007 |
|
| 10 |
# |
|
| 11 |
# Usage: |
|
| 12 |
# Place in /etc/munin/plugins/ (or link it there using ln -s) |
|
| 13 |
# |
|
| 14 |
# Parameters: |
|
| 15 |
# config (required) |
|
| 16 |
# |
|
| 17 |
# General info: |
|
| 18 |
# Require permission for database access and read (no writes are processed). |
|
| 19 |
# Recommended user is PostgreSQL database owner (default: postgres). |
|
| 20 |
# |
|
| 21 |
# Log info: |
|
| 22 |
# |
|
| 2 |
|
|
| 3 |
: <<=cut |
|
| 4 |
|
|
| 5 |
=head1 NAME |
|
| 6 |
|
|
| 7 |
postgresql_transactions - Plugin to monitor PostgreSQL Commits and Rollbacks in Transactions |
|
| 8 |
|
|
| 9 |
|
|
| 10 |
=head1 USAGE |
|
| 11 |
|
|
| 12 |
Usage: |
|
| 13 |
Place in /etc/munin/plugins/ (or link it there using ln -s) |
|
| 14 |
|
|
| 15 |
General info: |
|
| 16 |
Requires permission for database read access (no writes are processed). |
|
| 17 |
Recommended user is PostgreSQL database owner (default: postgres). |
|
| 18 |
|
|
| 19 |
|
|
| 20 |
=head1 CONFIGURATION |
|
| 21 |
|
|
| 22 |
The following configuration directives may be placed below /etc/munin/plugin-conf.d/ (optional): |
|
| 23 |
|
|
| 24 |
[postgresql_transactions] |
|
| 25 |
user postgres |
|
| 26 |
env.dbuser postgres |
|
| 27 |
env.dbhost localhost |
|
| 28 |
|
|
| 29 |
|
|
| 30 |
=head1 AUTHOR |
|
| 31 |
|
|
| 32 |
Guilherme Augusto da Rocha Silva <gars.dba@gmail.com> |
|
| 33 |
|
|
| 34 |
Copyright (C) 2007 Guilherme Augusto da Rocha Silva <gars.dba@gmail.com> |
|
| 35 |
|
|
| 36 |
=cut |
|
| 23 | 37 |
|
| 24 | 38 |
dbhost=${dbhost:-localhost}
|
| 25 | 39 |
dbuser=${dbuser:-postgres}
|
Formats disponibles : Unified diff