RRDCreator::addDataSource

(PECL rrd >= 0.9.0) Adds data source definition for RRD database. public void RRDCreator::addDataSource ( string $description ) RRD can accept input from several data sources (DS), e.g incomming and outgoing traffic. This method adds data source by description. You need call this method for each data source. Parameters: description Definition of data source - DS. This

RRDCreator::addArchive

(PECL rrd >= 0.9.0) Adds RRA - archive of data values for each data source. public void RRDCreator::addArchive ( string $description ) Adds RRA definition by description of archive. Archive consists of a number of data values or statistics for each of the defined data-sources (DS). Data sources are defined by method RRDCreator::addDataSource(). You need call this method for each requested archive. Parame

rrdc_disconnect

(PECL rrd >= 1.1.2) Close any outstanding connection to rrd caching daemon void rrdc_disconnect ( void ) Close any outstanding connection to rrd caching daemon. This function is automatically called when the whole PHP process is terminated. It depends on used SAPI. For example, it's called automatically at the end of command line script. It's up user whether he wants to call this function at the end of every request

rrd_xport

(PECL rrd >= 0.9.0) Exports the information about RRD database. array rrd_xport ( array $options ) Exports the information about RRD database file. This data can be converted to XML file via user space PHP script and then restored back as RRD database file. Parameters: options Array of options for the export, see rrd xport man page. Returns: A

rrd_version

(PECL rrd >= 1.0.0) Gets information about underlying rrdtool library string rrd_version ( void ) Returns information about underlying rrdtool library. Returns: String with rrdtool version number e.g. "1.4.3".

rrd_update

(PECL rrd >= 0.9.0) Updates the RRD database. bool rrd_update ( string $filename, array $options ) Updates the RRD database file. The input data is time interpolated according to the properties of the RRD database file. Parameters: filename RRD database file name. This database will be updated. options Options for updating the RRD da

rrd_tune

(PECL rrd >= 0.9.0) Tunes some RRD database file header options. bool rrd_tune ( string $filename, array $options ) Change some options in the RRD dabase header file. E.g. renames the source for the data etc. Parameters: filename RRD database file name. options Options with RRD database file properties which will be changed. See rrd

rrd_restore

(PECL rrd >= 0.9.0) Restores the RRD file from XML dump. bool rrd_restore ( string $xml_file, string $rrd_file [, array $options ] ) Restores the RRD file from the XML dump. Parameters: xml_file XML filename with the dump of the original RRD database file. rrd_file Restored RRD database file name. options

rrd_lastupdate

(PECL rrd >= 0.9.0) Gets information about last updated data. array rrd_lastupdate ( string $filename ) Gets array of the UNIX timestamp and the values stored for each date in the most recent update of the RRD database file. Parameters: file RRD database file name. Returns: Array of information about last update, FALSE when error occurs.

rrd_last

(PECL rrd >= 0.9.0) Gets unix timestamp of the last sample. int rrd_last ( string $filename ) Returns the UNIX timestamp of the most recent update of the RRD database. Parameters: filename RRD database file name. Returns: Integer as unix timestamp of the most recent data from the RRD database.