Projet

Général

Profil

Révision e93a46bc

IDe93a46bc76df5a94e66f196212334d7bc4d0b84e
Parent 3c10c360
Enfant 3cb684a5

Ajouté par Lars Kruse il y a plus de 7 ans

postgresql_transactions: use perldoc documentation header

Voir les différences:

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