[rrd-users] change background for special timeperiods

Erik de Mare erik at oezie.org
Tue Jul 3 09:53:29 CEST 2007


for the nights it is:
CDEF:werk=LTIME,86400,%,28800,LT,INF,LTIME,86400,%,64800,GT,INF,UNKN,buiten,*,IF,IF
http://haas.oezie.org/rrd/temp/temperatuur-day.png

for the weekends:
CDEF:weekend=LTIME,604800,%,172800,GT,LTIME,604800,%,345600,LT,INF,UNKN,buiten,*,IF,UNKN,buiten,*,IF
AREA:weekend#FF00FF33
see: http://haas.oezie.org/rrd/temp/temp-month.png

Mvg,
Erik

On Mon, 02 Jul 2007 16:35:41 +0200, Markus Schmidberger <schmidb at ibe.med.uni-muenchen.de> wrote:
> Thanks a lot. I still have some more questions:
> 
> How can I highlight weekends: Friday 20:00 to Monday 6:00?
> 
> CDEF:werk colors the day times. We want to color the night. What do we
> have to change?
> 
> Thanks,
> Markus
> 
> Erik de Mare schrieb:
>> would be a little CDEF
>>
>> DEF:buiten=/root/rrd/temp/sensor0.rrd:C:AVERAGE
>>
> CDEF:werk=LTIME,86400,%,28800,GT,LTIME,86400,%,64800,LT,INF,UNKN,buiten,*,IF,UNKN,buiten,*,IF
>>
>> where 28800(8:00) is the seconds since 0:00 when to start, and
> 64800(18:00) is the seconds since 0:00 when to stop.
>> example graph: http://haas.oezie.org/rrd/temp/temperatuur-day.png
>>
>> Mvg,
>> Erik
>>
>> On Mon, 02 Jul 2007 12:27:39 +0200, Markus Schmidberger
> <schmidb at ibe.med.uni-muenchen.de> wrote:
>>
>>> Hello,
>>>
>>> we use Nagios with PNP / RRDtool and want to have different background
>>> colors for night- (8pm-6am) and day-time (6am-8pm).
>>> (and weekend)
>>>
>>> Can you help me, how to do this?
>>>
>>> Thanks
>>> Markus
>>>
>>> _______________________________________________
>>> rrd-users mailing list
>>> rrd-users at lists.oetiker.ch
>>> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>>>
>>
>>



More information about the rrd-users mailing list