Projet

Général

Profil

Révision a5d18f45

IDa5d18f455449d7a75a1b9eb2f3880310ada6d76a
Parent 4be78599
Enfant 52939473

Ajouté par Stig Sandbeck Mathisen il y a environ 11 ans

Add documentation in POD format, for munindoc

Voir les différences:

plugins/joomla/joomla-sessions
1 1
#!/usr/bin/perl
2
#
3
# Munin plugin for different stats over a Joomla MySQL database
4
#
5
# Copyright (C) 2011 - Csaba Martha (http://www.zenebuzi.com)
6
# Based on Rowdy Schwachfer (http://rowdy.nl) 's Spotweb plugin
7
#
8
#
2

  
3
=head1 NAME
4

  
5
joomla-sessions - Munin plugin for different stats over a Joomla MySQL
6
database
7

  
8
=head1 CONFIGURATION
9

  
10
=over
11

  
12
=item env.mysql
13

  
14
Optional, path to the MySQL binary.  Defaults to C</usr/bin/mysql>.
15

  
16
=item env.mysqlopts
17

  
18
Optional, command line options for "mysql". May be used to set
19
username and password.  No default value.
20

  
21
=item env.database
22

  
23
Optional, name of the joomla database name.  Defaults to C<mydatabase>.
24

  
25
=back
26

  
27
=head2 Configuration example
28

  
29

  
30
  [joomla_sessions*]
31
    env.mysql /usr/bin/mysql                               # MySQL binary (optional)
32
    env.mysqlopts -u <MYSQL_USERNAME> -p<MYSQL_PASSWORD>   # How to connect to the database (optional if no password is set)
33
    env.database databasename                              # Joomla database (optional)
34

  
35
=head1 AUTHORS
36

  
37
Copyright (C) 2011 - Csaba Martha (http://www.zenebuzi.com)
38

  
39
Based on Rowdy Schwachfer (http://rowdy.nl) 's Spotweb plugin
40

  
41
=head1 LICENSE
42

  
43
GPLv3 or later
44

  
45

  
46
=cut
47

  
9 48
# This program is free software: you can redistribute it and/or modify
10 49
# it under the terms of the GNU General Public License as published by
11 50
# the Free Software Foundation, either version 3 of the License, or
......
18 57
#
19 58
# You should have received a copy of the GNU General Public License
20 59
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
#
22
#
23
# Configuration example
24
#
25
# [joomla_sessions*]
26
# env.mysql /usr/bin/mysql                               # MySQL binary (optional)
27
# env.mysqlopts -u <MYSQL_USERNAME> -p<MYSQL_PASSWORD>   # How to connect to the database (optional if no password is set)
28
# env.database databasename                              # Joomla database (optional)
29
#
30 60

  
31 61
use strict;
32 62

  

Formats disponibles : Unified diff