[SOLVED]Realtime showing broken image on cacti 0.8.8f

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
DavidHJ98
Posts: 2
Joined: Thu Oct 20, 2016 8:56 pm

[SOLVED]Realtime showing broken image on cacti 0.8.8f

Post by DavidHJ98 »

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
villieb
Cacti User
Posts: 75
Joined: Fri Nov 09, 2012 5:14 am

Re: [SOLVED]Realtime showing broken image on cacti 0.8.8f

Post by villieb »

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?
DavidHJ98
Posts: 2
Joined: Thu Oct 20, 2016 8:56 pm

Re: [SOLVED]Realtime showing broken image on cacti 0.8.8f

Post by DavidHJ98 »

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
Attachments
Here's how it looks
Here's how it looks
Error.png (162.83 KiB) Viewed 1868 times
realtime.zip
Here are the realtime files edited
(14.76 KiB) Downloaded 133 times
oraclesod
Posts: 1
Joined: Wed Jul 19, 2017 12:00 am

Re: [SOLVED]Realtime showing broken image on cacti 0.8.8f

Post by oraclesod »

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
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests