1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-25 10:28:36 +00:00
Suspicious sections:
plugins/mail/postfix_mail_stats		recieved.label
plugins/nginx/nginx_vhost_traffic
This commit is contained in:
Veres Lajos 2014-12-04 23:37:42 +00:00
parent 8e18199f16
commit fba800ae52
119 changed files with 176 additions and 176 deletions

View file

@ -72,7 +72,7 @@ if( $ARGV[0] eq "" ){
next if $line =~ /^\r$/; # or else
next if $line =~ /^\r\n$/; # http specific
( $key, $value, $last) = split( /\|/, $line ); # split up to three values
$key =~ s/^\s//g; $key =~ s/\s$//g; # no spaces at the end and the begining
$key =~ s/^\s//g; $key =~ s/\s$//g; # no spaces at the end and the beginning
$value =~ s/^\s//g; $value =~ s/\s$//g;
$value =~ s/(\d*)\s*.*/$1/g; # remove more than one values from splited data
$value =~ s/[a-zA-Z\(\)\%]//g; # and not alphanummeric glyphs