Re: about poller_output and rrd_num

Gandalf <[email protected]>
Newsgroups gmane.network.cacti.user
Message-ID <[email protected]>
The purpose of poller_output is to cache the data returned by all targets for a
given polling interval.
Thus it gets filled when poller.php is run.

After a poller's run, the numbers must be transferred to the rrd files to be
stored permanantely. So you'll find some "rrdtool updates", fetching the data
from poller_output. When rrd files have been updated, it is necessary to delete
the related entries from poller_output as they already have been transferred to
rrd files.

As Cacti now supports different polling intervals, poller_output entries have
the unix_timestamp as a pointer to the interval where the data has been
recorded. This helps deleting the correct poller_outpüut entries for the related
poller interval

Reinhard

On 06.11.2012 14:55, 文正 赵 wrote:
> hi,all. i am using and reading source code on cacti-0.8.8a in windows xp,
> i trace and find poller_output in database is first have data then was deleted,
> so i enter into source code, i encountered to a problem, this occured in lib/poller.php,
> i find process have went into the 433 line,
> -----------------------------------------------
> if ($k > 0) {
>   db_execute("DELETE FROM poller_output WHERE local_data_id IN (" . implode(",", $data_ids) . ")");
>        }
> -----------------------------------------------
> so i find the 419 line ----------------
> if ($item["rrd_num"] <= sizeof($rrd_update_array{$item["rrd_path"]}["times"][$unix_time])) 
> ---------------------------------------
> is executed,this lead to delete sql occured, i test cacti in 2012-11-05,
>  and find rrd_num is always 1 and sizeof(...) is always 6,
> i have questions about this is 
> 1,What is the meaning of rrd_num?
> 2,What is the meaning of sizeof($rrd_update_array{$item["rrd_path"]}["times"][$unix_time]))?
> 3,how can i make  poller_output have data  and not be deleted?
> ------------------------------------------------------------------------------
> LogMeIn Central: Instant, anywhere, Remote PC access and management.
> Stay in control, update software, and manage PCs from one command center
> Diagnose problems and improve visibility into emerging IT issues
> Automate, monitor and manage. Do more in less time with Central
> http://p.sf.net/sfu/logmein12331_d2d
> _______________________________________________
> cacti-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cacti-user
> 

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
cacti-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cacti-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.