|
|
| Author |
Message |
txprog
Joined: 02 Apr 2008 Posts: 4
|
Posted: Wed Apr 02, 2008 11:24 am Post subject: "Realtime" patch for cacti 0.8.7a |
|
|
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: | | patch -p1 < cacti-0.8.7a-realtime.diff |
3/ Insert SQL to your database
| Code: | | mysql -u cacti cacti < cacti_rt.sql |
4/ Make sure that rra directory can be written by www-data (or another web user)
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.
| Description: |
|
| Filesize: |
92.03 KB |
| Viewed: |
3358 Time(s) |

|
| Description: |
| Realtime patch for 0.8.7a |
|
 Download |
| Filename: |
cacti-0.8.7a-realtime.diff.txt |
| Filesize: |
60.67 KB |
| Downloaded: |
175 Time(s) |
Last edited by txprog on Thu Apr 03, 2008 4:03 am; edited 3 times in total |
|
| Back to top |
|
 |
jofficer
Joined: 04 Feb 2008 Posts: 33
|
Posted: Wed Apr 02, 2008 1:10 pm Post subject: |
|
|
Just for reference I didn't see the cati_rt.sql file attached.
Looks really slick though, good work.
|
|
| Back to top |
|
 |
txprog
Joined: 02 Apr 2008 Posts: 4
|
Posted: Wed Apr 02, 2008 3:45 pm Post subject: |
|
|
All the files are in the patch.
Just apply the patch on 0.8.7a version, and you will have cacti_rt.sql file !
|
|
| Back to top |
|
 |
jofficer
Joined: 04 Feb 2008 Posts: 33
|
Posted: Wed Apr 02, 2008 3:47 pm Post subject: |
|
|
| My mistake, thankyou for clearing that up
|
|
| Back to top |
|
 |
|