X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=html%2Fcgi-bin%2Fhardwaregraphs.cgi;h=73885a0d7e6445d28d9e8429208e594ad93c975c;hb=bcad0fd0d23fda4a739bd828142bc2a7a2190a5c;hp=3bdad6404141835ebe936422898a84089ce40e45;hpb=74e82b68e80899e5712697383ee05443e91b19f3;p=ipfire-2.x.git diff --git a/html/cgi-bin/hardwaregraphs.cgi b/html/cgi-bin/hardwaregraphs.cgi index 3bdad64041..73885a0d7e 100644 --- a/html/cgi-bin/hardwaregraphs.cgi +++ b/html/cgi-bin/hardwaregraphs.cgi @@ -22,8 +22,8 @@ use strict; # enable only the following on debugging purpose -use warnings; -use CGI::Carp 'fatalsToBrowser'; +#use warnings; +#use CGI::Carp 'fatalsToBrowser'; require '/var/ipfire/general-functions.pl'; require "${General::swroot}/lang.pl"; @@ -36,10 +36,9 @@ my %mainsettings = (); &General::readhash("/srv/web/ipfire/html/themes/".$mainsettings{'THEME'}."/include/colors.txt", \%color); my %sensorsettings = (); -my $rrdlog = "/var/log/rrd"; my @sensorsgraphs = (); -my @sensorsdir = `ls -dA $rrdlog/collectd/localhost/sensors-*/`; +my @sensorsdir = `ls -dA $mainsettings{'RRDLOG'}/collectd/localhost/sensors-*/`; foreach (@sensorsdir){ chomp($_);chop($_); foreach (`ls $_/*`){