"Realtime" patch for cacti 0.8.7a

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

Post Reply
txprog
Posts: 4
Joined: Wed Apr 02, 2008 11:05 am

"Realtime" patch for cacti 0.8.7a

Post by txprog »


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
3/ Insert SQL to your database

Code: Select all

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.
Attachments
cacti-0.8.7a-realtime.diff.txt
Realtime patch for 0.8.7a
(60.67 KiB) Downloaded 940 times
A view of realtime patch
A view of realtime patch
cacti-0.8.7a-realtime.png (92.03 KiB) Viewed 10968 times
Last edited by txprog on Thu Apr 03, 2008 4:03 am, edited 3 times in total.
jofficer
Posts: 35
Joined: Mon Feb 04, 2008 9:16 am

Post by jofficer »

Just for reference I didn't see the cati_rt.sql file attached.

Looks really slick though, good work.
txprog
Posts: 4
Joined: Wed Apr 02, 2008 11:05 am

Post by txprog »

All the files are in the patch.
Just apply the patch on 0.8.7a version, and you will have cacti_rt.sql file !
jofficer
Posts: 35
Joined: Mon Feb 04, 2008 9:16 am

Post by jofficer »

My mistake, thankyou for clearing that up
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests