converted the rest of graphs to CSS #306

This commit is contained in:
Jordi Sanfeliu 2020-12-03 09:42:17 +01:00
parent 9aa0a1c4ab
commit 08b3acdbd6
19 changed files with 65 additions and 65 deletions

View File

@ -767,7 +767,7 @@ sub apache_cgi {
if($title) {
push(@output, main::graph_header($title, 2));
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",
"--resolution=$tf->{res}",
@ -858,7 +858,7 @@ sub apache_cgi {
@riglim = @{setup_riglim($rigid[0], $limit[0])};
if($title) {
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n");
push(@output, " <td>\n");
}
undef(@tmp);
undef(@tmpz);
@ -1094,7 +1094,7 @@ sub apache_cgi {
if($title) {
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])};
undef(@tmp);

View File

@ -314,7 +314,7 @@ sub apcupsd_cgi {
if($title) {
push(@output, main::graph_header($title, 2));
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",
"--resolution=$tf->{res}",
@ -448,7 +448,7 @@ sub apcupsd_cgi {
@riglim = @{setup_riglim($rigid[0], $limit[0])};
if($title) {
push(@output, " <tr>\n");
push(@output, " <td valign='top' bgcolor='$colors->{title_bg_color}'>\n");
push(@output, " <td class='td-valign-top'>\n");
}
undef(@tmp);
undef(@tmpz);
@ -662,7 +662,7 @@ sub apcupsd_cgi {
if($title) {
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])};

View File

@ -640,7 +640,7 @@ sub bind_cgi {
if($title) {
push(@output, main::graph_header($title, 2));
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",
"--resolution=$tf->{res}",
@ -846,7 +846,7 @@ sub bind_cgi {
}
if($title) {
push(@output, " <tr>\n");
push(@output, " <td bgcolor='" . $colors->{title_bg_color} . "'>\n");
push(@output, " <td>\n");
}
if(lc($config->{show_gaps}) eq "y") {
push(@tmp, "AREA:wrongdata#$colors->{gap}:");
@ -972,7 +972,7 @@ sub bind_cgi {
push(@tmp, "COMMENT: \\n");
}
if($title) {
push(@output, " <td bgcolor='" . $colors->{title_bg_color} . "'>\n");
push(@output, " <td>\n");
}
if(lc($config->{show_gaps}) eq "y") {
push(@tmp, "AREA:wrongdata#$colors->{gap}:");
@ -1096,7 +1096,7 @@ sub bind_cgi {
}
if($title) {
push(@output, " <tr>\n");
push(@output, " <td bgcolor='" . $colors->{title_bg_color} . "'>\n");
push(@output, " <td>\n");
}
if(lc($config->{show_gaps}) eq "y") {
push(@tmp, "AREA:wrongdata#$colors->{gap}:");
@ -1222,7 +1222,7 @@ sub bind_cgi {
push(@tmp, "COMMENT: \\n");
}
if($title) {
push(@output, " <td bgcolor='" . $colors->{title_bg_color} . "'>\n");
push(@output, " <td>\n");
}
if(lc($config->{show_gaps}) eq "y") {
push(@tmp, "AREA:wrongdata#$colors->{gap}:");
@ -1346,7 +1346,7 @@ sub bind_cgi {
}
if($title) {
push(@output, " <tr>\n");
push(@output, " <td bgcolor='" . $colors->{title_bg_color} . "'>\n");
push(@output, " <td>\n");
}
if(lc($config->{show_gaps}) eq "y") {
push(@tmp, "AREA:wrongdata#$colors->{gap}:");
@ -1473,7 +1473,7 @@ sub bind_cgi {
push(@tmp, "GPRINT:mem_l_mb" . ":LAST: Cur\\:%6.1lf MB\\n");
push(@tmpz, "LINE2:mem_l#EE4444:Lost");
if($title) {
push(@output, " <td bgcolor='" . $colors->{title_bg_color} . "'>\n");
push(@output, " <td>\n");
}
if(lc($config->{show_gaps}) eq "y") {
push(@tmp, "AREA:wrongdata#$colors->{gap}:");

View File

@ -271,7 +271,7 @@ sub chrony_cgi {
if($title) {
push(@output, main::graph_header($title, 2));
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",
"--resolution=$tf->{res}",
@ -395,7 +395,7 @@ sub chrony_cgi {
@riglim = @{setup_riglim($rigid[0], $limit[0])};
if($title) {
push(@output, " <tr>\n");
push(@output, " <td valign='top' bgcolor='$colors->{title_bg_color}'>\n");
push(@output, " <td class='td-valign-top'>\n");
}
undef(@tmp);
undef(@tmpz);
@ -584,7 +584,7 @@ sub chrony_cgi {
if($title) {
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])};

View File

@ -366,7 +366,7 @@ sub disk_cgi {
if($title) {
push(@output, main::graph_header($title, 2));
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",
"--resolution=$tf->{res}",
@ -507,7 +507,7 @@ sub disk_cgi {
}
if($title) {
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n");
push(@output, " <td>\n");
}
if(lc($config->{temperature_scale}) eq "f") {
push(@CDEF, "CDEF:temp_0=9,5,/,temp0,*,32,+");
@ -617,7 +617,7 @@ sub disk_cgi {
if($title) {
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])};
undef(@tmp);

View File

@ -298,7 +298,7 @@ sub icecast_cgi {
if($title) {
push(@output, main::graph_header($title, 2));
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",
"--resolution=$tf->{res}",
@ -438,7 +438,7 @@ sub icecast_cgi {
if($title) {
push(@output, " <tr>\n");
push(@output, " <td bgcolor='" . $colors->{title_bg_color} . "'>\n");
push(@output, " <td>\n");
}
if(lc($config->{show_gaps}) eq "y") {
push(@tmp, "AREA:wrongdata#$colors->{gap}:");
@ -541,7 +541,7 @@ sub icecast_cgi {
}
if($title) {
push(@output, " <td bgcolor='" . $colors->{title_bg_color} . "'>\n");
push(@output, " <td>\n");
}
if(lc($config->{show_gaps}) eq "y") {
push(@tmp, "AREA:wrongdata#$colors->{gap}:");

View File

@ -262,7 +262,7 @@ sub lighttpd_cgi {
if($title) {
push(@output, main::graph_header($title, 2));
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",
"--resolution=$tf->{res}",
@ -352,7 +352,7 @@ sub lighttpd_cgi {
@riglim = @{setup_riglim($rigid[0], $limit[0])};
if($title) {
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n");
push(@output, " <td>\n");
}
undef(@tmp);
undef(@tmpz);
@ -454,7 +454,7 @@ sub lighttpd_cgi {
if($title) {
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])};
undef(@tmp);

View File

@ -451,7 +451,7 @@ sub memcached_cgi {
if($title) {
push(@output, main::graph_header($title, 2));
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",
"--resolution=$tf->{res}",
@ -577,7 +577,7 @@ sub memcached_cgi {
@riglim = @{setup_riglim($rigid[0], $limit[0])};
if($title) {
push(@output, " <tr>\n");
push(@output, " <td valign='top' bgcolor='$colors->{title_bg_color}'>\n");
push(@output, " <td class='td-valign-top'>\n");
}
undef(@tmp);
undef(@tmpz);
@ -856,7 +856,7 @@ sub memcached_cgi {
if($title) {
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])};

View File

@ -639,7 +639,7 @@ sub mongodb_cgi {
if($title) {
push(@output, main::graph_header($title, 2));
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",
"--resolution=$tf->{res}",
@ -776,7 +776,7 @@ sub mongodb_cgi {
}
if($title) {
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n");
push(@output, " <td>\n");
}
@riglim = @{setup_riglim($rigid[0], $limit[0])};
undef(@tmp);
@ -1006,7 +1006,7 @@ sub mongodb_cgi {
if($title) {
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])};
undef(@tmp);
@ -1401,7 +1401,7 @@ sub mongodb_cgi {
if($title) {
push(@output, " <tr>\n");
push(@output, " <td bgcolor='" . $colors->{title_bg_color} . "'>\n");
push(@output, " <td>\n");
}
@riglim = @{setup_riglim($rigid[$e * 6 + $e2], $limit[$e * 6 + $e2])};
@ -1497,7 +1497,7 @@ sub mongodb_cgi {
if($title) {
push(@output, " </td>\n");
push(@output, " <td bgcolor='" . $colors->{title_bg_color} . "'>\n");
push(@output, " <td>\n");
}
$e2++;

View File

@ -547,7 +547,7 @@ sub mysql_cgi {
if($title) {
push(@output, main::graph_header($title, 2));
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",
"--resolution=$tf->{res}",
@ -650,7 +650,7 @@ sub mysql_cgi {
@riglim = @{setup_riglim($rigid[0], $limit[0])};
if($title) {
push(@output, " <tr>\n");
push(@output, " <td valign='top' bgcolor='$colors->{title_bg_color}'>\n");
push(@output, " <td class='td-valign-top'>\n");
}
undef(@tmp);
undef(@tmpz);
@ -937,7 +937,7 @@ sub mysql_cgi {
if($title) {
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])};
undef(@tmp);

View File

@ -261,7 +261,7 @@ sub ntp_cgi {
if($title) {
push(@output, main::graph_header($title, 2));
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",
"--resolution=$tf->{res}",
@ -386,7 +386,7 @@ sub ntp_cgi {
push(@tmpz, "LINE2:ntp" . $e . "_jit#EE4444:Jitter");
if($title) {
push(@output, " <tr>\n");
push(@output, " <td bgcolor='" . $colors->{title_bg_color} . "'>\n");
push(@output, " <td>\n");
}
if(lc($config->{show_gaps}) eq "y") {
push(@tmp, "AREA:wrongdata_p#$colors->{gap}:");
@ -472,7 +472,7 @@ sub ntp_cgi {
if($title) {
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])};
undef(@tmp);

View File

@ -303,7 +303,7 @@ sub nut_cgi {
if($title) {
push(@output, main::graph_header($title, 2));
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",
"--resolution=$tf->{res}",
@ -436,7 +436,7 @@ sub nut_cgi {
@riglim = @{setup_riglim($rigid[0], $limit[0])};
if($title) {
push(@output, " <tr>\n");
push(@output, " <td valign='top' bgcolor='$colors->{title_bg_color}'>\n");
push(@output, " <td class='td-valign-top'>\n");
}
undef(@tmp);
undef(@tmpz);
@ -650,7 +650,7 @@ sub nut_cgi {
if($title) {
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])};

View File

@ -693,7 +693,7 @@ sub pagespeed_cgi {
if($title) {
push(@output, main::graph_header($title, 2));
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",
"--resolution=$tf->{res}",
@ -787,7 +787,7 @@ sub pagespeed_cgi {
@riglim = @{setup_riglim($rigid[0], $limit[0])};
if($title) {
push(@output, " <tr>\n");
push(@output, " <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
push(@output, " <td class='td-valign-top'>\n");
}
undef(@tmp);
undef(@tmpz);
@ -1183,7 +1183,7 @@ sub pagespeed_cgi {
}
if($title) {
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])};

View File

@ -253,7 +253,7 @@ sub phpapc_cgi {
if($title) {
push(@output, main::graph_header($title, 2));
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",
"--resolution=$tf->{res}",
@ -364,7 +364,7 @@ sub phpapc_cgi {
@riglim = @{setup_riglim($rigid[0], $limit[0])};
if($title) {
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n");
push(@output, " <td>\n");
}
undef(@tmp);
undef(@tmpz);
@ -475,7 +475,7 @@ sub phpapc_cgi {
if($title) {
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])};
undef(@tmp);

View File

@ -299,7 +299,7 @@ sub phpfpm_cgi {
if($title) {
push(@output, main::graph_header($title, 2));
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",
"--resolution=$tf->{res}",
@ -448,7 +448,7 @@ sub phpfpm_cgi {
if($title) {
push(@output, " <tr>\n");
push(@output, " <td bgcolor='" . $colors->{title_bg_color} . "'>\n");
push(@output, " <td>\n");
}
if(lc($config->{show_gaps}) eq "y") {
push(@tmp, "AREA:wrongdata#$colors->{gap}:");
@ -632,7 +632,7 @@ sub phpfpm_cgi {
if($title) {
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])};

View File

@ -386,7 +386,7 @@ sub redis_cgi {
if($title) {
push(@output, main::graph_header($title, 2));
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",
"--resolution=$tf->{res}",
@ -475,7 +475,7 @@ sub redis_cgi {
@riglim = @{setup_riglim($rigid[0], $limit[0])};
if($title) {
push(@output, " <tr>\n");
push(@output, " <td valign='top' bgcolor='$colors->{title_bg_color}'>\n");
push(@output, " <td class='td-valign-top'>\n");
}
my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
@ -701,7 +701,7 @@ sub redis_cgi {
if($title) {
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])};

View File

@ -287,7 +287,7 @@ sub tinyproxy_cgi {
if($title) {
push(@output, main::graph_header($title, 2));
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",
"--resolution=$tf->{res}",
@ -379,7 +379,7 @@ sub tinyproxy_cgi {
@riglim = @{setup_riglim($rigid[0], $limit[0])};
if($title) {
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n");
push(@output, " <td>\n");
}
undef(@tmp);
undef(@tmpz);
@ -469,7 +469,7 @@ sub tinyproxy_cgi {
if($title) {
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])};
undef(@tmp);

View File

@ -471,7 +471,7 @@ sub wowza_cgi {
if($title) {
push(@output, main::graph_header($title, 2));
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",
"--resolution=$tf->{res}",
@ -607,7 +607,7 @@ sub wowza_cgi {
if($title) {
push(@output, " <tr>\n");
push(@output, " <td bgcolor='" . $colors->{title_bg_color} . "'>\n");
push(@output, " <td>\n");
}
if(lc($config->{show_gaps}) eq "y") {
push(@tmp, "AREA:wrongdata#$colors->{gap}:");
@ -811,7 +811,7 @@ sub wowza_cgi {
if($title) {
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])};

View File

@ -450,7 +450,7 @@ sub zfs_cgi {
if($title) {
push(@output, main::graph_header($title, 2));
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",
"--resolution=$tf->{res}",
@ -552,7 +552,7 @@ sub zfs_cgi {
@riglim = @{setup_riglim($rigid[0], $limit[0])};
if($title) {
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}'>\n");
push(@output, " <td>\n");
}
push(@tmp, "LINE2:arcsize#44EE44:ARC size");
push(@tmp, "GPRINT:arcsize:LAST: Cur\\: %5.1lf%s");
@ -680,7 +680,7 @@ sub zfs_cgi {
if($title) {
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])};
undef(@tmp);
@ -870,7 +870,7 @@ sub zfs_cgi {
if($title) {
push(@output, " <tr>\n");
push(@output, " <td bgcolor='" . $colors->{title_bg_color} . "'>\n");
push(@output, " <td>\n");
}
@riglim = @{setup_riglim($rigid[$e + 3], $limit[$e + 3])};
undef(@tmp);
@ -1050,7 +1050,7 @@ sub zfs_cgi {
if($title) {
push(@output, " </td>\n");
push(@output, " <td bgcolor='" . $colors->{title_bg_color} . "'>\n");
push(@output, " <td>\n");
}
@riglim = @{setup_riglim($rigid[$e + 3], $limit[$e + 3])};
undef(@tmp);