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

@ -14,7 +14,7 @@ A Plugin to monitor Nagios Servers and their Performance (Multigraph)
=head2 MUNIN ENVIRONMENT CONFIGURATION EXPLANATION
binary = location of your nagiostats binary including binary
passive = tell the plugin to graph passive results
passive = tell the plugin to graph passive results
=head1 NODE CONFIGURATION
@ -60,7 +60,7 @@ Matt West < https://github.com/mhwest13/Nagios-Munin-Plugin >
GPLv2
=head1 MAGIC MARKERS
#%# family=auto
#%# capabilities=autoconf suggest
@ -122,7 +122,7 @@ my $passive = $ENV{passive} || 'off';
my %graphs;
# main graph for service checks
# main graph for service checks
$graphs{services} = {
config => {
args => '--lower-limit 0',
@ -207,7 +207,7 @@ $graphs{svcchkext} = {
{ name => 'AVGACTSVCEXT', label => 'Average Execution', min => '0', type => 'GAUGE', info => 'avg active service check execution time (ms).', draw => 'LINE2' },
],
};
# main graph for host problems
# main graph for host problems
$graphs{hosts} = {
config => {
args => '--lower-limit 0',
@ -290,7 +290,7 @@ $graphs{hostchkext} = {
{ name => 'AVGACTHSTEXT', label => 'Average Execution', min => '0', type => 'GAUGE', info => 'avg active host check execution time (ms).', draw => 'LINE2' },
],
};
# main graph for host / service check counts
# main graph for host / service check counts
$graphs{checks} = {
config => {
args => '--lower-limit 0',
@ -404,8 +404,8 @@ $graphs{extcmdcount} = {
=head2 Config Check
This block of code looks at the argument that is possibly supplied,
should it be config, it then checks to make sure the plugin
specified exists, assuming it does, it will run the do_config
should it be config, it then checks to make sure the plugin
specified exists, assuming it does, it will run the do_config
subroutine for the plugin specified, otherwise it dies complaining
about an unknown plugin.
@ -618,7 +618,7 @@ sub do_config {
=cut
sub print_sub_config {
# Lets get our plugin and subgraph, after that print for Munin to process it.
# Lets get our plugin and subgraph, after that print for Munin to process it.
my ($plugin,$subgraph) = (@_);
my $graph = $graphs{$subgraph};
print "multigraph nagios_$plugin.$subgraph\n";

View file

@ -14,7 +14,7 @@
# Config variables:
#
# statuslog - Which logfile to use
# Might be /var/log/nagios2/nagios.log if
# Might be /var/log/nagios2/nagios.log if
# /var/log/nagios/status.log is missing
#
# This program is free software; you can redistribute it and/or
@ -109,7 +109,7 @@ while(<STATUS>) {
if(/^\s+\}\s*$/) {
$type = "";
}
if($type) {
push(@{$values{$type}}, $_);
}