mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 02:18:08 +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
|
@ -6,12 +6,12 @@
|
|||
# BuienRadar: http://www.buienradar.nl
|
||||
#
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify it under the terms of the
|
||||
# GNU General Public License as published by the Free Software Foundation, either version 3 of
|
||||
# This program is free software: you can redistribute it and/or modify it under the terms of the
|
||||
# GNU General Public License as published by the Free Software Foundation, either version 3 of
|
||||
# the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along with this program.
|
||||
|
@ -41,9 +41,9 @@
|
|||
# env.rain = 'yes'
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
### Installation Example
|
||||
# Below is a example to monitor station Venlo (6391). Codes for the station can be seen at the end of
|
||||
# Below is a example to monitor station Venlo (6391). Codes for the station can be seen at the end of
|
||||
# this source or can be show with the command './buienradar_ stations'
|
||||
#
|
||||
# wget -O /usr/lib/munin/plugins/buienradar_ http://exchange.munin-monitoring.org/plugins/buienradar_/version/1/download
|
||||
|
@ -101,7 +101,7 @@ if($stationName eq "") {
|
|||
# Darn, no station name found. This means we don't provided a correct id.
|
||||
die "Error:\n"
|
||||
."You have provided an invalid station code. (".$station.") Please use a correct one.\n\n"
|
||||
.print_stations();
|
||||
.print_stations();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
# @email icedown@gmail.com
|
||||
#
|
||||
# Usage:
|
||||
# Copy this to your plugin folder (default: /usr/share/munin/plugins)
|
||||
# Copy this to your plugin folder (default: /usr/share/munin/plugins)
|
||||
# Edit is file, replacing CMCS, IP, and PW with your values
|
||||
# Make a symlink to your active plugins folder (default: /etc/munin/plugins)
|
||||
# Finally run munin-node-config and restart munin-node
|
||||
|
@ -59,15 +59,15 @@ if (defined($ARGV[0]) and ($ARGV[0] eq 'autoconf')) {
|
|||
if($status =~ m/Login unsuccessful/) {
|
||||
print "No (Invalid receiver details)\n";
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
print "yes\n";
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
||||
print "no (Cannot locate CMCS)\n";
|
||||
exit(0);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
require XML::Simple;
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ if (defined $ARGV[0] and $ARGV[0] eq "config") {
|
|||
} else {
|
||||
print "graph_vlabel temp in C\n";
|
||||
}
|
||||
|
||||
|
||||
for my $station (@wcode) {
|
||||
my $url = "$datasource$station.TXT";
|
||||
my $response = $ua->request(HTTP::Request->new('GET',$url));
|
||||
|
|
|
@ -19,8 +19,8 @@ use Data::Dumper;
|
|||
# 1. Install wfrog, get it up running with your weather station
|
||||
# 2. Locate your wfrog.csv file (wfrog creates after 10 mins)
|
||||
# 3. cd /etc/munin/plugins/
|
||||
# 4. ln -s /usr/share/munin/plugins/wfrog wfrog_temp
|
||||
# 4. ln -s /usr/share/munin/plugins/wfrog wfrog_pressure
|
||||
# 4. ln -s /usr/share/munin/plugins/wfrog wfrog_temp
|
||||
# 4. ln -s /usr/share/munin/plugins/wfrog wfrog_pressure
|
||||
# 5. etc..
|
||||
# 6. reload munin-node ;-)
|
||||
|
||||
|
@ -35,7 +35,7 @@ my %CONFIG = (
|
|||
my $interesting;
|
||||
|
||||
if ($0 =~ m#wfrog_(\w+)#) {
|
||||
$interesting = $1;
|
||||
$interesting = $1;
|
||||
}
|
||||
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue