Lots of broken images in Graphs tab

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
Guest

Lots of broken images in Graphs tab

Post by Guest »

I can see all of my graphs when in Graph managment and sometimes even in the Graphs tab (not console), but this morning I'm getting lots of broken images again. You can right click on them and click show picture and it reloads the graph the way it should be there. It's not that my rrdtool is broken or anything, it almost seems like my PHP is giving up early on generating stuff.

I thought I had my php tuned ok to prevent this, but alas it is still happening. I'm running IIS5 on Server 2000. PHP is running as a CGI, not ISAPI.

Guest login available here: http://stats.kjake.net to look for yourself.
jacobskp
Posts: 13
Joined: Mon Aug 09, 2004 8:51 am

Post by jacobskp »

This was really my post, but I think my session expired and just posted as Guest.

http://stats.kjake.net/graph_view.php?a ... leaf_id=12
melchandra
Cacti User
Posts: 311
Joined: Tue Jun 29, 2004 12:52 pm
Location: Indiana

Post by melchandra »

I kept clicking on the differant graphs and after about 2 minutes, all of them showed up on the main page. My guess is that PHP can not create the graphs fast enough since you have so many all on 1 page. I would advise either exporting these graphs, or creating sub-trees in your graph tree so you don't have quite so many graphs all on 1 page.
Dave
jacobskp
Posts: 13
Joined: Mon Aug 09, 2004 8:51 am

Post by jacobskp »

heh, look at that...it has problems writing the static pages too?

http://stats.kjake.net/graphs/

I used to use routers.cgi with RRDTool, but it was ugly and a pain to configure. This is the first I've seen PHP have a problem, but I didn't have this many graphs going before.

The webserver is a 1.5Ghz AthlonXP with 512MB of Registered ECC RAM. Is there something more I can do to tune PHP's performance? It really seems like it's the one having a problem...
jacobskp
Posts: 13
Joined: Mon Aug 09, 2004 8:51 am

Post by jacobskp »

This is interesting...it must have exported a couple times now and the same graphs are broken as the first time it exported the static pages/images.
Is this a sign that cacti is having an issue? And it's only the summary graphs. When you click through a graph to see a 5,30,mo,yr set, they're all there. Is there a known issue with generating summary graphs?
jacobskp
Posts: 13
Joined: Mon Aug 09, 2004 8:51 am

Post by jacobskp »

Ok, I'm dumb, all of the thumbs that aren't being created are from the built-in Traffic graph template.
jacobskp
Posts: 13
Joined: Mon Aug 09, 2004 8:51 am

Post by jacobskp »

Things have gone from bad to horrible. Now none of the thumbs are generating and I see this in the output of running cmd.php:

Code: Select all

export: running graph export
<font color=ff0000><br />
<b>Notice</b>:  Undefined variable:  regexps in <b>D:\public_html\stats\lib\rrd.php</b> on line <b>309</b><br /></font><font color=ff0000><br />
<b>Notice</b>:  Undefined variable:  fetch_array in <b>D:\public_html\stats\lib\rrd.php</b> on line <b>324</b><br /></font>
ERROR: start (1092026282) should be less than end (1092024000)
ERROR: start (1092026282) should be less than end (1092024000)
ERROR: start (1092026283) should be less than end (1092024000)
ERROR: start (1092026283) should be less than end (1092024000)
ERROR: step must be >= 1 second
ERROR: start (1092026283) should be less than end (1092024000)
ERROR: step must be >= 1 second
ERROR: start (1092026283) should be less than end (1092024000)
ERROR: step must be >= 1 second
ERROR: start (1092026284) should be less than end (1092024000)
ERROR: start (1092026284) should be less than end (1092024000)
ERROR: start (1092026284) should be less than end (1092024000)
ERROR: start (1092026284) should be less than end (1092024000)
ERROR: start (1092026285) should be less than end (1092024000)
ERROR: start (1092026285) should be less than end (1092024000)
ERROR: step must be >= 1 second
<font color=ff0000><br /><b>Notice</b>:  Undefined variable:  target in <b>D:\public_html\stats\lib\graph_variables.php</b> on line <b>51</b><br /></font>
<font color=ff0000><br /><b>Notice</b>:  Undefined variable:  target in <b>D:\public_html\stats\lib\graph_variables.php</b> on line <b>51</b><br /></font>
<font color=ff0000><br /><b>Notice</b>:  Undefined variable:  target in <b>D:\public_html\stats\lib\graph_variables.php</b> on line <b>54</b><br /></font>
<font color=ff0000><br /><b>Notice</b>:  Undefined index:  value in <b>D:\public_html\stats\lib\rrd.php</b> on line <b>750</b><br /></font>
<font color=ff0000><br /><b>Notice</b>:  Undefined variable:  regexps in <b>D:\public_html\stats\lib\rrd.php</b> on line <b>309</b><br /></font>
<font color=ff0000><br /><b>Notice</b>:  Undefined variable:  fetch_array in <b>D:\public_html\stats\lib\rrd.php</b> on line <b>324</b><br /></font>
<font color=ff0000><br /><b>Notice</b>:  Undefined variable:  target in <b>D:\public_html\stats\lib\graph_variables.php</b> on line <b>51</b><br /></font>
<font color=ff0000><br /><b>Notice</b>:  Undefined variable:  target in <b>D:\public_html\stats\lib\graph_variables.php</b> on line <b>51</b><br /></font>
<font color=ff0000><br /><b>Notice</b>:  Undefined variable:  target in <b>D:\public_html\stats\lib\graph_variables.php</b> on line <b>54</b><br /></font>
<font color=ff0000><br /><b>Notice</b>:  Undefined index:  value in <b>D:\public_html\stats\lib\rrd.php</b> on line <b>750</b><br /></font>
...
...
etc...
melchandra
Cacti User
Posts: 311
Joined: Tue Jun 29, 2004 12:52 pm
Location: Indiana

