mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 10:39:53 +00:00
Whitespace cleanup
* remove trailing whitespace * remove empty lines at the end of files
This commit is contained in:
parent
ef851f0c34
commit
17f784270a
604 changed files with 2927 additions and 2945 deletions
|
@ -4,7 +4,7 @@
|
|||
# Author : Thomas VIAL
|
||||
# Author URL : http://tvi.al
|
||||
# Usage : ln -s /path/to/fping_ /etc/munin/plugins/fping_www.google.com
|
||||
# Explanation : Will graph connection to www.google.com
|
||||
# Explanation : Will graph connection to www.google.com
|
||||
# Requirements :
|
||||
# * fping
|
||||
#
|
||||
|
@ -47,5 +47,5 @@ if [ $status -eq 0 ]; then
|
|||
else
|
||||
# Failure
|
||||
echo "success.value 0"
|
||||
echo "failure.value 100"
|
||||
echo "failure.value 100"
|
||||
fi
|
||||
|
|
|
@ -91,7 +91,7 @@ $cmd_arg = $ARGV[0] || '';
|
|||
config() if($cmd_arg eq "config");
|
||||
autoconf() if ($cmd_arg eq 'autoconf');
|
||||
|
||||
for my $host (@hosts) {
|
||||
for my $host (@hosts) {
|
||||
threads->new(\&ping_host, $host)
|
||||
}
|
||||
|
||||
|
|
|
@ -82,7 +82,7 @@ if ((exists $ARGV[0]) && ($ARGV[0] eq "config")) {
|
|||
print "graph_category network\n";
|
||||
print "graph_info This graph shows ping RTT statistics.\n";
|
||||
for (my $site=1; $site<=$#hosts+1; $site++) {
|
||||
my $item = lc($hosts[$site-1]);
|
||||
my $item = lc($hosts[$site-1]);
|
||||
$item =~ s/\.//g;
|
||||
print "$item.label $names[$site-1]\n";
|
||||
print "$item.info Ping RTT statistics for $hosts[$site-1].\n";
|
||||
|
@ -94,7 +94,7 @@ if ((exists $ARGV[0]) && ($ARGV[0] eq "config")) {
|
|||
}
|
||||
|
||||
for (my $site=1; $site<=$#hosts+1; $site++) {
|
||||
my $item = lc($hosts[$site-1]);
|
||||
my $item = lc($hosts[$site-1]);
|
||||
$item =~ s/\.//g;
|
||||
my $host = $hosts[$site-1];
|
||||
my @ping = `$ping_cmd $ping_args $host $ping_args2`;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# Python (2.5+) version of the plugin to monitor ping times.
|
||||
# Python (2.5+) version of the plugin to monitor ping times.
|
||||
# Evolution from the standard shipped with munin by adding a ceil.
|
||||
#
|
||||
# Thanks to "Jimmy Olsen" for the base.
|
||||
|
@ -82,5 +82,5 @@ for line in out.split("\n"):
|
|||
print "ping.value", "%.6f" % (v / 1000)
|
||||
|
||||
EOF
|
||||
) | python
|
||||
) | python
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue