From 624c34459d988cd30c1c95a450d63a35c83f2849 Mon Sep 17 00:00:00 2001 From: Andreas Bachlechner <62039342+bachandi@users.noreply.github.com> Date: Thu, 24 Feb 2022 10:10:01 +0100 Subject: [PATCH] Use the css style instead of title_fg_color and title_bg_color. --- lib/amdgpu.pm | 7 +++---- lib/apache.pm | 7 +++---- lib/apcupsd.pm | 7 +++---- lib/bind.pm | 7 +++---- lib/chrony.pm | 7 +++---- lib/disk.pm | 7 +++---- lib/icecast.pm | 7 +++---- lib/lighttpd.pm | 7 +++---- lib/memcached.pm | 7 +++---- lib/mongodb.pm | 7 +++---- lib/mysql.pm | 7 +++---- lib/ntp.pm | 7 +++---- lib/nut.pm | 7 +++---- lib/nvidiagpu.pm | 7 +++---- lib/nvme.pm | 7 +++---- lib/pagespeed.pm | 7 +++---- lib/pgsql.pm | 14 ++++++-------- lib/phpapc.pm | 7 +++---- lib/phpfpm.pm | 7 +++---- lib/redis.pm | 7 +++---- lib/tinyproxy.pm | 7 +++---- lib/traffacct.pm | 12 ++++-------- lib/wowza.pm | 7 +++---- 23 files changed, 73 insertions(+), 100 deletions(-) diff --git a/lib/amdgpu.pm b/lib/amdgpu.pm index f2abc44..ef25d7a 100644 --- a/lib/amdgpu.pm +++ b/lib/amdgpu.pm @@ -748,11 +748,10 @@ sub amdgpu_cgi { if($amdgpu->{desc}->{$k}) { push(@output, " \n"); - push(@output, " \n"); - push(@output, " \n"); + push(@output, " \n"); push(@output, " \n"); - push(@output, "   $amdgpu->{desc}->{$k}\n"); - push(@output, " \n"); + push(@output, "   $amdgpu->{desc}->{$k}\n"); + push(@output, " \n"); push(@output, " \n"); push(@output, " \n"); } diff --git a/lib/apache.pm b/lib/apache.pm index 61aa8d4..4017bcc 100644 --- a/lib/apache.pm +++ b/lib/apache.pm @@ -1458,11 +1458,10 @@ sub apache_cgi { push(@output, " \n"); push(@output, " \n"); - push(@output, " \n"); - push(@output, " \n"); + push(@output, " \n"); push(@output, " \n"); - push(@output, "   $url\n"); - push(@output, " \n"); + push(@output, "   $url\n"); + push(@output, " \n"); push(@output, " \n"); push(@output, " \n"); push(@output, main::graph_footer()); diff --git a/lib/apcupsd.pm b/lib/apcupsd.pm index 53dfdc2..c8f4449 100644 --- a/lib/apcupsd.pm +++ b/lib/apcupsd.pm @@ -1031,11 +1031,10 @@ sub apcupsd_cgi { push(@output, " \n"); push(@output, " \n"); - push(@output, " \n"); - push(@output, " \n"); + push(@output, " \n"); push(@output, " \n"); - push(@output, "   " . trim($url) . "\n"); - push(@output, " \n"); + push(@output, "   " . trim($url) . "\n"); + push(@output, " \n"); push(@output, " \n"); push(@output, " \n"); push(@output, main::graph_footer()); diff --git a/lib/bind.pm b/lib/bind.pm index 02f0847..8a81203 100644 --- a/lib/bind.pm +++ b/lib/bind.pm @@ -1651,11 +1651,10 @@ sub bind_cgi { push(@output, " \n"); push(@output, " \n"); - push(@output, " \n"); - push(@output, " \n"); + push(@output, " \n"); push(@output, " \n"); - push(@output, "   $l\n"); - push(@output, " \n"); + push(@output, "   $l\n"); + push(@output, " \n"); push(@output, " \n"); push(@output, " \n"); push(@output, main::graph_footer()); diff --git a/lib/chrony.pm b/lib/chrony.pm index 28e9f3c..fd9fb28 100644 --- a/lib/chrony.pm +++ b/lib/chrony.pm @@ -931,11 +931,10 @@ sub chrony_cgi { push(@output, " \n"); push(@output, " \n"); - push(@output, " \n"); - push(@output, " \n"); + push(@output, " \n"); push(@output, " \n"); - push(@output, "   " . trim($url) . "\n"); - push(@output, " \n"); + push(@output, "   " . trim($url) . "\n"); + push(@output, " \n"); push(@output, " \n"); push(@output, " \n"); push(@output, main::graph_footer()); diff --git a/lib/disk.pm b/lib/disk.pm index 16c92c0..ca3e6e1 100644 --- a/lib/disk.pm +++ b/lib/disk.pm @@ -933,11 +933,10 @@ sub disk_cgi { if($disk->{desc}->{$k}) { push(@output, " \n"); - push(@output, " \n"); - push(@output, " \n"); + push(@output, " \n"); push(@output, " \n"); - push(@output, "   $disk->{desc}->{$k}\n"); - push(@output, " \n"); + push(@output, "   $disk->{desc}->{$k}\n"); + push(@output, " \n"); push(@output, " \n"); push(@output, " \n"); } diff --git a/lib/icecast.pm b/lib/icecast.pm index 4f9c385..8be4bf1 100644 --- a/lib/icecast.pm +++ b/lib/icecast.pm @@ -631,11 +631,10 @@ sub icecast_cgi { push(@output, " \n"); push(@output, " \n"); - push(@output, " \n"); - push(@output, " \n"); + push(@output, " \n"); push(@output, " \n"); - push(@output, "   $url\n"); - push(@output, " \n"); + push(@output, "   $url\n"); + push(@output, " \n"); push(@output, " \n"); push(@output, " \n"); push(@output, main::graph_footer()); diff --git a/lib/lighttpd.pm b/lib/lighttpd.pm index 531c0e2..3ae0c68 100644 --- a/lib/lighttpd.pm +++ b/lib/lighttpd.pm @@ -639,11 +639,10 @@ sub lighttpd_cgi { push(@output, " \n"); push(@output, " \n"); - push(@output, " \n"); - push(@output, " \n"); + push(@output, " \n"); push(@output, " \n"); - push(@output, "   " . trim($url) . "\n"); - push(@output, " \n"); + push(@output, "   " . trim($url) . "\n"); + push(@output, " \n"); push(@output, " \n"); push(@output, " \n"); push(@output, main::graph_footer()); diff --git a/lib/memcached.pm b/lib/memcached.pm index f699e5c..c1c0c84 100644 --- a/lib/memcached.pm +++ b/lib/memcached.pm @@ -1320,11 +1320,10 @@ sub memcached_cgi { push(@output, " \n"); push(@output, " \n"); - push(@output, " \n"); - push(@output, " \n"); + push(@output, " \n"); push(@output, " \n"); - push(@output, "   " . trim($url) . "\n"); - push(@output, " \n"); + push(@output, "   " . trim($url) . "\n"); + push(@output, " \n"); push(@output, " \n"); push(@output, " \n"); push(@output, main::graph_footer()); diff --git a/lib/mongodb.pm b/lib/mongodb.pm index e8c5181..40cee72 100644 --- a/lib/mongodb.pm +++ b/lib/mongodb.pm @@ -1390,11 +1390,10 @@ sub mongodb_cgi { if($title) { push(@output, " \n"); - push(@output, " \n"); - push(@output, " \n"); + push(@output, " \n"); push(@output, " \n"); - push(@output, "   $mongo\n"); - push(@output, " \n"); + push(@output, "   $mongo\n"); + push(@output, " \n"); push(@output, " \n"); push(@output, " \n"); diff --git a/lib/mysql.pm b/lib/mysql.pm index f8f5669..e8fdca0 100644 --- a/lib/mysql.pm +++ b/lib/mysql.pm @@ -1343,11 +1343,10 @@ sub mysql_cgi { push(@output, " \n"); push(@output, " \n"); - push(@output, " \n"); - push(@output, " \n"); + push(@output, " \n"); push(@output, " \n"); - push(@output, "   $uri\n"); - push(@output, " \n"); + push(@output, "   $uri\n"); + push(@output, " \n"); push(@output, " \n"); push(@output, " \n"); push(@output, main::graph_footer()); diff --git a/lib/ntp.pm b/lib/ntp.pm index fe67d84..88031a9 100644 --- a/lib/ntp.pm +++ b/lib/ntp.pm @@ -669,11 +669,10 @@ sub ntp_cgi { push(@output, " \n"); push(@output, " \n"); - push(@output, " \n"); - push(@output, " \n"); + push(@output, " \n"); push(@output, " \n"); - push(@output, "   $host\n"); - push(@output, " \n"); + push(@output, "   $host\n"); + push(@output, " \n"); push(@output, " \n"); push(@output, " \n"); push(@output, main::graph_footer()); diff --git a/lib/nut.pm b/lib/nut.pm index e7f36d7..bec1856 100644 --- a/lib/nut.pm +++ b/lib/nut.pm @@ -1023,11 +1023,10 @@ sub nut_cgi { push(@output, " \n"); push(@output, " \n"); - push(@output, " \n"); - push(@output, " \n"); + push(@output, " \n"); push(@output, " \n"); - push(@output, "   " . trim($ups) . "\n"); - push(@output, " \n"); + push(@output, "   " . trim($ups) . "\n"); + push(@output, " \n"); push(@output, " \n"); push(@output, " \n"); push(@output, main::graph_footer()); diff --git a/lib/nvidiagpu.pm b/lib/nvidiagpu.pm index 918abf6..79f1ab2 100644 --- a/lib/nvidiagpu.pm +++ b/lib/nvidiagpu.pm @@ -701,11 +701,10 @@ sub nvidiagpu_cgi { if($nvidiagpu->{desc}->{$k}) { push(@output, " \n"); - push(@output, " \n"); - push(@output, " \n"); + push(@output, " \n"); push(@output, " \n"); - push(@output, "   $nvidiagpu->{desc}->{$k}\n"); - push(@output, " \n"); + push(@output, "   $nvidiagpu->{desc}->{$k}\n"); + push(@output, " \n"); push(@output, " \n"); push(@output, " \n"); } diff --git a/lib/nvme.pm b/lib/nvme.pm index 19f145e..015d5fc 100644 --- a/lib/nvme.pm +++ b/lib/nvme.pm @@ -780,11 +780,10 @@ sub nvme_cgi { if($nvme->{desc}->{$k}) { push(@output, " \n"); - push(@output, " \n"); - push(@output, " \n"); + push(@output, " \n"); push(@output, " \n"); - push(@output, "   $nvme->{desc}->{$k}\n"); - push(@output, " \n"); + push(@output, "   $nvme->{desc}->{$k}\n"); + push(@output, " \n"); push(@output, " \n"); push(@output, " \n"); } diff --git a/lib/pagespeed.pm b/lib/pagespeed.pm index 7765e77..27d3f39 100644 --- a/lib/pagespeed.pm +++ b/lib/pagespeed.pm @@ -1666,11 +1666,10 @@ sub pagespeed_cgi { push(@output, " \n"); push(@output, " \n"); - push(@output, " \n"); - push(@output, " \n"); + push(@output, " \n"); push(@output, " \n"); - push(@output, "   $l\n"); - push(@output, " \n"); + push(@output, "   $l\n"); + push(@output, " \n"); push(@output, " \n"); push(@output, " \n"); push(@output, main::graph_footer()); diff --git a/lib/pgsql.pm b/lib/pgsql.pm index 7991726..89414c0 100644 --- a/lib/pgsql.pm +++ b/lib/pgsql.pm @@ -1467,11 +1467,10 @@ sub pgsql_cgi { push(@output, " \n"); push(@output, " \n"); - push(@output, " \n"); push(@output, " \n"); @@ -1993,11 +1992,10 @@ sub pgsql_cgi { push(@output, " \n"); push(@output, " \n"); - push(@output, " \n"); push(@output, " \n"); push(@output, main::graph_footer()); diff --git a/lib/phpapc.pm b/lib/phpapc.pm index 8bf3538..e489e1e 100644 --- a/lib/phpapc.pm +++ b/lib/phpapc.pm @@ -666,11 +666,10 @@ sub phpapc_cgi { push(@output, " \n"); push(@output, " \n"); - push(@output, " \n"); push(@output, " \n"); push(@output, main::graph_footer()); diff --git a/lib/phpfpm.pm b/lib/phpfpm.pm index 5dc987d..226fb65 100644 --- a/lib/phpfpm.pm +++ b/lib/phpfpm.pm @@ -1046,11 +1046,10 @@ sub phpfpm_cgi { push(@output, " \n"); push(@output, " \n"); - push(@output, " \n"); push(@output, " \n"); push(@output, main::graph_footer()); diff --git a/lib/redis.pm b/lib/redis.pm index b472434..a58a816 100644 --- a/lib/redis.pm +++ b/lib/redis.pm @@ -1112,11 +1112,10 @@ sub redis_cgi { push(@output, " \n"); push(@output, " \n"); - push(@output, " \n"); push(@output, " \n"); push(@output, main::graph_footer()); diff --git a/lib/tinyproxy.pm b/lib/tinyproxy.pm index 67f3024..f0aef6d 100644 --- a/lib/tinyproxy.pm +++ b/lib/tinyproxy.pm @@ -667,11 +667,10 @@ sub tinyproxy_cgi { if(lc($tinyproxy->{show_url}) eq "y") { push(@output, " \n"); - push(@output, " \n"); push(@output, " \n"); } diff --git a/lib/traffacct.pm b/lib/traffacct.pm index b58dec3..5161b70 100644 --- a/lib/traffacct.pm +++ b/lib/traffacct.pm @@ -572,10 +572,8 @@ sub traffacct_cgi { if($cgi->{val} eq "all") { print("
\n"); - push(@output, " \n"); + push(@output, " \n"); push(@output, " \n"); - push(@output, "   '$str' database statistics\n"); - push(@output, " \n"); + push(@output, "   '$str' database statistics\n"); + push(@output, " \n"); push(@output, "
\n"); - push(@output, " \n"); + push(@output, " \n"); push(@output, " \n"); - push(@output, "   $pg\n"); - push(@output, " \n"); + push(@output, "   $pg\n"); + push(@output, " \n"); push(@output, "
\n"); - push(@output, " \n"); + push(@output, " \n"); push(@output, " \n"); - push(@output, "   " . trim($url) . "\n"); - push(@output, " \n"); + push(@output, "   " . trim($url) . "\n"); + push(@output, " \n"); push(@output, "
\n"); - push(@output, " \n"); + push(@output, " \n"); push(@output, " \n"); - push(@output, "   $phpfpm->{group}->{$pfg}\n"); - push(@output, " \n"); + push(@output, "   $phpfpm->{group}->{$pfg}\n"); + push(@output, " \n"); push(@output, "
\n"); - push(@output, " \n"); + push(@output, " \n"); push(@output, " \n"); - push(@output, "   " . trim($url) . "\n"); - push(@output, " \n"); + push(@output, "   " . trim($url) . "\n"); + push(@output, " \n"); push(@output, "
\n"); - push(@output, " \n"); + push(@output, " \n"); push(@output, " \n"); - push(@output, "   " . trim($url) . "\n"); - push(@output, " \n"); + push(@output, "   " . trim($url) . "\n"); + push(@output, " \n"); push(@output, "
\n"); print(" \n"); - print(" \n"); print(" \n"); $n = 0; @@ -686,10 +684,8 @@ sub traffacct_cgi { if(!$silent) { print("
\n"); - print(" \n"); - print("   Network traffic\n"); - print(" \n"); + print(" \n"); + print("   Network traffic\n"); print("
\n"); print(" \n"); - print(" \n"); print(" \n"); print(" \n"); diff --git a/lib/wowza.pm b/lib/wowza.pm index 739ea44..8b8380e 100644 --- a/lib/wowza.pm +++ b/lib/wowza.pm @@ -1114,11 +1114,10 @@ sub wowza_cgi { push(@output, " \n"); push(@output, " \n"); - push(@output, " \n"); push(@output, " \n"); push(@output, main::graph_footer());
\n"); - print(" \n"); - print("   Network traffic\n"); - print(" \n"); + print(" \n"); + print("   Network traffic\n"); print("
\n"); - push(@output, " \n"); + push(@output, " \n"); push(@output, " \n"); - push(@output, "   $url\n"); - push(@output, " \n"); + push(@output, "   $url\n"); + push(@output, " \n"); push(@output, "