Change the Default Refresh Time on my plugin ?

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
ogou
Posts: 17
Joined: Mon Feb 13, 2006 10:36 am
Location: Paris / France

Change the Default Refresh Time on my plugin ?

Post by ogou »

Hi all,

I'd like to change the default refresh time for my plugin.

I've take a look at the config_settings Hooks but I don't understand how it works ...
I've see the "page_refresh" params but ...

I'd like to change the setting to 60 sec for example.

The HTML CODE :
<html>
<head>
<title>cacti</title>
<meta http-equiv=refresh content='300'; url='realtime_graph.php'>
<link href="/cacti/include/main.css" rel="stylesheet">


thanks all
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Look at the plugin MacTrack. It has a utilities section that set's up the refresh. The variable $refresh is an array. It has two components. The first is:

$refresh["seconds"] = ??

and I can't remember the second.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest