> output: > Current Connections 30 > > map file: > /ouput:.*Connections=([\d])/ > and push @s, [check_currentconnections > [ Connections, GAUGE, $1 ] ];
Assuming this is Perl lingo: First of all your regexp says ouput i.s.o. output. Second of all, I never use square brackets for anonymous arrays. Or are these used as text delimiters? Third, I'm not sure whether "and" is a logical operator. It might be a bitwise operator. Fourth, your input seems multiline, but you're not using the multiline match statement. This won't work on $_ b.t.w., $_ is (usually) single line. So perhaps it needs to be: $text =~ /output:.*Connections=([\d])/m && push @s, qw/check_currentconnections Connections GAUGE $1/; But I might be wrong on 3 out of 4 statements.. Have fun :) Serge. ------------- Op de inhoud van dit e-mailbericht en de daaraan gehechte bijlagen is de inhoud van de volgende disclaimer van toepassing: http://www.zeelandnet.nl/disclaimer.php ------------- For the content of this e-mail message and its attachment(s) the following disclaimer applies: http://www.zeelandnet.nl/disclaimer.php -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