Post by melchandra »

uh... a thought just occured to me. Are you using cmd.php? Run it manually. Time it. Does it take longer than 5 minutes? If it does, switch to cactid.
Dave
Guest

Post by Guest »

I ran it manually as I did to get those error messages and timed it this time. It only took 30 seconds.
jacobskp
Posts: 13
Joined: Mon Aug 09, 2004 8:51 am

Post by jacobskp »

Sorry, forgot I wasn't logged in at home.

From my php_error_log:

Code: Select all

[09-Aug-2004 18:39:10] PHP Notice:  Undefined variable:  regexps in D:\public_html\stats\lib\rrd.php on line 309
[09-Aug-2004 18:39:10] PHP Notice:  Undefined variable:  fetch_array in D:\public_html\stats\lib\rrd.php on line 324
[09-Aug-2004 18:39:10] PHP Notice:  Undefined variable:  target in D:\public_html\stats\lib\graph_variables.php on line 51
[09-Aug-2004 18:39:10] PHP Notice:  Undefined variable:  target in D:\public_html\stats\lib\graph_variables.php on line 51
[09-Aug-2004 18:39:10] PHP Notice:  Undefined variable:  target in D:\public_html\stats\lib\graph_variables.php on line 54
[09-Aug-2004 18:39:10] PHP Notice:  Undefined index:  value in D:\public_html\stats\lib\rrd.php on line 750
[09-Aug-2004 18:39:13] PHP Notice:  Undefined variable:  regexps in D:\public_html\stats\lib\rrd.php on line 309
[09-Aug-2004 18:39:13] PHP Notice:  Undefined variable:  fetch_array in D:\public_html\stats\lib\rrd.php on line 324
[09-Aug-2004 18:39:13] PHP Notice:  Undefined variable:  target in D:\public_html\stats\lib\graph_variables.php on line 51
[09-Aug-2004 18:39:13] PHP Notice:  Undefined variable:  target in D:\public_html\stats\lib\graph_variables.php on line 51
[09-Aug-2004 18:39:13] PHP Notice:  Undefined variable:  target in D:\public_html\stats\lib\graph_variables.php on line 54
[09-Aug-2004 18:39:13] PHP Notice:  Undefined index:  value in D:\public_html\stats\lib\rrd.php on line 750
[09-Aug-2004 18:39:13] PHP Notice:  Undefined variable:  regexps in D:\public_html\stats\lib\rrd.php on line 309
[09-Aug-2004 18:39:13] PHP Notice:  Undefined variable:  fetch_array in D:\public_html\stats\lib\rrd.php on line 324
[09-Aug-2004 18:39:13] PHP Notice:  Undefined variable:  target in D:\public_html\stats\lib\graph_variables.php on line 51
[09-Aug-2004 18:39:13] PHP Notice:  Undefined variable:  target in D:\public_html\stats\lib\graph_variables.php on line 51
[09-Aug-2004 18:39:13] PHP Notice:  Undefined variable:  target in D:\public_html\stats\lib\graph_variables.php on line 54
[09-Aug-2004 18:39:13] PHP Notice:  Undefined index:  value in D:\public_html\stats\lib\rrd.php on line 750
[09-Aug-2004 18:39:14] PHP Notice:  Undefined variable:  regexps in D:\public_html\stats\lib\rrd.php on line 309
[09-Aug-2004 18:39:14] PHP Notice:  Undefined variable:  fetch_array in D:\public_html\stats\lib\rrd.php on line 324
[09-Aug-2004 18:39:14] PHP Notice:  Undefined variable:  target in D:\public_html\stats\lib\graph_variables.php on line 51
[09-Aug-2004 18:39:14] PHP Notice:  Undefined variable:  target in D:\public_html\stats\lib\graph_variables.php on line 51
[09-Aug-2004 18:39:14] PHP Notice:  Undefined variable:  target in D:\public_html\stats\lib\graph_variables.php on line 54
[09-Aug-2004 18:39:14] PHP Notice:  Undefined index:  value in D:\public_html\stats\lib\rrd.php on line 750
[09-Aug-2004 18:39:16] PHP Notice:  Undefined variable:  regexps in D:\public_html\stats\lib\rrd.php on line 309
[09-Aug-2004 18:39:16] PHP Notice:  Undefined variable:  fetch_array in D:\public_html\stats\lib\rrd.php on line 324
[09-Aug-2004 18:39:16] PHP Notice:  Undefined variable:  target in D:\public_html\stats\lib\graph_variables.php on line 51
[09-Aug-2004 18:39:16] PHP Notice:  Undefined variable:  target in D:\public_html\stats\lib\graph_variables.php on line 51
[09-Aug-2004 18:39:16] PHP Notice:  Undefined variable:  target in D:\public_html\stats\lib\graph_variables.php on line 54
[09-Aug-2004 18:39:16] PHP Notice:  Undefined index:  value in D:\public_html\stats\lib\rrd.php on line 750
[09-Aug-2004 18:39:22] PHP Notice:  Undefined variable:  regexps in D:\public_html\stats\lib\rrd.php on line 309
[09-Aug-2004 18:39:22] PHP Notice:  Undefined variable:  fetch_array in D:\public_html\stats\lib\rrd.php on line 324
[09-Aug-2004 18:39:22] PHP Notice:  Undefined variable:  regexps in D:\public_html\stats\lib\rrd.php on line 309
[09-Aug-2004 18:39:22] PHP Notice:  Undefined variable:  fetch_array in D:\public_html\stats\lib\rrd.php on line 324
[09-Aug-2004 18:39:23] PHP Notice:  Undefined variable:  regexps in D:\public_html\stats\lib\rrd.php on line 309
[09-Aug-2004 18:39:23] PHP Notice:  Undefined variable:  fetch_array in D:\public_html\stats\lib\rrd.php on line 324
[09-Aug-2004 18:39:23] PHP Notice:  Undefined variable:  regexps in D:\public_html\stats\lib\rrd.php on line 309
[09-Aug-2004 18:39:23] PHP Notice:  Undefined variable:  fetch_array in D:\public_html\stats\lib\rrd.php on line 324
[09-Aug-2004 18:39:23] PHP Notice:  Undefined variable:  regexps in D:\public_html\stats\lib\rrd.php on line 309
[09-Aug-2004 18:39:23] PHP Notice:  Undefined variable:  fetch_array in D:\public_html\stats\lib\rrd.php on line 324
[09-Aug-2004 18:39:23] PHP Notice:  Undefined variable:  target in D:\public_html\stats\lib\graph_variables.php on line 51
[09-Aug-2004 18:39:23] PHP Notice:  Undefined variable:  target in D:\public_html\stats\lib\graph_variables.php on line 51
[09-Aug-2004 18:39:23] PHP Notice:  Undefined variable:  target in D:\public_html\stats\lib\graph_variables.php on line 54
[09-Aug-2004 18:39:23] PHP Notice:  Undefined index:  value in D:\public_html\stats\lib\rrd.php on line 750
Looks like it's having a fit with Indexed Data Sources? That would be my Traffic - Bits/sec with 95th percentile I guess. I have one of those going for 5 devices.
jacobskp
Posts: 13
Joined: Mon Aug 09, 2004 8:51 am

Post by jacobskp »

Ok, things are working better now. The only graphs not working are the Traffic 95th Percentile ones. My bits and bytes with Total are generating a summary/preview image when doing the export.

Any idea why the preview export for the 95th percentile is broke?
jacobskp
Posts: 13
Joined: Mon Aug 09, 2004 8:51 am

Post by jacobskp »

Yay, bug fixed: http://www.raxnet.net/board/viewtopic.p ... percentile

Now to figure out if there is a way to organize the export index page b/c it's ugly...
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests