[rrd-users] Re: mail scripts

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Thu Jun 21 21:50:57 MEST 2001


Wendy Faulkner wrote:

> The two I'm having problems figuring out how to do are both ones that will
> only get input once a day - total # of mail messages and total # of viruses
> stopped.  
> 
> Any suggestions as to the best way to do these?

I don't know if it is *the best* way of doing it but here's how I would
approach the problem:

1) To prevent problems with timezones, I'd use a step time of 3600.
   This allows for updates at midnight local time in stead of midnight
   UTC time.
2) To prevent problems with the updating, I'd use a heartbeat of
   172000.  This allows for an update to occur anywhere during the
   next day, upto but not including the next regular update.
3) I'd then count the number of messages and virusses somewhere after
   midnight, no hurry.  The update can be given to RRDtool as if it
   occured at midnight, just specify the correct timestamp.

If you encountered other problems, let us know and we'll probably can
help you with them; you need to be more specific about them if you want
us to help...

cheers,
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. | 
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

--
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