|
|
| Author |
Message |
StarLog Cacti User
Joined: 02 Jun 2007 Posts: 128
|
Posted: Thu Feb 21, 2008 8:06 pm Post subject: Refresh rate of one map |
|
|
I have just one map, how is the refresh rate governed for updating the links.
If I have the cacti set to check each minute for the graphs, how can I make the single weathermap refresh every minute or minute and 10 seconds.?
Thanks |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 1906 Location: United Kingdom
|
Posted: Fri Feb 22, 2008 12:55 pm Post subject: |
|
|
It's set relative to the frequency of the poller cron job, in Cacti's Settings..Misc.
As far as I know, with 1-minute polling, you still only run the poller.php once every five minutes, so poller_bottom (which is the part of poller where weathermap runs) is only called once every five minutes. This means you can't update maps more frequently from the poller.
BUT, you *can* set the setting in misc to 'never', and run a map update whenever you like as a seperate cron job. You do this by running php weathermap-cacti-rebuild.php as a second job. Make sure to edit that file first to set the correct path to your cacti install.
Let me know how that works out for you, too, because I don't think many people use it  |
|
| Back to top |
|
 |
llow Cacti User
Joined: 05 Oct 2007 Posts: 88
|
Posted: Fri Feb 22, 2008 9:38 pm Post subject: |
|
|
With 1 minute polling you can run the cron at any cron interval. I personally run my polling every minute and cron every minute so that if there is a critical error I don't lose 5 minutes of data.
If you run your cron every minute but most of your graphs are polled at 5 minute intervals you will be running weathermap 5 times more often than required. (which I do at this time) |
|
| Back to top |
|
 |
StarLog Cacti User
Joined: 02 Jun 2007 Posts: 128
|
Posted: Fri Feb 22, 2008 9:58 pm Post subject: |
|
|
How,
So what are you gaining by running it five times more.?
Is the weathermap plugin, reporting accurate data for the map.?
I am more interested in the color of the host changing, to RED, if it is down.
That's why I am asking if this will work.
Can you share what your cron line looks like. |
|
| Back to top |
|
 |
totosh
Joined: 10 Mar 2008 Posts: 9
|
Posted: Wed Apr 16, 2008 11:52 am Post subject: |
|
|
i have an issue too, my poller runs every minute and most of my graphs as well. the map is rebuild every minute with poller cycle but only refreshes every five minutes (if i hit the refresh buton every minute after poller has run i get an updated map).
I've played a bit with the misc options but can't get it to refresh every 1 min. i could auto refresh the weathermap-cacti-plugin.php but i don't want the whole page to reload , just the map. any clue ? |
|
| Back to top |
|
 |
|