Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Change the Default Refresh Time on my plugin ?

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin General
Author Message
ogou



Joined: 13 Feb 2006
Posts: 17
Location: Paris / France

PostPosted: Thu Feb 01, 2007 3:35 am    Post subject: Change the Default Refresh Time on my plugin ? Reply with quote

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
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9723
Location: MI, USA

PostPosted: Thu Feb 01, 2007 6:46 am    Post subject: Reply with quote

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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin General All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group