New Graphs - php bug or what?

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
temoon
Posts: 4
Joined: Thu Feb 28, 2008 5:36 am
Contact:

New Graphs - php bug or what?

Post by temoon »

Hi!

When I create new graphs, I can see this picture. And no way to fil this custom data, but hands graph by graph...

Ahh, yeah, I am using 0.8.7b.
Attachments
new_graphs_bug.png
new_graphs_bug.png (28.6 KiB) Viewed 1540 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

weird.

What os, web server, versions of everything?

Anything else broken in cacti?
temoon
Posts: 4
Joined: Thu Feb 28, 2008 5:36 am
Contact:

Post by temoon »

root@***:/local/cacti# apache2 -V
Server version: Apache/2.2.4 (Ubuntu)
Server built: Oct 5 2007 00:32:08
Server's Module Magic Number: 20051115:5
Server loaded: APR 1.2.7, APR-Util 1.2.7
Compiled using: APR 1.2.7, APR-Util 1.2.7
Architecture: 64-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT=""
-D SUEXEC_BIN="/usr/lib/apache2/suexec"
-D DEFAULT_PIDLOG="/var/run/apache2.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="/var/run/apache2/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
-D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"
root@***:/local/cacti# php --version
PHP 5.2.3-1ubuntu6.2 (cli) (built: Dec 3 2007 19:59:42)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
root@***:/local/cacti# uname -a
Linux *** 2.6.22-14-server #1 SMP Sun Oct 14 22:09:15 GMT 2007 x86_64 GNU/Linux

temoon@***:~$ firefox --version
Mozilla Firefox 2.0.0.12, Copyright (c) 1998 - 2008 mozilla.org

Anything else, maybe I forget?

No more global errors in my cacti, except of some database trouble, what I wrote about here: http://forums.cacti.net/viewtopic.php?t=26080
temoon
Posts: 4
Joined: Thu Feb 28, 2008 5:36 am
Contact:

Post by temoon »

Ha-ha! I do that! ;) A "bug" in each() function of PHP.

If you use global arrays, always remember about counter in each(). I just add reset($array) in end of while in this functions:
draw_nontemplated_fields_graph()
draw_nontemplated_fields_data_source()

Like that:
while(list($a, $b) = each($array)) {
...
}

reset($array);

Enjoy! :)
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please post a bug report at http://bugs.cacti.net. Please attach a patch file and include all the information from this post that is relevant.

Regards,

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

What should probably be change from a while loop to a foreach loop.. :)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests