From dfbf9b33f5a3f8bc8586bf0f777105c5df1ce414 Mon Sep 17 00:00:00 2001 From: Guillaume Blairon Date: Mon, 29 Nov 2010 10:49:59 +0100 Subject: [PATCH] Updated config regexp, thanks to Rachid Mokrani. --- plugins/other/snmp__netapp_diskusage_ | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/other/snmp__netapp_diskusage_ b/plugins/other/snmp__netapp_diskusage_ index 41ecf5ba..501a842d 100755 --- a/plugins/other/snmp__netapp_diskusage_ +++ b/plugins/other/snmp__netapp_diskusage_ @@ -55,8 +55,8 @@ of Network Appliance, Inc. in the U.S. and other countries. =head1 BUGS -This plugin hasn't be tested on many hardware. If you encounter -bugs, please report any to Guillaume Blairon ELE. +This plugin wasn't tested on many hardware. If you encounter bugs, +please report them to Guillaume Blairon ELE. =head1 LICENSE @@ -113,7 +113,7 @@ my $session = Munin::Plugin::SNMP->session(); my ($host, undef, undef, $tail) = Munin::Plugin::SNMP->config_session(); my ($df_id, $name_oid); -if ($tail =~ /^netapp_diskusage_(\d)*$/) { +if ($tail =~ /^netapp_diskusage_(\d+)$/) { $df_id = $1; $name_oid = '1.3.6.1.4.1.789.1.5.4.1.2.' . $df_id; } else {