]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - config/cfgroot/graphs.pl
Firewallgraphen angepasst und uebersetzt
[people/pmueller/ipfire-2.x.git] / config / cfgroot / graphs.pl
index 0f492d4da23c6132b16a8dd1654cd7a745db1578..abc13685106e23fe3b165898c37b9b7017be8b6a 100644 (file)
@@ -259,25 +259,25 @@ sub updateifgraph {
 }
 
 sub updatefwhitsgraph {
-  my $interval = $_[0];
+  my $period = $_[0];
 
-  RRDs::graph ("$graphs/firewallhits-$interval-area.png",
-  "--start", "-1$interval", "-aPNG", "-i", "-z",
-  "--alt-y-grid", "-w 600", "-h 200",
+  RRDs::graph ("$graphs/firewallhits-$period-area.png",
+  "--start", "-1$period", "-aPNG", "-i", "-z",
+  "--alt-y-grid", "-w 600", "-h 100",
   "--color", "SHADEA".$color{"color19"},
   "--color", "SHADEB".$color{"color19"},
   "--color", "BACK".$color{"color21"},
-  "-t firewall hits over the last $interval",
+  "-t $tr{'firewall hits per'} $tr{$period}",
   "DEF:amount=$rrdlog/firewallhits.rrd:amount:AVERAGE",
-  "AREA:amount".$color{"color24"}.":$tr{'firewallhits'}",
-  "GPRINT:amount:MAX:   $tr{'maximal'}\\: %2.2lf %S",
-  "GPRINT:amount:AVERAGE: $tr{'average'}\\: %2.2lf %S",
-  "GPRINT:amount:LAST: $tr{'current'}\\: %2.2lf %Shits/5 min\\n",
   "DEF:portamount=$rrdlog/firewallhits.rrd:portamount:AVERAGE",
-  "AREA:portamount".$color{"color25"}.":$tr{'portscans'}",
-  "GPRINT:portamount:MAX:      $tr{'maximal'}\\: %2.2lf %S",
+  "AREA:amount".$color{"color24"}.":$tr{'firewallhits'}/5 min",
+  "GPRINT:amount:MAX: $tr{'maximal'}\\: %2.2lf %S",
+  "GPRINT:amount:AVERAGE: $tr{'average'}\\: %2.2lf %S",
+  "GPRINT:amount:LAST: $tr{'current'}\\: %2.2lf %S\\j",
+  "AREA:portamount".$color{"color25"}.":$tr{'portscans'}/5 min",
+  "GPRINT:portamount:MAX: $tr{'maximal'}\\: %2.2lf %S",
   "GPRINT:portamount:AVERAGE: $tr{'average'}\\: %2.2lf %S",
-  "GPRINT:portamount:LAST: $tr{'current'}\\: %2.2lf %Shits/5 min");
+  "GPRINT:portamount:LAST: $tr{'current'}\\: %2.2lf %S\\j");
   $ERROR = RRDs::error;
   print "Error in RRD::graph for Firewallhits: $ERROR\n" if $ERROR;
 }