X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=html%2Fcgi-bin%2Fsystem.cgi;h=02f03842202753d44f99df4c65930b005ecbaa21;hp=e627f2660e640034284f0f8249fc1456dc84cd55;hb=350b52c5c9368951ff2a9139817b42d0aec03ad7;hpb=aee3027d875826e18b3eb198f9ad0c3228bfbb01 diff --git a/html/cgi-bin/system.cgi b/html/cgi-bin/system.cgi index e627f2660e..02f0384220 100644 --- a/html/cgi-bin/system.cgi +++ b/html/cgi-bin/system.cgi @@ -17,6 +17,7 @@ use CGI::Carp 'fatalsToBrowser'; require '/var/ipfire/general-functions.pl'; require "${General::swroot}/lang.pl"; require "${General::swroot}/header.pl"; +require "${General::swroot}/graphs.pl"; #workaround to suppress a warning when a variable is used only once my @dummy = ( ${Header::colourred} ); @@ -64,12 +65,19 @@ if ($netsettings{'BLUE_DEV'} ne '') { $servicenames{"$Lang::tr{'intrusion detection system'} (BLUE)"} = "snort_$netsettings{'BLUE_DEV'}"; } -&Header::showhttpheaders(); +# Generate Graphs from rrd Data +&Graphs::updatecpugraph ("day"); +&Graphs::updatecpugraph ("week"); +&Graphs::updatecpugraph ("month"); +&Graphs::updatecpugraph ("year"); +&Graphs::updateloadgraph ("day"); +&Graphs::updateloadgraph ("week"); +&Graphs::updateloadgraph ("month"); +&Graphs::updateloadgraph ("year"); +&Header::showhttpheaders(); &Header::getcgihash(\%cgiparams); - &Header::openpage($Lang::tr{'status information'}, 1, ''); - &Header::openbigbox('100%', 'left'); &Header::openbox('100%', 'center', "CPU $Lang::tr{'graph'}");