From 482b7d21bc9f2dfb85a7340fbe678e8ebc1a8ace Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont Date: Sun, 14 Sep 2008 19:50:29 +0200 Subject: [PATCH] Des petits bouts qui trainent... darcs-hash:20080914175029-ffbb2-6ded54fb8ed2bfd11094f736ab25e0e38e2cd96f.gz --- munin/snmp__if__ | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/munin/snmp__if__ b/munin/snmp__if__ index ef42236a..889787cb 100755 --- a/munin/snmp__if__ +++ b/munin/snmp__if__ @@ -66,20 +66,19 @@ if (defined $ARGV[0] and $ARGV[0] eq "snmpconf") if ($0 =~ /^(?:|.*\/)snmp_([^_]+)_if_([^_]+)_(.+)$/) { - $host = $1; + $host = $1; $name = $2; - $iface = $3; - if ($host =~ /^([^:]+):(\d+)$/) - { - $host = $1; - $port = $2; - } + $iface = $3; + if ($host =~ /^([^:]+):(\d+)$/) + { + $host = $1; + $port = $2; + } if ($host !~ /\.adm\.crans\.org$/) { $host .= ".adm.crans.org"; } - print "Host:$host\nName:$name\niface:$iface\n"; } else {