[rrd-users] Re: rrdtool to provide persistence for service checks (Netsaint/Nagios..)

crtrepan at ca.ibm.com crtrepan at ca.ibm.com
Wed Aug 14 12:32:23 MEST 2002



> What failed to work for me was to 'round' the update time up to the
> 'nearest' step and use that in the update; a dump of the RRD showed that
> the PDPs were all 0s !
>
>($t  = time() ;
 >$t += STEP_SIZE/2 ;
 >$t -= $t % STEP_SIZE ;
 >RRDs::update RRD, "$t:$v1:$v2..." ;
>)

try this:
$t = time();
$t = (int($t / STEP_SIZE)) * STEP_SIZE;

Works for me....

Claude R Trépanier
Support de l'infrastructure du réseau
IBM Bromont
crtrepan at ca.ibm.com



--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list