[rrd-users] Graphs shifted back in time

Michel Blanc mblanc at erasme.org
Thu Mar 7 00:46:38 MET 2002


Dear All,

I searched the list but didn't find any related subject; in advance,
sorry if I missed it.

I have a proble when I graph data. The x axis is shifter back in time by
six hours.
The data plotted is correct, but the values for noon, for instance,
appear at 6AM.

The data in the database has correct timestamp, correct timezone, and
the machine has a correc date.

As a side question, I don't get why I have to double the data in the
graph to get correct values, like in
CDEF:cRecipient=Recipient,3600,*,2,* (my step is 3600, I make 1 ABSOLUTE
measurement per hour, and have AVERAGE RRAs).

Here are some clues :

[#] rrdtool fetch SMTP\:\:Rejects_mail1.erasme.org.rrd AVERAGE -s -3600 
              Attachement     Recipient         Relay       
Header         Virus  Unclassified

1015452000: 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00
0.0000000000e+00 0.0000000000e+00 0.0000000000e+00
1015455600: 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00
0.0000000000e+00 1.3715422333e-04 0.0000000000e+00
1015459200: nan nan nan nan nan nan
[#] wt 1015455600
Thu Mar  7 00:00:00 2002

(the last data showed on the graph dates 6pm)


#!./rrdcgi

<HTML>
<HEAD><TITLE>Mail server stats</TITLE></HEAD>
<BODY BGCOLOR="white">
                        
<CENTER><H1>Mail rejected by server</H1></CENTER>

<H2>Rejected last day</H2>
<RRD::GRAPH
	gifs/SMTP_Rejects_1d.gif
	--imginfo '<IMG SRC=gifs/%s WIDTH=%lu HEIGHT=%lu >'
	--lazy --start -1d --end now --vertical-label "messages"
	DEF:Recipient="/var/lib/rrdtool/SMTP.rrd":Recipient:AVERAGE 
	DEF:Attachement="/var/lib/rrdtool/SMTP.rrd":Attachement:AVERAGE 
	DEF:Relay="/var/lib/rrdtool/SMTP.rrd":Relay:AVERAGE 
	DEF:Header="/var/lib/rrdtool/SMTP.rrd":Header:AVERAGE 
	DEF:Virus="/var/lib/rrdtool/SMTP.rrd":Virus:AVERAGE 
	DEF:Unclassified="/var/lib/rrdtool/SMTP.rrd":Unclassified:AVERAGE 

	CDEF:cRecipient=Recipient,3600,*,2,*
	CDEF:cAttachement=Attachement,3600,*,2,*
	CDEF:cRelay=Relay,3600,*,2,*
	CDEF:cHeader=Header,3600,*,2,*
	CDEF:cVirus=Virus,3600,*,2,*
	CDEF:cUnclassified=Unclassified,3600,*,2,*

	AREA:cRecipient#0000DD:"Unk recipient" 
	STACK:cAttachement#DD0000:"Rejected attachements" 
	STACK:cRelay#DD00DD:"Relaying denied" 
	STACK:cHeader#00DDDD:"Rejected by header rules" 
	STACK:cVirus#FF9000:"Infected by virus" 
	STACK:cUnclassified#DDDD00:"Rejected for unknown reason"
>
</BODY></HTML>


Thanks in advance !

Michel.
-- 
Michel Blanc
Systèmes/Réseaux Erasme
Erasme/CG69/Saint Clément les Places/FR69930
T 0474706840/noc at erasme.org

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