From 8fd69c45f567d56bb6df488e2f07d07c7c0b7e28 Mon Sep 17 00:00:00 2001 From: Hanson Wong Date: Tue, 27 Jun 2017 10:17:16 +1000 Subject: [PATCH] Fix coding style. --- plugins/openwrt/snmp__memory_openwrt | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/plugins/openwrt/snmp__memory_openwrt b/plugins/openwrt/snmp__memory_openwrt index 77abc854..61ca9a0d 100755 --- a/plugins/openwrt/snmp__memory_openwrt +++ b/plugins/openwrt/snmp__memory_openwrt @@ -16,8 +16,8 @@ OpenWrt devices which have snmpd installed. As a rule SNMP plugins need site specific configuration. The default configuration (shown here) will only work on insecure sites/devices. - [snmp_*] - env.version 2 + [snmp_*] + env.version 2 env.community public In general SNMP is not very secure at all unless you use SNMP version @@ -41,10 +41,6 @@ reports the contents of the hrStorageSize and hrStorageUsed OIDs. #%# family=snmpauto #%# capabilities=snmpconf -=head1 VERSION - - $Id$ - =head1 BUGS None known. @@ -65,16 +61,16 @@ use strict; use Munin::Plugin::SNMP; if (defined $ARGV[0] and $ARGV[0] eq 'snmpconf') { - print "require 1.3.6.1.2.1.25.2.3.1.5.1\n"; - print "require 1.3.6.1.2.1.25.2.3.1.6.1\n"; - exit 0; + print "require 1.3.6.1.2.1.25.2.3.1.5.1\n"; + print "require 1.3.6.1.2.1.25.2.3.1.6.1\n"; + exit 0; } if (defined $ARGV[0] and $ARGV[0] eq "config") { - my ($host) = Munin::Plugin::SNMP->config_session(); + my ($host) = Munin::Plugin::SNMP->config_session(); - print "host_name $host\n" unless ($host eq 'localhost'); - print <<'EOC'; + print "host_name $host\n" unless ($host eq 'localhost'); + print <<'EOC'; graph_title Memory usage graph_args --base 1000 -l 0 graph_vlabel kB @@ -87,7 +83,7 @@ memused.info The memory in use. memsize.draw LINE1 memused.draw LINE2 EOC - exit 0; + exit 0; } my $session = Munin::Plugin::SNMP->session();