Your message dated Fri, 30 Dec 2011 19:32:23 +0000
with message-id <[email protected]>
and subject line Bug#563955: fixed in cacti 0.8.7i-1
has caused the Debian Bug report #563955,
regarding cacti: Undefined index: local_data_id in graphs_new.php on line 202
(v0.8.7e)
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
563955: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=563955
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: cacti
Version: 0.8.7e-1.1
Severity: normal
Tags: patch
Hi,
I'm receiving this error message every time I'm creating a graph from
a custom template that does not create any new RRDs:
| Notice: Undefined index: local_data_id in
| /usr/share/cacti/site/graphs_new.php on line 202
|
| Warning: Invalid argument supplied for foreach() in
| /usr/share/cacti/site/graphs_new.php on line 202
|
| Warning: Cannot modify header information - headers already sent by
| (output started at /usr/share/cacti/site/graphs_new.php:202) in
| /usr/share/cacti/site/graphs_new.php on line 330
For more information look at this discussion from cacti-user:
http://sourceforge.net/mailarchive/forum.php?thread_name=796aed870912151256ne81ef85ocbc3cdf055685...@mail.gmail.com&forum_name=cacti-user
The attached patch fixed the problem. Please include it in the next release.
Thanks
-- System Information:
Debian Release: 5.0.3
APT prefers stable
APT policy: (990, 'stable'), (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages cacti depends on:
ii apache2 2.2.9-10+lenny6 Apache HTTP Server metapackage
ii apache2-mpm-prefor 2.2.9-10+lenny6 Apache HTTP Server - traditional n
ii dbconfig-common 1.8.39 common framework for packaging dat
ii debconf [debconf-2 1.5.24 Debian configuration management sy
ii libapache2-mod-php 5.2.6.dfsg.1-1+lenny4 server-side, HTML-embedded scripti
ii libphp-adodb 5.05-1 The ADOdb database abstraction lay
ii mysql-client-5.0 [ 5.0.51a-24+lenny2 MySQL database client binaries
ii php5 5.2.6.dfsg.1-1+lenny4 server-side, HTML-embedded scripti
ii php5-cli 5.2.6.dfsg.1-1+lenny4 command-line interpreter for the p
ii php5-mysql 5.2.6.dfsg.1-1+lenny4 MySQL module for php5
ii php5-snmp 5.2.6.dfsg.1-1+lenny4 SNMP module for php5
ii rrdtool 1.3.1-4 Time-series data storage and displ
ii snmp 5.4.1~dfsg-12 SNMP (Simple Network Management Pr
ii ucf 3.0016 Update Configuration File: preserv
Versions of packages cacti recommends:
ii iputils-ping 3:20071127-1 Tools to test the reachability of
ii logrotate 3.7.1-5 Log rotation utility
ii mysql-server 5.0.51a-24+lenny2 MySQL database server (metapackage
ii mysql-server-5.0 [mysq 5.0.51a-24+lenny2 MySQL database server binaries
Versions of packages cacti suggests:
pn php5-ldap <none> (no description available)
-- debconf information:
cacti/db/app-user: cacti
cacti/mysql/admin-user: root
cacti/upgrade-backup: true
cacti/install-error: abort
* cacti/webserver: None
cacti/internal/reconfiguring: false
cacti/mysql/method: unix socket
cacti/remote/host:
cacti/upgrade-error: abort
cacti/dbconfig-upgrade: true
cacti/internal/skip-preseed: true
cacti/remote/newhost:
cacti/purge: false
cacti/passwords-do-not-match:
cacti/dbconfig-remove:
* cacti/dbconfig-install: true
cacti/missing-db-package-error: abort
cacti/database-type: mysql
cacti/remove-error: abort
cacti/db/dbname: cacti
cacti/remote/port:
cacti/dbconfig-reinstall: false
--- graphs_new.php_0.8.7e-1 2009-06-28 19:07:11.000000000 +0300
+++ graphs_new.php 2009-12-19 00:26:00.000000000 +0200
@@ -199,8 +199,10 @@
debug_log_insert("new_graphs", "Created graph: " . get_graph_title($return_array["local_graph_id"]));
/* lastly push host-specific information to our data sources */
- foreach($return_array["local_data_id"] as $item) {
- push_out_host($_POST["host_id"], $item);
+ if (!empty($return_array["local_data_id"])) {
+ foreach($return_array["local_data_id"] as $item) {
+ push_out_host($_POST["host_id"], $item);
+ }
}
}elseif ($current_form_type == "sg") {
while (list($snmp_index, $true) = each($snmp_index_array)) {
@@ -211,8 +213,10 @@
debug_log_insert("new_graphs", "Created graph: " . get_graph_title($return_array["local_graph_id"]));
/* lastly push host-specific information to our data sources */
- foreach($return_array["local_data_id"] as $item) {
- push_out_host($_POST["host_id"], $item);
+ if (!empty($return_array["local_data_id"])) {
+ foreach($return_array["local_data_id"] as $item) {
+ push_out_host($_POST["host_id"], $item);
+ }
}
}
}
--- End Message ---
--- Begin Message ---
Source: cacti
Source-Version: 0.8.7i-1
We believe that the bug you reported is fixed in the latest version of
cacti, which is due to be installed in the Debian FTP archive:
cacti_0.8.7i-1.debian.tar.gz
to main/c/cacti/cacti_0.8.7i-1.debian.tar.gz
cacti_0.8.7i-1.dsc
to main/c/cacti/cacti_0.8.7i-1.dsc
cacti_0.8.7i-1_all.deb
to main/c/cacti/cacti_0.8.7i-1_all.deb
cacti_0.8.7i.orig.tar.gz
to main/c/cacti/cacti_0.8.7i.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Mahyuddin Susanto <[email protected]> (supplier of updated cacti package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Fri, 30 Dec 2011 16:47:42 +0700
Source: cacti
Binary: cacti
Architecture: source all
Version: 0.8.7i-1
Distribution: unstable
Urgency: low
Maintainer: Cacti Maintainer <[email protected]>
Changed-By: Mahyuddin Susanto <[email protected]>
Description:
cacti - Frontend to rrdtool for monitoring systems and services
Closes: 561488 563955 604395 604396 613857 616320 642971
Changes:
cacti (0.8.7i-1) unstable; urgency=low
.
* New upstream release. (Closes: #642971)
- Fix Ping query. (Closes: #616320, #561488)
* debian/control:
- Bump Standard-Version to 3.9.2, no source changes.
- Change Maintainer to pkg-cacti. (Closes: #613857)
- Add Sean and myself as uploaders.
- Change Vcs-* to pkg-cacti.
* debian/copyright: Rewriting as per dep5 format.
* debian/source: Added to mentioning quilt patch system.
* debian/README.source: Deleted, not needed anymore
* debian/patches/09_use-utf8.patch: Use UTF-8 while creating database and
producing RRD, Thanks to Slavko <[email protected]>. (Closes: #604395)
* Refreshed pathces:
- debian/patches/01_config.php.patch
- debian/patches/05_no-adodb.patch
- debian/patches/06_config_settings.php_cactid_path.patch
- debian/patches/07_cli-include-path.patch (Closes: #604396)
- debian/patches/08_563955_local_data_id.patch (Closes: #563955)
* Drop patches apllied upstream:
- 606062_ping.pl.patch
- data_source_deactivate.patch
- graph_list_view.patch
- html_output.patch
- ldap_group_authenication.patch
- ping.patch
- poller_interval.patch
- script_server_command_line_parse.patch
* Add Lighttpd support:
- debian/docs: updated
- debian/cacti.lighttpd.conf: added
- debian/cacti.{postinst|postrm|templates}: updated
Checksums-Sha1:
523bd8dcc57ac053c4859c5f209c5567b226cf5c 1267 cacti_0.8.7i-1.dsc
a3fd64b8ced45be95b9cf6154a31038d575baa02 2250128 cacti_0.8.7i.orig.tar.gz
af6d976a29cfb50070895b5c8ae911f5a73481a9 40958 cacti_0.8.7i-1.debian.tar.gz
1c7a2c6d14b2ff53dfec14cf52e79a0a371bba10 2114988 cacti_0.8.7i-1_all.deb
Checksums-Sha256:
ba41a3fa6de44ba77935d41c25518d3f4762f390116f0cac1f1567a2c7e23dbc 1267
cacti_0.8.7i-1.dsc
89846762b8f4586532ff247ec7331958f5e4a8c3c599ff8aceb53815fbf9d1cb 2250128
cacti_0.8.7i.orig.tar.gz
bdaf535cad1c2a2ea923e40f7be0ebba923727a1b95308431e44aecd79fad5a7 40958
cacti_0.8.7i-1.debian.tar.gz
1a868348516f4e1229df71ab1937f6fced6bc371c166050a08baf73a0e819ee1 2114988
cacti_0.8.7i-1_all.deb
Files:
733d4c0b47b70228415e9388588abf72 1267 web extra cacti_0.8.7i-1.dsc
07fd1da6b0ac4912410df3aa4e451a4b 2250128 web extra cacti_0.8.7i.orig.tar.gz
d85f965695d9a88d6cbd9feda2ce2fe6 40958 web extra cacti_0.8.7i-1.debian.tar.gz
a43dd0ed7a5f42e1f67f50d8112b9083 2114988 web extra cacti_0.8.7i-1_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iEYEARECAAYFAk7+DmQACgkQ5UTeB5t8Mo2fNACfTRxJQAQ8S2zGwjjRYs/iAQVn
8HcAoKd/TOAZwXKOak8Ja9bB9SNyuRku
=8oNz
-----END PGP SIGNATURE-----
--- End Message ---