No Graph Pictures

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

Moderators: Developers, Moderators

Post Reply
whsparrow
Posts: 10
Joined: Wed May 04, 2016 6:36 am

No Graph Pictures

Post by whsparrow »

Hey guys,

I'm struggling with Cacti (running with xampp):

My cacti is not showing the Graph Pictures. There are only dead links.
Anyway the rrdTool says ok:

Code: Select all

	RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--title='Localhost - Load Average' \
--rigid \
--base='1000' \
--height='120' \
--width='500' \
--alt-autoscale-max \
--lower-limit='0' \
--units-exponent='0' \
--vertical-label='processes in the run queue' \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a='/opt/lampp/htdocs/cacti/rra/localhost_load_1min_5.rrd':'load_1min':AVERAGE \
DEF:b='/opt/lampp/htdocs/cacti/rra/localhost_load_1min_5.rrd':'load_5min':AVERAGE \
DEF:c='/opt/lampp/htdocs/cacti/rra/localhost_load_1min_5.rrd':'load_15min':AVERAGE \
CDEF:cdefg='TIME,1464780325,GT,a,a,UN,0,a,IF,IF,TIME,1464780325,GT,b,b,UN,0,b,IF,IF,TIME,1464780325,GT,c,c,UN,0,c,IF,IF,+,+' \
AREA:a#EACC00FF:'1 Minute Average'  \
GPRINT:a:LAST:' Current\:%8.2lf\n'  \
AREA:b#EA8F00FF:'5 Minute Average':STACK \
GPRINT:b:LAST:' Current\:%8.2lf\n'  \
AREA:c#FF0000FF:'15 Minute Average':STACK \
GPRINT:c:LAST:'Current\:%8.2lf\n'  \
LINE1:cdefg#000000FF:'' 
RRDTool Says: OK
If I run the exact command on the server I get the png, but its not displaying the pictures in cacti.

Its the same issue as in http://forums.cacti.net/viewtopic.php?f=21&t=55991 i guess.

The rrd files are existing. Apache is running as root right now and the cactiuser (poller user) can access the rra folder.

Thank you in advance.

Regards
whsparrow
Posts: 10
Joined: Wed May 04, 2016 6:36 am

Re: No Graph Pictures

Post by whsparrow »

Hello,

Unfortunately I still cant display the graphs. There is still a dead link. I think it could be a permission problem, but i have no idea how to debug this.

The poll user "cactiuser" has full permission to the rra folder. The rrd files are owned by the cactiuser.

Has anyone an idea how to fix the problem?
emontejo
Posts: 4
Joined: Mon Mar 14, 2016 9:21 am

Re: No Graph Pictures

Post by emontejo »

Just wondering if its a browser issue: can you try an alternate browser just to rule that out(no pluggins)
can you screen shot the 'no image' icon that appears on the brower?

You can also try to display the image by itself. View the output html source and paste the link on a new page/tab.

If permissions, then it would show up in the apached logs (tail -f /var/log/apache2/access.log)
whsparrow
Posts: 10
Joined: Wed May 04, 2016 6:36 am

Re: No Graph Pictures

Post by whsparrow »

It looks like this:
Chrome:
Screenshot_20160620_134032.png
Screenshot_20160620_134032.png (21.79 KiB) Viewed 1569 times
Firefox:
Screenshot_20160620_134139.png
Screenshot_20160620_134139.png (19.39 KiB) Viewed 1569 times
The access.log says the following:

Code: Select all

134.102.92.62 - - [20/Jun/2016:13:39:48 +0200] "GET /cacti/graph_image.php?local_graph_id=1&rra_id=0&graph_height=120&graph_width=500&title_font_size=12&view_type=tree&graph_start=1466373202&graph_end=1466397739 HTTP/1.1" 200 16725
134.102.92.62 - - [20/Jun/2016:13:39:48 +0200] "GET /cacti/graph_image.php?local_graph_id=3&rra_id=0&graph_height=120&graph_width=500&title_font_size=12&view_type=tree&graph_start=1466373202&graph_end=1466397739 HTTP/1.1" 200 14301
134.102.92.62 - - [20/Jun/2016:13:39:48 +0200] "GET /cacti/graph_image.php?local_graph_id=2&rra_id=0&graph_height=120&graph_width=500&title_font_size=12&view_type=tree&graph_start=1466373202&graph_end=1466397739 HTTP/1.1" 200 17945
134.102.92.62 - - [20/Jun/2016:13:39:48 +0200] "GET /cacti/graph_image.php?local_graph_id=4&rra_id=0&graph_height=120&graph_width=500&title_font_size=12&view_type=tree&graph_start=1466373202&graph_end=1466397739 HTTP/1.1" 200 15134
134.102.92.62 - - [20/Jun/2016:13:41:48 +0200] "GET /cacti/graph_image.php?local_graph_id=1&rra_id=0&graph_height=120&graph_width=500&title_font_size=12&view_type=tree&graph_start=1466336377&graph_end=1466422777 HTTP/1.1" 200 18849
whsparrow
Posts: 10
Joined: Wed May 04, 2016 6:36 am

Re: No Graph Pictures

Post by whsparrow »

It looks like this:
Chrome:
Screenshot_20160620_134032.png
Firefox:
Screenshot_20160620_134139.png
The access.log says the following:

Code: Select all

134.102.92.62 - - [20/Jun/2016:13:39:48 +0200] "GET /cacti/graph_image.php?local_graph_id=1&rra_id=0&graph_height=120&graph_width=500&title_font_size=12&view_type=tree&graph_start=1466373202&graph_end=1466397739 HTTP/1.1" 200 16725
134.102.92.62 - - [20/Jun/2016:13:39:48 +0200] "GET /cacti/graph_image.php?local_graph_id=3&rra_id=0&graph_height=120&graph_width=500&title_font_size=12&view_type=tree&graph_start=1466373202&graph_end=1466397739 HTTP/1.1" 200 14301
134.102.92.62 - - [20/Jun/2016:13:39:48 +0200] "GET /cacti/graph_image.php?local_graph_id=2&rra_id=0&graph_height=120&graph_width=500&title_font_size=12&view_type=tree&graph_start=1466373202&graph_end=1466397739 HTTP/1.1" 200 17945
134.102.92.62 - - [20/Jun/2016:13:39:48 +0200] "GET /cacti/graph_image.php?local_graph_id=4&rra_id=0&graph_height=120&graph_width=500&title_font_size=12&view_type=tree&graph_start=1466373202&graph_end=1466397739 HTTP/1.1" 200 15134
134.102.92.62 - - [20/Jun/2016:13:41:48 +0200] "GET /cacti/graph_image.php?local_graph_id=1&rra_id=0&graph_height=120&graph_width=500&title_font_size=12&view_type=tree&graph_start=1466336377&graph_end=1466422777 HTTP/1.1" 200 18849
Dragondark
Posts: 2
Joined: Mon Jun 20, 2016 2:41 am

Re: No Graph Pictures

Post by Dragondark »

have you looking "error.log" from apache?
whsparrow
Posts: 10
Joined: Wed May 04, 2016 6:36 am

Re: No Graph Pictures

Post by whsparrow »

The access_log just says this :

Code: Select all

1**.1**.9*.0 - - [22/Jun/2016:09:10:21 +0200] "GET /cacti/graphs.php?action=graph_edit&id=2 HTTP/1.1" 200 19019
1**.1**.9*.0 - - [22/Jun/2016:09:10:21 +0200] "GET /cacti/include/main.css HTTP/1.1" 304 -
1**.1**.9*.0 - - [22/Jun/2016:09:10:21 +0200] "GET /cacti/include/js/jquery-ui.css HTTP/1.1" 304 -
1**.1**.9*.0 - - [22/Jun/2016:09:10:21 +0200] "GET /cacti/include/layout.js HTTP/1.1" 304 -
1**.1**.9*.0 - - [22/Jun/2016:09:10:21 +0200] "GET /cacti/include/js/jquery.js HTTP/1.1" 304 -
1**.1**.9*.0 - - [22/Jun/2016:09:10:21 +0200] "GET /cacti/include/js/jquery-ui.js HTTP/1.1" 304 -
1**.1**.9*.0 - - [22/Jun/2016:09:10:21 +0200] "GET /cacti/include/js/jquery.cookie.js HTTP/1.1" 304 -
1**.1**.9*.0 - - [22/Jun/2016:09:10:21 +0200] "GET /cacti/include/js/jstree.js HTTP/1.1" 304 -
1**.1**.9*.0 - - [22/Jun/2016:09:10:21 +0200] "GET /cacti/include/jscalendar/calendar.js HTTP/1.1" 304 -
1**.1**.9*.0 - - [22/Jun/2016:09:10:21 +0200] "GET /cacti/include/jscalendar/lang/calendar-en.js HTTP/1.1" 304 -
1**.1**.9*.0 - - [22/Jun/2016:09:10:21 +0200] "GET /cacti/include/jscalendar/calendar-setup.js HTTP/1.1" 304 -
1**.1**.9*.0 - - [22/Jun/2016:09:10:21 +0200] "GET /cacti/include/csrf/csrf-magic.js HTTP/1.1" 304 -
1**.1**.9*.0 - - [22/Jun/2016:09:10:21 +0200] "GET /cacti/images/cacti_logo.gif HTTP/1.1" 304 -
1**.1**.9*.0 - - [22/Jun/2016:09:10:21 +0200] "GET /cacti/images/tab_console_down.gif HTTP/1.1" 304 -
1**.1**.9*.0 - - [22/Jun/2016:09:10:21 +0200] "GET /cacti/images/tab_graphs.gif HTTP/1.1" 304 -
1**.1**.9*.0 - - [22/Jun/2016:09:10:21 +0200] "GET /cacti/graph_image.php?action=edit&local_graph_id=2&rra_id=1 HTTP/1.1" 200 28809
1**.1**.9*.0 - - [22/Jun/2016:09:10:22 +0200] "GET /cacti/images/left_border.gif HTTP/1.1" 304 -
1**.1**.9*.0 - - [22/Jun/2016:09:10:22 +0200] "GET /cacti/images/cacti_backdrop.gif HTTP/1.1" 304 -
1**.1**.9*.0 - - [22/Jun/2016:09:10:22 +0200] "GET /cacti/images/shadow_gray.gif HTTP/1.1" 304 -
1**.1**.9*.0 - - [22/Jun/2016:09:10:22 +0200] "GET /cacti/images/menu_line.gif HTTP/1.1" 304 -
1**.1**.9*.0 - - [22/Jun/2016:09:10:22 +0200] "GET /cacti/images/shadow.gif HTTP/1.1" 304 -
1**.1**.9*.0 - - [22/Jun/2016:09:10:22 +0200] "GET /cacti/graphs.php?action=graph_edit&id=2 HTTP/1.1" 200 19019
1**.1**.9*.0 - - [22/Jun/2016:09:10:22 +0200] "GET /favicon.ico HTTP/1.1" 200 30894
The error_log contains no errors.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests