From 9a78407166a407fafc3eefc105f7871ad93bfdf6 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 21 Jul 2022 03:52:07 +0000 Subject: [PATCH 01/26] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index be43502..c28fbc7 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -11,7 +11,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 38%{?dist} +Release: 39%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -388,6 +388,9 @@ end %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Thu Jul 21 2022 Fedora Release Engineering - 3.7.2-39 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Thu Jan 20 2022 Fedora Release Engineering - 3.7.2-38 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild From 31762b54b340c0529bace759fca2d62d93a5d190 Mon Sep 17 00:00:00 2001 From: Terje Rosten Date: Thu, 12 Jan 2023 18:04:18 +0100 Subject: [PATCH 02/26] Fix various bugs --- ganglia.spec | 37 ++++++++++++++++++++++++++++++++----- 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/ganglia.spec b/ganglia.spec index c28fbc7..e9e961f 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -11,7 +11,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 39%{?dist} +Release: 40%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -29,7 +29,7 @@ Patch4: ganglia-web-5ee6b7.patch %if 0%{?systemd} BuildRequires: systemd %endif -%if 0%{?fedora} > 27 || 0%{?rhel} > 7 +%if 0%{?fedora} || 0%{?rhel} > 7 BuildRequires: rpcgen BuildRequires: libtirpc-devel BuildRequires: autoconf @@ -46,7 +46,9 @@ BuildRequires: libconfuse-devel BuildRequires: libmemcached-devel BuildRequires: libpng-devel BuildRequires: make +%if 0%{?fedora} < 38 || 0%{?rhel} BuildRequires: pcre-devel +%endif %{?py2:BuildRequires: python2-devel} BuildRequires: rrdtool-devel BuildRequires: rsync @@ -64,6 +66,9 @@ Requires: rrdtool Requires: php Requires: php-gd Requires: %{name}-gmetad = %{gangver}-%{release} +%if 0%{?fedora} || 0%{?rhel} > 7 +Requires: php-xml +%endif %description web This package provides a web frontend to display the XML tree published by ganglia, and to provide historical graphs of collected @@ -142,7 +147,7 @@ install -m 0644 %{SOURCE2} gmond/gmond.service.in install -m 0644 %{SOURCE3} gmetad/gmetad.service.in %patch1 -p0 %patch2 -p0 -%if 0%{?fedora} > 27 || 0%{?rhel} > 7 +%if 0%{?fedora} || 0%{?rhel} > 7 %patch3 -p1 %endif # web part @@ -155,7 +160,7 @@ popd %build touch Makefile.am -%if 0%{?fedora} > 27 || 0%{?rhel} > 7 +%if 0%{?fedora} || 0%{?rhel} > 7 aclocal -I m4 autoheader automake --add-missing --copy --foreign 2>/dev/null @@ -163,6 +168,18 @@ libtoolize --automake --copy automake --add-missing --copy --foreign autoconf -f || exit 1 %endif + +%if 0%{?fedora} > 36 +pushd libmetrics +aclocal -I m4 +autoheader +automake --add-missing --copy --foreign 2>/dev/null +libtoolize --automake --copy +automake --add-missing --copy --foreign +autoconf -f || exit 1 +popd +%endif + export CFLAGS="%{optflags} -fcommon" %configure \ --enable-setuid=ganglia \ @@ -171,6 +188,9 @@ export CFLAGS="%{optflags} -fcommon" --with-memcached \ --disable-static \ --enable-shared \ +%if 0%{?fedora} > 37 + --with-libpcre=no \ +%endif %if 0%{?py2} --with-python=%{__python2} \ %else @@ -231,7 +251,7 @@ ln -s ../../..%{_sysconfdir}/%{name}/conf.php \ popd ## httpd config -%if 0%{?fedora} >= 18 +%if 0%{?fedora} || 0%{?rhel} > 6 install -Dp -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf %else install -Dp -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf @@ -388,6 +408,13 @@ end %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Thu Jan 12 2023 Terje Rosten - 3.7.2-40 +- Fix implicit dep on php-xml (rhbz#2016302) +- Remove dep on pcre in Fedora 38+ (rhbz#2128294) +- RHEL7+ have httpd 2.4 too +- Simplify fedora conditionals +- Fix autoconf problem in libmetrics + * Thu Jul 21 2022 Fedora Release Engineering - 3.7.2-39 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 8c6c2dff0742969b5e5f7bacad52e75df43640c8 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 19 Jan 2023 04:07:37 +0000 Subject: [PATCH 03/26] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index e9e961f..5ee1d9d 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -11,7 +11,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 40%{?dist} +Release: 41%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -408,6 +408,9 @@ end %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Thu Jan 19 2023 Fedora Release Engineering - 3.7.2-41 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Thu Jan 12 2023 Terje Rosten - 3.7.2-40 - Fix implicit dep on php-xml (rhbz#2016302) - Remove dep on pcre in Fedora 38+ (rhbz#2128294) From fa7db9ef40325c6a0593cd807a72225cefbc17ec Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 19 Jul 2023 20:31:28 +0000 Subject: [PATCH 04/26] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index 5ee1d9d..75c5b21 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -11,7 +11,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 41%{?dist} +Release: 42%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -408,6 +408,9 @@ end %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Wed Jul 19 2023 Fedora Release Engineering - 3.7.2-42 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Thu Jan 19 2023 Fedora Release Engineering - 3.7.2-41 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From 559d39e862fef0bd712f0af8bb37b343045a4c8f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jan 2024 20:02:23 +0000 Subject: [PATCH 05/26] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index 75c5b21..b7fe77a 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -11,7 +11,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 42%{?dist} +Release: 43%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -408,6 +408,9 @@ end %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Fri Jan 19 2024 Fedora Release Engineering - 3.7.2-43 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Wed Jul 19 2023 Fedora Release Engineering - 3.7.2-42 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From 1dc62b1ef92624008dec0c07389531092e7fe12f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 24 Jan 2024 12:16:29 +0000 Subject: [PATCH 06/26] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index b7fe77a..c79f901 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -11,7 +11,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 43%{?dist} +Release: 44%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -408,6 +408,9 @@ end %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Wed Jan 24 2024 Fedora Release Engineering - 3.7.2-44 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Fri Jan 19 2024 Fedora Release Engineering - 3.7.2-43 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 8648f6c3070fab47f0313eff9ddf634f828e7022 Mon Sep 17 00:00:00 2001 From: Terje Rosten Date: Mon, 5 Feb 2024 19:57:00 +0100 Subject: [PATCH 07/26] Fix GCC 14 issue --- ganglia-3.7.2-gcc14-cast.patch | 11 +++++++++++ ganglia.spec | 7 ++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 ganglia-3.7.2-gcc14-cast.patch diff --git a/ganglia-3.7.2-gcc14-cast.patch b/ganglia-3.7.2-gcc14-cast.patch new file mode 100644 index 0000000..d7d1253 --- /dev/null +++ b/ganglia-3.7.2-gcc14-cast.patch @@ -0,0 +1,11 @@ +--- ganglia-3.7.2/gmond/gmond.c~ 2015-07-01 21:49:35.000000000 +0200 ++++ ganglia-3.7.2/gmond/gmond.c 2024-02-05 19:54:03.584404224 +0100 +@@ -2060,7 +2060,7 @@ + debug_msg("failed to allocate gzip stream"); + goto close_accept_socket; + } +- apr_status_t r = apr_socket_data_set(client, strm, GZIP_KEY, &zstream_destroy); ++ apr_status_t r = apr_socket_data_set(client, strm, GZIP_KEY, (int (*)(void *))&zstream_destroy); + if (r != APR_SUCCESS) + { + debug_msg("failed to set socket user data"); diff --git a/ganglia.spec b/ganglia.spec index c79f901..bcb739d 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -11,7 +11,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 44%{?dist} +Release: 45%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -26,6 +26,7 @@ Patch1: ganglia-3.7.2-apache.patch Patch2: ganglia-3.7.2-sflow.patch Patch3: ganglia-3.7.2-tirpc-hack.patch Patch4: ganglia-web-5ee6b7.patch +Patch5: ganglia-3.7.2-gcc14-cast.patch %if 0%{?systemd} BuildRequires: systemd %endif @@ -147,6 +148,7 @@ install -m 0644 %{SOURCE2} gmond/gmond.service.in install -m 0644 %{SOURCE3} gmetad/gmetad.service.in %patch1 -p0 %patch2 -p0 +%patch5 -p1 %if 0%{?fedora} || 0%{?rhel} > 7 %patch3 -p1 %endif @@ -408,6 +410,9 @@ end %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Mon Feb 05 2024 Terje Rosten - 3.7.2-45 +- Fix GCC 14 issue + * Wed Jan 24 2024 Fedora Release Engineering - 3.7.2-44 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From b17383b80bce15f4e9473d6de4a0243a25dc45d5 Mon Sep 17 00:00:00 2001 From: Terje Rosten Date: Sat, 24 Feb 2024 18:49:05 +0100 Subject: [PATCH 08/26] Upgrade to ganglia web 3.7.6 --- .gitignore | 1 + ganglia-3.7.2-gcc14-cast.patch | 22 ++++++++++++++++++++++ ganglia.spec | 9 +++++---- sources | 2 +- 4 files changed, 29 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index ab98e71..141d6e8 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ ganglia-3.1.7.tar.gz /ganglia-web-3.7.1.tar.gz /ganglia-web-3.7.2.tar.gz /ganglia-web-3.7.5.tar.gz +/ganglia-web-3.7.6.tar.gz diff --git a/ganglia-3.7.2-gcc14-cast.patch b/ganglia-3.7.2-gcc14-cast.patch index d7d1253..9cbac25 100644 --- a/ganglia-3.7.2-gcc14-cast.patch +++ b/ganglia-3.7.2-gcc14-cast.patch @@ -9,3 +9,25 @@ if (r != APR_SUCCESS) { debug_msg("failed to set socket user data"); +diff --git a/gmetad/rrd_helpers.c b/gmetad/rrd_helpers.c +index 740799a..3f39071 100644 +--- a/gmetad/rrd_helpers.c ++++ b/gmetad/rrd_helpers.c +@@ -199,7 +199,7 @@ reconnect: + static int + RRD_update( char *rrd, const char *sum, const char *num, unsigned int process_time ) + { +- char *argv[3]; ++ const char *argv[3]; + int argc = 3; + char val[128]; + +@@ -235,7 +235,7 @@ RRD_create( char *rrd, int summary, unsigned int step, + unsigned int process_time, ganglia_slope_t slope) + { + const char *data_source_type = "GAUGE"; +- char *argv[128]; ++ const char *argv[128]; + int argc=0; + int heartbeat; + char s[16], start[64]; diff --git a/ganglia.spec b/ganglia.spec index bcb739d..1e56614 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,5 +1,5 @@ %global gangver 3.7.2 -%global webver 3.7.5 +%global webver 3.7.6 %global systemd 1 %global _hardened_build 1 @@ -11,7 +11,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 45%{?dist} +Release: 46%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -25,7 +25,6 @@ Patch0: ganglia-web-3.7.2-path.patch Patch1: ganglia-3.7.2-apache.patch Patch2: ganglia-3.7.2-sflow.patch Patch3: ganglia-3.7.2-tirpc-hack.patch -Patch4: ganglia-web-5ee6b7.patch Patch5: ganglia-3.7.2-gcc14-cast.patch %if 0%{?systemd} BuildRequires: systemd @@ -157,7 +156,6 @@ install -m 0644 %{SOURCE3} gmetad/gmetad.service.in mv ganglia-web-%{webver} web pushd web %patch0 -p1 -%patch4 -p1 popd %build @@ -410,6 +408,9 @@ end %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Sat Feb 24 2024 Terje Rosten - 3.7.2-46 +- Upgrade to ganglia web 3.7.6 + * Mon Feb 05 2024 Terje Rosten - 3.7.2-45 - Fix GCC 14 issue diff --git a/sources b/sources index 12898fd..4bc88ef 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (ganglia-web-3.7.5.tar.gz) = 3df0c8dc51d411d29beb00bcd66d617115ad72a576bec25ce7e4e96ba9f2d7099daa1e6f738cfcc6cab60e9af72303e8af51eeaa2ade2fa219ac075106f2e521 SHA512 (ganglia-3.7.2.tar.gz) = a88955e59421a447e5752a9bfe5f599d989a7a5a0141141ab3601d1ab250be4eebbede8bcef8baa151b2f9deaf3f56e30aef8ea709f3cc820a79fa3d3961e0df +SHA512 (ganglia-web-3.7.6.tar.gz) = 6b84dfabfd37e4818c09824a64f4b7f8be30a21a7b4173df4562a4c42bf30115f1182489ab40b23193cc4ef2b15bd714e400203dabf45e6531068b5eb6c69f7d From 99c85226e855d9478675b5a06d982f9b9c7f8ec6 Mon Sep 17 00:00:00 2001 From: Terje Rosten Date: Sun, 3 Mar 2024 19:59:28 +0100 Subject: [PATCH 09/26] Add more PHP8 patches --- ganglia-web-3.7.6-pr-379.patch | 121 +++++++++++++++++++++++++++++++++ ganglia.spec | 7 +- 2 files changed, 127 insertions(+), 1 deletion(-) create mode 100644 ganglia-web-3.7.6-pr-379.patch diff --git a/ganglia-web-3.7.6-pr-379.patch b/ganglia-web-3.7.6-pr-379.patch new file mode 100644 index 0000000..e33404a --- /dev/null +++ b/ganglia-web-3.7.6-pr-379.patch @@ -0,0 +1,121 @@ +diff --git a/Makefile b/Makefile +index 6d2dd1b..a3ab48a 100644 +--- a/Makefile ++++ b/Makefile +@@ -30,7 +30,7 @@ PHPCBF = phpcbf + ########################################################## + + # Gweb version +-GWEB_VERSION = 3.7.5 ++GWEB_VERSION = 3.7.7 + + DIST_NAME = ganglia-web + DIST_DIR = $(DIST_NAME)-$(GWEB_VERSION) +diff --git a/cluster_view.php b/cluster_view.php +index 998ad65..fed4ed8 100644 +--- a/cluster_view.php ++++ b/cluster_view.php +@@ -372,7 +372,7 @@ function get_cluster_overview($showhosts, + $overview["cluster_load"] = join(", ", $cluster_load); + + $avg_cpu_num = find_avg($clustername, "", "cpu_num"); +- if ($avg_cpu_num == 0) ++ if ((float)$avg_cpu_num == 0) + $avg_cpu_num = 1; + $cluster_util = + sprintf("%.0f%%", +diff --git a/ganglia.php b/ganglia.php +index 262b88e..3d1b325 100644 +--- a/ganglia.php ++++ b/ganglia.php +@@ -350,7 +350,7 @@ function Gmetad () { + } + + if ($debug) print "
DEBUG: Creating parser\n"; +- if ( isset($context) && is_array($context) && isset($SKIP_GMETAD_CONTEXTS) && is_array($SKIP_GMETAD_CONTEXTS) && in_array($context, $SKIP_GMETAD_CONTEXTS) ) { ++ if ( is_array($SKIP_GMETAD_CONTEXTS) && in_array($context, $SKIP_GMETAD_CONTEXTS) ) { + return TRUE; + } + $parser = xml_parser_create(); +diff --git a/get_ganglia.php b/get_ganglia.php +index 50e5fe8..d9c4f2e 100644 +--- a/get_ganglia.php ++++ b/get_ganglia.php +@@ -7,7 +7,7 @@ + + # If we are in compare_hosts, views and decompose_graph context we shouldn't attempt + # any connections to the gmetad +-if (! in_array($context, $SKIP_GMETAD_CONTEXTS) ) { ++if (! ( is_array($SKIP_GMETAD_CONTEXTS) && in_array($context, $SKIP_GMETAD_CONTEXTS) ) ) { + if (! Gmetad($conf['ganglia_ip'], $conf['ganglia_port']) ) + { + print "

There was an error collecting ganglia data ". +diff --git a/graph.php b/graph.php +index e8a7a9c..bf34014 100644 +--- a/graph.php ++++ b/graph.php +@@ -1552,7 +1552,7 @@ if ($sourcetime) { + + // Fix from Phil Radden, but step is not always 15 anymore. + if ($range == "month") +- $rrdtool_graph['end'] = floor($rrdtool_graph['end'] / 672) * 672; ++ $rrdtool_graph['end'] = floor((int)$rrdtool_graph['end'] / 672) * 672; + + /////////////////////////////////////////////////////////////////////////////// + // Are we generating aggregate graphs +diff --git a/meta_view.php b/meta_view.php +index aa79e15..e6490af 100644 +--- a/meta_view.php ++++ b/meta_view.php +@@ -119,7 +119,7 @@ foreach ( $sorted_sources as $source => $val ) + + $clusname = $source == $self ? '' : $source; + $avg_cpu_num = find_avg($clusname, "", "cpu_num"); +- if ($avg_cpu_num == 0) $avg_cpu_num = 1; ++ if ((float)$avg_cpu_num == 0) $avg_cpu_num = 1; + $cluster_util = sprintf("%.0f", ((double) find_avg($clusname, "", "load_one") / $avg_cpu_num ) * 100); + + $sources[$source]["name"] = $name; +diff --git a/mobile_helper.php b/mobile_helper.php +index db45bb7..d9e20cb 100644 +--- a/mobile_helper.php ++++ b/mobile_helper.php +@@ -266,7 +266,7 @@ foreach ($metrics as $metric_name => $metric_attributes) { + } else if (isset($reports[$metric_name]) and $reports[$metric]) + continue; + else { +- $metric_graphargs = "c=".rawurlencode($clustername)."&h=".rawurlencode($hostname)."&v=".rawurlencode($metric_attributes[VAL]) ++ $metric_graphargs = "c=".rawurlencode($clustername)."&h=".rawurlencode($hostname)."&v=".rawurlencode($metric_attributes['VAL']) + ."&m=$metric_name&r=".rawurlencode($range)."&z=$size&jr=$jobrange" + ."&js=$jobstart&st=$cluster[LOCALTIME]"; + if ($cs) +diff --git a/pie.php b/pie.php +index 0e94bbe..24afad9 100644 +--- a/pie.php ++++ b/pie.php +@@ -276,7 +276,11 @@ $to = 0; + + $x; //PHPCS + $y; //PHPCS +- $pie_count = count( $angles ); ++ if is_null( $angles ) { ++ $pie_count = 0; ++ } else { ++ $pie_count = count( $angles ); ++ } + $PIE_THICKNESS = ($this->diameter * 0.075); + + for( $j = ($this->center_y+$PIE_THICKNESS); $j > $this->center_y; $j-- ) { +diff --git a/templates/default/footer.tpl b/templates/default/footer.tpl +index af9fb5e..548a8e4 100644 +--- a/templates/default/footer.tpl ++++ b/templates/default/footer.tpl +@@ -92,7 +92,7 @@ Loading view, please wait... +