converted a list of graphs to CSS #306

This commit is contained in:
Jordi Sanfeliu 2020-11-20 09:15:58 +01:00
parent 815394f9d9
commit 421f020bba
27 changed files with 87 additions and 87 deletions

View File

@ -318,7 +318,7 @@ sub ambsens_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
my (undef, undef, undef, $data) = RRDs::fetch("$rrd", my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
"--resolution=$tf->{res}", "--resolution=$tf->{res}",
@ -415,7 +415,7 @@ sub ambsens_cgi {
for($n2 = 0; $n2 < $ambsens->{graphs_per_row}; $n2++) { for($n2 = 0; $n2 < $ambsens->{graphs_per_row}; $n2++) {
last unless $n < scalar(my @sl = split(',', $ambsens->{list})); last unless $n < scalar(my @sl = split(',', $ambsens->{list}));
if($title) { if($title) {
push(@output, " <td bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td>\n");
} }
undef(@tmp); undef(@tmp);
undef(@tmpz); undef(@tmpz);

View File

@ -260,7 +260,7 @@ sub du_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
my (undef, undef, undef, $data) = RRDs::fetch("$rrd", my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
"--resolution=$tf->{res}", "--resolution=$tf->{res}",
@ -363,7 +363,7 @@ sub du_cgi {
last unless $n < scalar(my @dl = split(',', $du->{list})); last unless $n < scalar(my @dl = split(',', $du->{list}));
if($title) { if($title) {
push(@output, " <td bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td>\n");
} }
undef(@tmp); undef(@tmp);
undef(@tmpz); undef(@tmpz);

View File

@ -295,7 +295,7 @@ sub fail2ban_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
my (undef, undef, undef, $data) = RRDs::fetch("$rrd", my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
"--resolution=$tf->{res}", "--resolution=$tf->{res}",
@ -392,7 +392,7 @@ sub fail2ban_cgi {
for($n2 = 0; $n2 < $fail2ban->{graphs_per_row}; $n2++) { for($n2 = 0; $n2 < $fail2ban->{graphs_per_row}; $n2++) {
last unless $n < scalar(my @fl = split(',', $fail2ban->{list})); last unless $n < scalar(my @fl = split(',', $fail2ban->{list}));
if($title) { if($title) {
push(@output, " <td bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td>\n");
} }
undef(@tmp); undef(@tmp);
undef(@tmpz); undef(@tmpz);

View File

@ -868,7 +868,7 @@ sub fs_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
my (undef, undef, undef, $data) = RRDs::fetch("$rrd", my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
"--resolution=$tf->{res}", "--resolution=$tf->{res}",
@ -993,7 +993,7 @@ sub fs_cgi {
} }
if($title) { if($title) {
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
if(lc($config->{show_gaps}) eq "y") { if(lc($config->{show_gaps}) eq "y") {
push(@tmp, "AREA:wrongdata#$colors->{gap}:"); push(@tmp, "AREA:wrongdata#$colors->{gap}:");
@ -1081,7 +1081,7 @@ sub fs_cgi {
if($title) { if($title) {
push(@output, " </td>\n"); push(@output, " </td>\n");
push(@output, " <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
@riglim = @{setup_riglim($rigid[1], $limit[1])}; @riglim = @{setup_riglim($rigid[1], $limit[1])};
undef(@tmp); undef(@tmp);
@ -1226,7 +1226,7 @@ sub fs_cgi {
} }
if($title) { if($title) {
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
if(lc($config->{show_gaps}) eq "y") { if(lc($config->{show_gaps}) eq "y") {
push(@tmp, "AREA:wrongdata#$colors->{gap}:"); push(@tmp, "AREA:wrongdata#$colors->{gap}:");
@ -1314,7 +1314,7 @@ sub fs_cgi {
if($title) { if($title) {
push(@output, " </td>\n"); push(@output, " </td>\n");
push(@output, " <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
@riglim = @{setup_riglim($rigid[3], $limit[3])}; @riglim = @{setup_riglim($rigid[3], $limit[3])};
undef(@tmp); undef(@tmp);

View File

@ -353,7 +353,7 @@ sub ftp_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
my (undef, undef, undef, $data) = RRDs::fetch("$rrd", my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
"--resolution=$tf->{res}", "--resolution=$tf->{res}",
@ -428,7 +428,7 @@ sub ftp_cgi {
@riglim = @{setup_riglim($rigid[0], $limit[0])}; @riglim = @{setup_riglim($rigid[0], $limit[0])};
if($title) { if($title) {
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
push(@tmp, "LINE2:retr#44EE44:Files downloaded (RETR)"); push(@tmp, "LINE2:retr#44EE44:Files downloaded (RETR)");
push(@tmp, "GPRINT:retr:LAST: Current\\: %3.0lf"); push(@tmp, "GPRINT:retr:LAST: Current\\: %3.0lf");
@ -548,7 +548,7 @@ sub ftp_cgi {
if($title) { if($title) {
push(@output, " </td>\n"); push(@output, " </td>\n");
push(@output, " <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
@riglim = @{setup_riglim($rigid[1], $limit[1])}; @riglim = @{setup_riglim($rigid[1], $limit[1])};
undef(@tmp); undef(@tmp);

View File

@ -319,7 +319,7 @@ sub gensens_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
my (undef, undef, undef, $data) = RRDs::fetch("$rrd", my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
"--resolution=$tf->{res}", "--resolution=$tf->{res}",
@ -466,7 +466,7 @@ sub gensens_cgi {
} }
if($title) { if($title) {
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
if(index($ls[0], "temp") == 0) { if(index($ls[0], "temp") == 0) {
if(lc($config->{temperature_scale}) eq "f") { if(lc($config->{temperature_scale}) eq "f") {

View File

@ -322,7 +322,7 @@ sub hptemp_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
my (undef, undef, undef, $data) = RRDs::fetch("$rrd", my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
"--resolution=$tf->{res}", "--resolution=$tf->{res}",
@ -417,7 +417,7 @@ sub hptemp_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
@riglim = @{setup_riglim($rigid[0], $limit[0])}; @riglim = @{setup_riglim($rigid[0], $limit[0])};
@ -552,7 +552,7 @@ sub hptemp_cgi {
if($title) { if($title) {
push(@output, " </td>\n"); push(@output, " </td>\n");
push(@output, " <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
@riglim = @{setup_riglim($rigid[1], $limit[1])}; @riglim = @{setup_riglim($rigid[1], $limit[1])};
if(scalar(my @hptemp1 = split(',', ($hptemp->{graph_1} || "")))) { if(scalar(my @hptemp1 = split(',', ($hptemp->{graph_1} || "")))) {

View File

@ -926,7 +926,7 @@ sub int_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
my (undef, undef, undef, $data) = RRDs::fetch("$rrd", my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
"--resolution=$tf->{res}", "--resolution=$tf->{res}",
@ -1003,7 +1003,7 @@ sub int_cgi {
@riglim = @{setup_riglim($rigid[0], $limit[0])}; @riglim = @{setup_riglim($rigid[0], $limit[0])};
if($title) { if($title) {
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
my $i; my $i;
for($n = 0, $n1 = 0, $n2 = 0, $n3 = 0; $n < 256; $n++) { for($n = 0, $n1 = 0, $n2 = 0, $n3 = 0; $n < 256; $n++) {
@ -1119,7 +1119,7 @@ sub int_cgi {
if($title) { if($title) {
push(@output, " </td>\n"); push(@output, " </td>\n");
push(@output, " <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
@riglim = @{setup_riglim($rigid[1], $limit[1])}; @riglim = @{setup_riglim($rigid[1], $limit[1])};

View File

@ -276,7 +276,7 @@ sub ipmi_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
my (undef, undef, undef, $data) = RRDs::fetch("$rrd", my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
"--resolution=$tf->{res}", "--resolution=$tf->{res}",
@ -373,7 +373,7 @@ sub ipmi_cgi {
for($n2 = 0; $n2 < $ipmi->{graphs_per_row}; $n2++) { for($n2 = 0; $n2 < $ipmi->{graphs_per_row}; $n2++) {
last unless $n < scalar(my @sl = split(',', $ipmi->{list})); last unless $n < scalar(my @sl = split(',', $ipmi->{list}));
if($title) { if($title) {
push(@output, " <td bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td>\n");
} }
undef(@tmp); undef(@tmp);
undef(@tmpz); undef(@tmpz);

View File

@ -427,7 +427,7 @@ sub kern_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
my (undef, undef, undef, $data) = RRDs::fetch("$rrd", my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
"--resolution=$tf->{res}", "--resolution=$tf->{res}",
@ -690,7 +690,7 @@ sub kern_cgi {
if($title) { if($title) {
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
($width, $height) = split('x', $config->{graph_size}->{main}); ($width, $height) = split('x', $config->{graph_size}->{main});
if($silent =~ /imagetag/) { if($silent =~ /imagetag/) {
@ -776,7 +776,7 @@ sub kern_cgi {
if($title) { if($title) {
push(@output, " </td>\n"); push(@output, " </td>\n");
push(@output, " <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
@riglim = @{setup_riglim($rigid[1], $limit[1])}; @riglim = @{setup_riglim($rigid[1], $limit[1])};
undef(@tmp); undef(@tmp);

View File

@ -366,7 +366,7 @@ sub libvirt_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
my (undef, undef, undef, $data) = RRDs::fetch("$rrd", my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
"--resolution=$tf->{res}", "--resolution=$tf->{res}",
@ -501,7 +501,7 @@ sub libvirt_cgi {
} }
if($title) { if($title) {
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
if(lc($config->{show_gaps}) eq "y") { if(lc($config->{show_gaps}) eq "y") {
push(@tmp, "AREA:wrongdata#$colors->{gap}:"); push(@tmp, "AREA:wrongdata#$colors->{gap}:");
@ -589,7 +589,7 @@ sub libvirt_cgi {
if($title) { if($title) {
push(@output, " </td>\n"); push(@output, " </td>\n");
push(@output, " <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
@riglim = @{setup_riglim($rigid[1], $limit[1])}; @riglim = @{setup_riglim($rigid[1], $limit[1])};
undef(@tmp); undef(@tmp);
@ -740,7 +740,7 @@ sub libvirt_cgi {
} }
if($title) { if($title) {
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
if(lc($config->{show_gaps}) eq "y") { if(lc($config->{show_gaps}) eq "y") {
push(@tmp, "AREA:wrongdata#$colors->{gap}:"); push(@tmp, "AREA:wrongdata#$colors->{gap}:");
@ -844,7 +844,7 @@ sub libvirt_cgi {
if($title) { if($title) {
push(@output, " </td>\n"); push(@output, " </td>\n");
push(@output, " <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
@riglim = @{setup_riglim($rigid[3], $limit[3])}; @riglim = @{setup_riglim($rigid[3], $limit[3])};
undef(@tmp); undef(@tmp);

View File

@ -779,7 +779,7 @@ sub mail_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
my (undef, undef, undef, $data) = RRDs::fetch("$rrd", my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
"--resolution=$tf->{res}", "--resolution=$tf->{res}",
@ -1069,7 +1069,7 @@ sub mail_cgi {
if($title) { if($title) {
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
($width, $height) = split('x', $config->{graph_size}->{main}); ($width, $height) = split('x', $config->{graph_size}->{main});
if($silent =~ /imagetag/) { if($silent =~ /imagetag/) {
@ -1288,7 +1288,7 @@ sub mail_cgi {
if($title) { if($title) {
push(@output, " </td>\n"); push(@output, " </td>\n");
push(@output, " <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
@riglim = @{setup_riglim($rigid[2], $limit[2])}; @riglim = @{setup_riglim($rigid[2], $limit[2])};
undef(@tmp); undef(@tmp);

View File

@ -306,7 +306,7 @@ sub net_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
my (undef, undef, undef, $data) = RRDs::fetch("$rrd", my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
"--resolution=$tf->{res}", "--resolution=$tf->{res}",
@ -414,7 +414,7 @@ sub net_cgi {
} }
push(@output, main::graph_header($nl[$n] . " " . $title, 2)); push(@output, main::graph_header($nl[$n] . " " . $title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
@riglim = @{setup_riglim($rigid, $limit)}; @riglim = @{setup_riglim($rigid, $limit)};
@ -537,7 +537,7 @@ sub net_cgi {
if($title) { if($title) {
push(@output, " </td>\n"); push(@output, " </td>\n");
push(@output, " <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
@riglim = @{setup_riglim($rigid, $limit)}; @riglim = @{setup_riglim($rigid, $limit)};
undef(@tmp); undef(@tmp);

View File

@ -402,7 +402,7 @@ sub netstat_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
my (undef, undef, undef, $data) = RRDs::fetch("$rrd", my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
"--resolution=$tf->{res}", "--resolution=$tf->{res}",
@ -472,7 +472,7 @@ sub netstat_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
@riglim = @{setup_riglim($rigid[0], $limit[0])}; @riglim = @{setup_riglim($rigid[0], $limit[0])};
@ -728,7 +728,7 @@ sub netstat_cgi {
if($title) { if($title) {
push(@output, " </td>\n"); push(@output, " </td>\n");
push(@output, " <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
@riglim = @{setup_riglim($rigid[2], $limit[2])}; @riglim = @{setup_riglim($rigid[2], $limit[2])};

View File

@ -314,7 +314,7 @@ sub nfsc_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
my (undef, undef, undef, $data) = RRDs::fetch("$rrd", my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
"--resolution=$tf->{res}", "--resolution=$tf->{res}",
@ -408,7 +408,7 @@ sub nfsc_cgi {
@riglim = @{setup_riglim($rigid[0], $limit[0])}; @riglim = @{setup_riglim($rigid[0], $limit[0])};
if($title) { if($title) {
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td valign='top' bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
for($n = 0; $n < 10; $n++) { for($n = 0; $n < 10; $n++) {
my $str = trim((split(',', $nfsc->{graph_0}))[$n]) || ""; my $str = trim((split(',', $nfsc->{graph_0}))[$n]) || "";
@ -596,7 +596,7 @@ sub nfsc_cgi {
if($title) { if($title) {
push(@output, " </td>\n"); push(@output, " </td>\n");
push(@output, " <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
@riglim = @{setup_riglim($rigid[2], $limit[2])}; @riglim = @{setup_riglim($rigid[2], $limit[2])};
undef(@tmp); undef(@tmp);

View File

@ -445,7 +445,7 @@ sub nfss_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
my (undef, undef, undef, $data) = RRDs::fetch("$rrd", my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
"--resolution=$tf->{res}", "--resolution=$tf->{res}",
@ -570,7 +570,7 @@ sub nfss_cgi {
@riglim = @{setup_riglim($rigid[0], $limit[0])}; @riglim = @{setup_riglim($rigid[0], $limit[0])};
if($title) { if($title) {
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td valign='top' bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
for($n = 0; $n < 10; $n++) { for($n = 0; $n < 10; $n++) {
my $str = trim((split(',', $nfss->{graph_0}))[$n]) || ""; my $str = trim((split(',', $nfss->{graph_0}))[$n]) || "";
@ -853,7 +853,7 @@ sub nfss_cgi {
if($title) { if($title) {
push(@output, " </td>\n"); push(@output, " </td>\n");
push(@output, " <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
@riglim = @{setup_riglim($rigid[3], $limit[3])}; @riglim = @{setup_riglim($rigid[3], $limit[3])};
undef(@tmp); undef(@tmp);

View File

@ -307,7 +307,7 @@ sub nginx_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
my (undef, undef, undef, $data) = RRDs::fetch("$rrd", my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
"--resolution=$tf->{res}", "--resolution=$tf->{res}",
@ -377,7 +377,7 @@ sub nginx_cgi {
@riglim = @{setup_riglim($rigid[0], $limit[0])}; @riglim = @{setup_riglim($rigid[0], $limit[0])};
if($title) { if($title) {
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
push(@tmp, "AREA:total#44EEEE:Total"); push(@tmp, "AREA:total#44EEEE:Total");
push(@tmp, "GPRINT:total:LAST: Current\\: %5.0lf"); push(@tmp, "GPRINT:total:LAST: Current\\: %5.0lf");
@ -491,7 +491,7 @@ sub nginx_cgi {
if($title) { if($title) {
push(@output, " </td>\n"); push(@output, " </td>\n");
push(@output, " <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
@riglim = @{setup_riglim($rigid[1], $limit[1])}; @riglim = @{setup_riglim($rigid[1], $limit[1])};
undef(@tmp); undef(@tmp);

View File

@ -339,7 +339,7 @@ sub nvidia_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
my (undef, undef, undef, $data) = RRDs::fetch("$rrd", my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
"--resolution=$tf->{res}", "--resolution=$tf->{res}",
@ -439,7 +439,7 @@ sub nvidia_cgi {
if($title) { if($title) {
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
if(lc($config->{temperature_scale}) eq "f") { if(lc($config->{temperature_scale}) eq "f") {
push(@CDEF, "CDEF:temp_0=9,5,/,temp0,*,32,+"); push(@CDEF, "CDEF:temp_0=9,5,/,temp0,*,32,+");
@ -552,7 +552,7 @@ sub nvidia_cgi {
if($title) { if($title) {
push(@output, " </td>\n"); push(@output, " </td>\n");
push(@output, " <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
@riglim = @{setup_riglim($rigid[1], $limit[1])}; @riglim = @{setup_riglim($rigid[1], $limit[1])};
undef(@tmp); undef(@tmp);

View File

@ -392,7 +392,7 @@ sub port_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
my (undef, undef, undef, $data) = RRDs::fetch("$rrd", my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
"--resolution=$tf->{res}", "--resolution=$tf->{res}",
@ -521,7 +521,7 @@ sub port_cgi {
my $pc = trim((split(',', $port->{desc}->{$pl[$n]}))[2]); my $pc = trim((split(',', $port->{desc}->{$pl[$n]}))[2]);
foreach my $pcon (split('/', $pc)) { foreach my $pcon (split('/', $pc)) {
if($title) { if($title) {
push(@output, " <td bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td>\n");
} }
my $pnum; my $pnum;
$pl[$n] = trim($pl[$n]); $pl[$n] = trim($pl[$n]);

View File

@ -387,7 +387,7 @@ sub process_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
my (undef, undef, undef, $data) = RRDs::fetch("$rrd", my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
"--resolution=$tf->{res}", "--resolution=$tf->{res}",
@ -513,7 +513,7 @@ sub process_cgi {
} }
if($title) { if($title) {
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
if(lc($config->{show_gaps}) eq "y") { if(lc($config->{show_gaps}) eq "y") {
push(@tmp, "AREA:wrongdata#$colors->{gap}:"); push(@tmp, "AREA:wrongdata#$colors->{gap}:");
@ -605,7 +605,7 @@ sub process_cgi {
if($title) { if($title) {
push(@output, " </td>\n"); push(@output, " </td>\n");
push(@output, " <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
@riglim = @{setup_riglim($rigid[1], $limit[1])}; @riglim = @{setup_riglim($rigid[1], $limit[1])};
undef(@tmp); undef(@tmp);
@ -756,7 +756,7 @@ sub process_cgi {
} }
if($title) { if($title) {
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
if(lc($config->{show_gaps}) eq "y") { if(lc($config->{show_gaps}) eq "y") {
push(@tmp, "AREA:wrongdata#$colors->{gap}:"); push(@tmp, "AREA:wrongdata#$colors->{gap}:");
@ -868,7 +868,7 @@ sub process_cgi {
if($title) { if($title) {
push(@output, " </td>\n"); push(@output, " </td>\n");
push(@output, " <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
@riglim = @{setup_riglim($rigid[3], $limit[3])}; @riglim = @{setup_riglim($rigid[3], $limit[3])};
undef(@tmp); undef(@tmp);
@ -1022,7 +1022,7 @@ sub process_cgi {
} }
if($title) { if($title) {
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
if(lc($config->{show_gaps}) eq "y") { if(lc($config->{show_gaps}) eq "y") {
push(@tmp, "AREA:wrongdata#$colors->{gap}:"); push(@tmp, "AREA:wrongdata#$colors->{gap}:");
@ -1114,7 +1114,7 @@ sub process_cgi {
if($title) { if($title) {
push(@output, " </td>\n"); push(@output, " </td>\n");
push(@output, " <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
@riglim = @{setup_riglim($rigid[5], $limit[5])}; @riglim = @{setup_riglim($rigid[5], $limit[5])};
undef(@tmp); undef(@tmp);
@ -1247,7 +1247,7 @@ sub process_cgi {
} }
if($title) { if($title) {
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
if(lc($config->{show_gaps}) eq "y") { if(lc($config->{show_gaps}) eq "y") {
push(@tmp, "AREA:wrongdata_p#$colors->{gap}:"); push(@tmp, "AREA:wrongdata_p#$colors->{gap}:");
@ -1404,7 +1404,7 @@ sub process_cgi {
if($title) { if($title) {
push(@output, " </td>\n"); push(@output, " </td>\n");
push(@output, " <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
@riglim = @{setup_riglim($rigid[7], $limit[7])}; @riglim = @{setup_riglim($rigid[7], $limit[7])};
undef(@tmp); undef(@tmp);

View File

@ -270,7 +270,7 @@ sub raspberrypi_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
my (undef, undef, undef, $data) = RRDs::fetch("$rrd", my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
"--resolution=$tf->{res}", "--resolution=$tf->{res}",
@ -391,7 +391,7 @@ sub raspberrypi_cgi {
} }
if($title) { if($title) {
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
if(lc($config->{show_gaps}) eq "y") { if(lc($config->{show_gaps}) eq "y") {
push(@tmp, "AREA:wrongdata#$colors->{gap}:"); push(@tmp, "AREA:wrongdata#$colors->{gap}:");
@ -484,7 +484,7 @@ sub raspberrypi_cgi {
if($title) { if($title) {
push(@output, " </td>\n"); push(@output, " </td>\n");
push(@output, " <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
@riglim = @{setup_riglim($rigid[1], $limit[1])}; @riglim = @{setup_riglim($rigid[1], $limit[1])};
undef(@tmp); undef(@tmp);

View File

@ -681,7 +681,7 @@ sub serv_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
my (undef, undef, undef, $data) = RRDs::fetch("$rrd", my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
"--resolution=$tf->{res}", "--resolution=$tf->{res}",
@ -885,7 +885,7 @@ sub serv_cgi {
if($title) { if($title) {
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
($width, $height) = split('x', $config->{graph_size}->{main}); ($width, $height) = split('x', $config->{graph_size}->{main});
if($silent =~ /imagetag/) { if($silent =~ /imagetag/) {
@ -986,7 +986,7 @@ sub serv_cgi {
if($title) { if($title) {
push(@output, " </td>\n"); push(@output, " </td>\n");
push(@output, " <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
@riglim = @{setup_riglim($rigid[1], $limit[1])}; @riglim = @{setup_riglim($rigid[1], $limit[1])};
undef(@tmp); undef(@tmp);

View File

@ -544,7 +544,7 @@ sub squid_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
my (undef, undef, undef, $data) = RRDs::fetch("$rrd", my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
"--resolution=$tf->{res}", "--resolution=$tf->{res}",
@ -734,7 +734,7 @@ sub squid_cgi {
@riglim = @{setup_riglim($rigid[0], $limit[0])}; @riglim = @{setup_riglim($rigid[0], $limit[0])};
if($title) { if($title) {
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td valign='top' bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
my @sg0 = split(',', $squid->{graph_0}); my @sg0 = split(',', $squid->{graph_0});
for($n = 0, $i = 1; $n < 9; $n++, $i++) { for($n = 0, $i = 1; $n < 9; $n++, $i++) {
@ -1062,7 +1062,7 @@ sub squid_cgi {
if($title) { if($title) {
push(@output, " </td>\n"); push(@output, " </td>\n");
push(@output, " <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
@riglim = @{setup_riglim($rigid[3], $limit[3])}; @riglim = @{setup_riglim($rigid[3], $limit[3])};
undef(@tmp); undef(@tmp);

View File

@ -367,7 +367,7 @@ sub tc_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
my (undef, undef, undef, $data) = RRDs::fetch("$rrd", my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
"--resolution=$tf->{res}", "--resolution=$tf->{res}",
@ -511,7 +511,7 @@ sub tc_cgi {
} }
if($title) { if($title) {
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
if(lc($config->{show_gaps}) eq "y") { if(lc($config->{show_gaps}) eq "y") {
push(@tmp, "AREA:wrongdata#$colors->{gap}:"); push(@tmp, "AREA:wrongdata#$colors->{gap}:");
@ -601,7 +601,7 @@ sub tc_cgi {
if($title) { if($title) {
push(@output, " </td>\n"); push(@output, " </td>\n");
push(@output, " <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
@riglim = @{setup_riglim($rigid[1], $limit[1])}; @riglim = @{setup_riglim($rigid[1], $limit[1])};
undef(@tmp); undef(@tmp);
@ -732,7 +732,7 @@ sub tc_cgi {
} }
if($title) { if($title) {
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
if(lc($config->{show_gaps}) eq "y") { if(lc($config->{show_gaps}) eq "y") {
push(@tmp, "AREA:wrongdata#$colors->{gap}:"); push(@tmp, "AREA:wrongdata#$colors->{gap}:");
@ -821,7 +821,7 @@ sub tc_cgi {
if($title) { if($title) {
push(@output, " </td>\n"); push(@output, " </td>\n");
push(@output, " <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
@riglim = @{setup_riglim($rigid[3], $limit[3])}; @riglim = @{setup_riglim($rigid[3], $limit[3])};
undef(@tmp); undef(@tmp);

View File

@ -211,7 +211,7 @@ sub user_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
my (undef, undef, undef, $data) = RRDs::fetch("$rrd", my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
"--resolution=$tf->{res}", "--resolution=$tf->{res}",
@ -275,7 +275,7 @@ sub user_cgi {
@riglim = @{setup_riglim($rigid[0], $limit[0])}; @riglim = @{setup_riglim($rigid[0], $limit[0])};
if($title) { if($title) {
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
push(@tmp, "AREA:sys#44EE44:Logged In"); push(@tmp, "AREA:sys#44EE44:Logged In");
push(@tmp, "GPRINT:sys:LAST: Current\\: %3.0lf"); push(@tmp, "GPRINT:sys:LAST: Current\\: %3.0lf");
@ -360,7 +360,7 @@ sub user_cgi {
if($title) { if($title) {
push(@output, " </td>\n"); push(@output, " </td>\n");
push(@output, " <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
@riglim = @{setup_riglim($rigid[1], $limit[1])}; @riglim = @{setup_riglim($rigid[1], $limit[1])};
undef(@tmp); undef(@tmp);

View File

@ -421,7 +421,7 @@ sub varnish_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
my (undef, undef, undef, $data) = RRDs::fetch("$rrd", my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
"--resolution=$tf->{res}", "--resolution=$tf->{res}",
@ -518,7 +518,7 @@ sub varnish_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td valign='top' bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
@riglim = @{setup_riglim($rigid[0], $limit[0])}; @riglim = @{setup_riglim($rigid[0], $limit[0])};
@ -784,7 +784,7 @@ sub varnish_cgi {
if($title) { if($title) {
push(@output, " </td>\n"); push(@output, " </td>\n");
push(@output, " <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
@riglim = @{setup_riglim($rigid[2], $limit[2])}; @riglim = @{setup_riglim($rigid[2], $limit[2])};

View File

@ -212,7 +212,7 @@ sub verlihub_cgi {
if($title) { if($title) {
push(@output, main::graph_header($title, 2)); push(@output, main::graph_header($title, 2));
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
my (undef, undef, undef, $data) = RRDs::fetch("$rrd", my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
"--resolution=$tf->{res}", "--resolution=$tf->{res}",
@ -277,7 +277,7 @@ sub verlihub_cgi {
@riglim = @{setup_riglim($rigid[0], $limit[0])}; @riglim = @{setup_riglim($rigid[0], $limit[0])};
if($title) { if($title) {
push(@output, " <tr>\n"); push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n"); push(@output, " <td>\n");
} }
push(@tmp, "AREA:users_total#2258FF:Connected Users"); push(@tmp, "AREA:users_total#2258FF:Connected Users");
push(@tmp, "GPRINT:users_total:LAST: Current\\: %3.0lf"); push(@tmp, "GPRINT:users_total:LAST: Current\\: %3.0lf");
@ -362,7 +362,7 @@ sub verlihub_cgi {
if($title) { if($title) {
push(@output, " </td>\n"); push(@output, " </td>\n");
push(@output, " <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n"); push(@output, " <td class='td-valign-top'>\n");
} }
@riglim = @{setup_riglim($rigid[1], $limit[1])}; @riglim = @{setup_riglim($rigid[1], $limit[1])};
undef(@tmp); undef(@tmp);