SuperLinks - Force Auto Refresh

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
scruboy01
Cacti User
Posts: 74
Joined: Tue Apr 05, 2005 11:33 am
Location: Grand Rapids, MI, US

SuperLinks - Force Auto Refresh

Post by scruboy01 »

Does anyone know of a way to auto-refresh a superlinks page? I have a few pages set up as links in the console menu and would like to have them auto-fresh every 5 minutes. I've tried to do this with a some script in the HTML, but it doesn't seem to work.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: SuperLinks - Force Auto Refresh

Post by Howie »

Which type of page is it? A page fragment, or a URL to somewhere else?
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!)
scruboy01
Cacti User
Posts: 74
Joined: Tue Apr 05, 2005 11:33 am
Location: Grand Rapids, MI, US

Re: SuperLinks - Force Auto Refresh

Post by scruboy01 »

Right now it is an iframe referencing a netflow graph generated based on the URL. That can change as long as I still get the graph (cgi page).
Nice
Posts: 30
Joined: Mon Sep 20, 2010 9:23 am
Location: Lede, Belgium

Re: SuperLinks - Force Auto Refresh

Post by Nice »

What code did you use?

With this code it should work.

<header><meta http-equiv="refresh" content="1;URL=refer to the same page"></header>

The '1' is the number of second you want to wait before refreshing

At the variable URL you put the name of your file.
scruboy01
Cacti User
Posts: 74
Joined: Tue Apr 05, 2005 11:33 am
Location: Grand Rapids, MI, US

Re: SuperLinks - Force Auto Refresh

Post by scruboy01 »

Will this work even though there are supposed to be no HEAD or BODY tags?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: SuperLinks - Force Auto Refresh

Post by Howie »

<header> isn't a valid HTML tag

Even with <head>, that would wait one second and load the other page, once.

Really you need to get the refresh header into the remote page.
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!)
scruboy01
Cacti User
Posts: 74
Joined: Tue Apr 05, 2005 11:33 am
Location: Grand Rapids, MI, US

Re: SuperLinks - Force Auto Refresh

Post by scruboy01 »

I actually found a commented out variable in the superlinks.php page.

$refresh['seconds']

I uncommented it and set it to 120. That seems to work.


Howie - Would it be possible to have this be a variable that can be set on a per-page basis?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests