we have been installing realtime on cacti 0.8.8f, we made the permissions to the cache directory, and it seems fine but when we click on the realtime option in the graphs it only shows a broken image
any help?
well after hours many hours trying we found out what was happening.
in Apache7.x the command ereg() is not support so in the file/usr/share/cacti/site/plugins/realtime/graph_image_rt.php you have to change all what says ereg for preg_match() except for the ones in capital letters
in the file /usr/share/cacti/site/plugins/realtime/poller_rt.php there is a split command in the 90 line that have to be changed to explode
also in the file /usr/share/cacti/site/plugins/realtime/cmd_rt there is a split that should be changed to explode
[SOLVED]Realtime showing broken image on cacti 0.8.8f
Moderators: Developers, Moderators
Re: [SOLVED]Realtime showing broken image on cacti 0.8.8f
can you attach your files? I looked through my graph_image_rt.php and i don't have any ereg files?
also what version of realtime are you using?
also what version of realtime are you using?
Re: [SOLVED]Realtime showing broken image on cacti 0.8.8f
We're currently using Realtime v0.5
But now, once the cache directory is given with the permissions, Cacti Stops graphing and just shows NaN on the values
also, realtime get's realtime data, but doesn't graph
But now, once the cache directory is given with the permissions, Cacti Stops graphing and just shows NaN on the values
also, realtime get's realtime data, but doesn't graph
- Attachments
-
- Here's how it looks
- Error.png (162.83 KiB) Viewed 1871 times
-
- realtime.zip
- Here are the realtime files edited
- (14.76 KiB) Downloaded 134 times
Re: [SOLVED]Realtime showing broken image on cacti 0.8.8f
Sorry to dig this up but i was applying the changes you posted and had the same issue where i can see the numbers changing but the graph doesn't appear.
After looking through the apache error log i could see an error with line 252, 888 and 900 so I updated them as follows (changing the ^ at the beginning and the $ at the end for / ):
Line 252:
preg_match("/[0-9]+/",
Line 888:
preg_match("/(AREA|LINE[123]|STACK|HRULE|VRULE)/",
Line 900
preg_match("/(AREA|LINE[123])/",
Now the graph works as expected and there are no errors in the logs
Hope this helps someone
After looking through the apache error log i could see an error with line 252, 888 and 900 so I updated them as follows (changing the ^ at the beginning and the $ at the end for / ):
Line 252:
preg_match("/[0-9]+/",
Line 888:
preg_match("/(AREA|LINE[123]|STACK|HRULE|VRULE)/",
Line 900
preg_match("/(AREA|LINE[123])/",
Now the graph works as expected and there are no errors in the logs
Hope this helps someone
Who is online
Users browsing this forum: No registered users and 2 guests