1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Whitespace cleanup

* remove trailing whitespace
* remove empty lines at the end of files
This commit is contained in:
Lars Kruse 2018-08-02 02:03:42 +02:00
parent ef851f0c34
commit 17f784270a
604 changed files with 2927 additions and 2945 deletions

View file

@ -63,7 +63,7 @@ EOT;
public function getSchemaSize() {
$sql = <<<EOT
select sum( data_length ) sum_data_length,table_schema
select sum( data_length ) sum_data_length,table_schema
from information_schema.tables
group by table_schema
EOT;

View file

@ -45,7 +45,7 @@ foreach ($table_list as $_str_schema_table) {
$_ary_schema_table = explode('.',$_str_schema_table);
$schema = $_ary_schema_table[0];
$table = $_ary_schema_table[1];
$row = $mysql->getTableSize($schema,$table);
$data_length = $row['data_length'];
echo "$table.value $data_length\n";
@ -74,7 +74,7 @@ EOT;
public function getSchemaSize($schema) {
$bind = array($schema);
$sql = <<<EOT
select sum( data_length ) sum_data_length
select sum( data_length ) sum_data_length
from information_schema.tables
where table_schema = ?
EOT;

View file

@ -16,9 +16,9 @@
# along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
#
#
# This plugin is based off of the Connection Usage
# This plugin is based off of the Connection Usage
# section of the MySQL Connection Health Page
#
#
# http://dev.mysql.com/doc/administrator/en/mysql-administrator-health-connection-health.html
#
# To enable, link mysql_connections to this file. E.g.
@ -38,7 +38,7 @@
# mysqlopts - Options to pass to mysql
# mysqladmin - Override location of mysqladmin
# warning - Override default warning limit
# critical - Override default critical limit
# critical - Override default critical limit
#
#%# family=auto
#%# capabilities=autoconf
@ -55,7 +55,7 @@ my $critical = $ENV{critical} || "90";
# Pull in any arguments
my $arg = shift();
# Check to see how the script was called
# Check to see how the script was called
if ($arg eq 'config') {
print_graph_information();
exit();
@ -66,7 +66,7 @@ if ($arg eq 'config') {
} else {
# Define the values that are returned to munin
my ($available, $current, $upper_limit) = (0,0,0);
# Gather the values from mysqladmin
$current = poll_variables($MYSQL_VARIABLES,"Threads_connected");
$upper_limit = poll_variables($MYSQL_VARIABLES,"max_connections");

View file

@ -16,9 +16,9 @@
# along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
#
#
# This plugin is based off of the Connection Usage
# This plugin is based off of the Connection Usage
# section of the MySQL Connection Health Page
#
#
# http://dev.mysql.com/doc/administrator/en/mysql-administrator-health-connection-health.html
#
# To enable, link mysql_connections to this file. E.g.
@ -46,7 +46,7 @@
# mysqlcli - Override location of mysql
# numusers - Override maximum number of users to display
# warning - Override default warning limit
# critical - Override default critical limit
# critical - Override default critical limit
#
#%# family=auto
#%# capabilities=autoconf
@ -65,7 +65,7 @@ my $numthreads = 0;
# Pull in any arguments
my $arg = shift();
# Check to see how the script was called
# Check to see how the script was called
if ($arg eq 'config') {
print_graph_information();
} elsif ($arg eq 'autoconf') {

View file

@ -93,7 +93,7 @@ graph_info Plugin available at <a href="http://rodolphe.quiedeville.org/hack/mun
);
$num++;
}
}

View file

@ -156,4 +156,4 @@ for name in ${names}; do
fi
done

View file

@ -47,7 +47,7 @@ my $db = $2;
my $MYSQLADMIN = $ENV{mysqladmin} || "mysql";
my %WANTED = ( "Index" => "index",
my %WANTED = ( "Index" => "index",
"Datas" => "datas",
);

View file

@ -48,7 +48,7 @@ use strict;
my $COMMAND;
my $MYSQLADMIN = $ENV{mysqladmin} || "mysql";
my %WANTED = ( "Index" => "index",
my %WANTED = ( "Index" => "index",
"Datas" => "datas",
);
@ -170,7 +170,7 @@ sub test_service {
sub getDBList {
my @dbs;
foreach my $f (glob("/var/lib/mysql/*")) {
if (-d $f) {
if (-d $f) {
$f =~ s/\@002d/-/g;
$f =~ s!.*/!!;
@dbs[$#dbs+1]=$f };

View file

@ -41,7 +41,7 @@ EOC
my $status = `$MYSQL $MYSQLOPTS -e 'SHOW SLAVE STATUS\\G'`;
$status =~ /Slave_IO_Running: (\w+)/;
$status =~ /Slave_IO_Running: (\w+)/;
print 'io.value '.($1 eq 'Yes' ? 1 : 0)."\n";
$status =~ /Slave_SQL_Running: (\w+)/;
print 'sql.value '.($1 eq 'Yes' ? 1 : 0)."\n";