Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/mysql/mysql_connections | ||
|---|---|---|
| 16 | 16 |
# along with this program; if not, see http://www.gnu.org/licenses/gpl.txt |
| 17 | 17 |
# |
| 18 | 18 |
# |
| 19 |
# This plugin is based off of the Connection Usage
|
|
| 19 |
# This plugin is based off of the Connection Usage |
|
| 20 | 20 |
# section of the MySQL Connection Health Page |
| 21 |
#
|
|
| 21 |
# |
|
| 22 | 22 |
# http://dev.mysql.com/doc/administrator/en/mysql-administrator-health-connection-health.html |
| 23 | 23 |
# |
| 24 | 24 |
# To enable, link mysql_connections to this file. E.g. |
| ... | ... | |
| 38 | 38 |
# mysqlopts - Options to pass to mysql |
| 39 | 39 |
# mysqladmin - Override location of mysqladmin |
| 40 | 40 |
# warning - Override default warning limit |
| 41 |
# critical - Override default critical limit
|
|
| 41 |
# critical - Override default critical limit |
|
| 42 | 42 |
# |
| 43 | 43 |
#%# family=auto |
| 44 | 44 |
#%# capabilities=autoconf |
| ... | ... | |
| 55 | 55 |
# Pull in any arguments |
| 56 | 56 |
my $arg = shift(); |
| 57 | 57 |
|
| 58 |
# Check to see how the script was called
|
|
| 58 |
# Check to see how the script was called |
|
| 59 | 59 |
if ($arg eq 'config') {
|
| 60 | 60 |
print_graph_information(); |
| 61 | 61 |
exit(); |
| ... | ... | |
| 66 | 66 |
} else {
|
| 67 | 67 |
# Define the values that are returned to munin |
| 68 | 68 |
my ($available, $current, $upper_limit) = (0,0,0); |
| 69 |
|
|
| 69 |
|
|
| 70 | 70 |
# Gather the values from mysqladmin |
| 71 | 71 |
$current = poll_variables($MYSQL_VARIABLES,"Threads_connected"); |
| 72 | 72 |
$upper_limit = poll_variables($MYSQL_VARIABLES,"max_connections"); |
Formats disponibles : Unified diff