1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-08-01 13:53:51 +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

@ -6,8 +6,8 @@ multi_snmp_querier - Munin plugin to query several SNMP hosts
=head1 SYNOPSIS
This plugin is meant to be called from Munin. You should at least set the
'hosts' environment variable from Munin's configuration (i.e.
This plugin is meant to be called from Munin. You should at least set the
'hosts' environment variable from Munin's configuration (i.e.
/etc/munin/munin.conf) to specify which hosts and how to query.
=head1 DESCRIPTION
@ -20,7 +20,7 @@ This plugin is meant to be called from Munin. You should at least set the
Which SNMP OID should we query on; it defaults to
1.3.6.1.2.1.43.10.2.1.4.1.1 (total printed pages - of course, it only
makes sense to query a printer on this ;-) ).
makes sense to query a printer on this ;-) ).
Other known and useful OIDs for printers are
1.3.6.1.2.1.43.11.1.1.9.1.1 (total number of pages printed with this
@ -111,7 +111,7 @@ $oid = $ENV{snmp_oid} || $defaults{oid};
total => 'Total',
units => 'pages'
},
'1.3.6.1.2.1.43.11.1.1.8.1.1' =>
'1.3.6.1.2.1.43.11.1.1.8.1.1' =>
{ title => 'Total projected capacity of this cartridge',
vlabel => 'Total capacity',
category => 'printing',
@ -120,7 +120,7 @@ $oid = $ENV{snmp_oid} || $defaults{oid};
total => 'Total',
units => 'pages'
},
'1.3.6.1.2.1.43.11.1.1.9.1.1' =>
'1.3.6.1.2.1.43.11.1.1.9.1.1' =>
{ title => 'Pages printed with this cartridge',
vlabel => 'Printed pages',
category => 'printing',
@ -129,7 +129,7 @@ $oid = $ENV{snmp_oid} || $defaults{oid};
total => 'Total',
units => 'pages'
},
'default' =>
'default' =>
{ title => "Results for SNMP OID $oid",
vlabel => 'units',
category => 'Other',
@ -144,7 +144,7 @@ die "Hosts not set - cannot continue" unless @hosts;
$cmd_arg = $ARGV[0] || '';
if($cmd_arg eq "config") {
my $labels = $known_oids{$oid} || $known_oids{default};
# See http://munin.projects.linpro.no/wiki/HowToWritePlugins for
# See http://munin.projects.linpro.no/wiki/HowToWritePlugins for
# explanation on the following fields
print "graph_title $labels->{title}\n";
print "graph_args --base 1000 -l 0\n";
@ -184,7 +184,7 @@ sub ck_alive{
$ping = Net::Ping->new("tcp", 1);
$ping->ping($host);
}
sub get_hosts {
# Hosts are defined in the 'hosts' environment variable. It's a list of
# hosts (and optionally ports) - We parse the list and arrange it neatly