Custom Web Pages

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
Netcooler
Cacti User
Posts: 127
Joined: Thu Dec 24, 2009 9:08 am

Custom Web Pages

Post by Netcooler »

Hey all - I am looking to do some custom displays for graphs outside of the tree views that come with Cacti. Not the graphs themselves but how they are presented to my NOC techs. Like for example I am asked if I can display ingress | egress interfaces side by side and then do someother groupings

I am thinking that the Superlinks Plug-In is my baby but was curious to know if someone could push me in the right direction on how to imbed graphs into the custom page.

I would know what graphs I wanted to show but just need to know how to call them in an html file or one of the other files in the superlinks content samples.

If anyone has any suggestions that would be greatly appreciated. This would go a long way for the NOC techs in my env.
peecee
Cacti User
Posts: 146
Joined: Tue Feb 26, 2008 7:26 am

Post by peecee »

I'd say to start with, check out QuickTree.

http://forums.cacti.net/viewtopic.php?t ... torder=asc

If you're using Netcool and creating right clicks to maps within the web gui, a combination of this and weathermap should do you well.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

As long as whoever is viewing the custom page is logged into Cacti (and they would be of course if it's superlinks) you just need HTML image tags:

Code: Select all

<img src="/cacti/graph_image.php?action=view&local_graph_id=69&rra_id=1">
or

Code: Select all

<a href="/cacti/graph.php?action=view&rra_id=all&local_graph_id=69">
<img src="/cacti/graph_image.php?action=view&local_graph_id=69&rra_id=1"></a>
if you want it to be clickable. (where 69 is the graph id in both cases).
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Netcooler
Cacti User
Posts: 127
Joined: Thu Dec 24, 2009 9:08 am

Post by Netcooler »

Perfect all thanks! :D
Wavebourn
Posts: 4
Joined: Sat Nov 14, 2009 10:39 pm

Re: Custom Web Pages

Post by Wavebourn »

I installed Quick Tree on 8.8b, allowed it for Admin user, but don't see any changes: it supposed to add some icons right to the graphs?
tylerc
Posts: 24
Joined: Tue Aug 13, 2013 10:59 pm

Re: Custom Web Pages

Post by tylerc »

It should add a green "plus" sign next to your graph. You click it and it adds it to the QuickTree tab. Unfortunately, at least for me, QuickTree 0.2 is broken with Cacti 0.8.8b.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Custom Web Pages

Post by Howie »

I'll take a look in the next few days, when I get a moment. You should get a green + on the graph detail page (the one with the hourly, weekly, yearly graphs)
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
tylerc
Posts: 24
Joined: Tue Aug 13, 2013 10:59 pm

Re: Custom Web Pages

Post by tylerc »

Hey Howie.

I'd love to know if you found anything. The plus sign is there, but there are no graphs added on the QuickTree page.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest