This patch is deprecated. Use the Realtime plugin instead :
http://forums.cacti.net/viewtopic.php?p=131534
Hi cacti community !
I've a customer that want a "realtime functionnality" in cacti, like Dashboard (another graph tool), but they allocated me only one day to do this.
So, i known it's not the best solution, but it work.
Patch include :
- cacti_rt.sql : a new sql table for realtime (based on poller_output table)
- poller_rt.php : a poller only that launch and analyse result from cmd_rt.php
- cmd_rt.php : a command script that do the same job as cmd.php, but only for data source affected by current selected graph, and save it in a seperated rra.
- graph_image_rt.php : script that launch poller_rt and generate image.
- graph_popup_rt.php : page to show realtime image with selection of interval.
- some change in lib/ to add new button in ui.
How to use it ?
1/ Download the patch (use the link bottom)
2/ Apply the patch :
Code: Select all
patch -p1 < cacti-0.8.7a-realtime.diff
Code: Select all
mysql -u cacti cacti < cacti_rt.sql
FAQ
1/ I've some blank in my graph with snmp value !
It's normal. Some module on snmpd cache hard data, to prevent flooding. As exemple, IF traffic is updated only each 10s. If you try a smaller interval, graph will have blank.
That's all !
I hope he can help someone else,
Mathieu.