[smokeping-users] Date Issue

37asma at niit.edu.pk 37asma at niit.edu.pk
Wed Jun 14 12:54:03 MEST 2006


Hi,

Hope you still remeber me. I wanted to display PingER data using
Smokeping. I have been able to convert the PingER data into the format
acceptable by Smokeping. I have a small problem.

Here is a chunk of the converted data. It is the .html format that I later
'restore' to get the .rrd file so that it can be plot using Smokeping:

<!-- Round Robin Database Dump -->
<rrd>
	<version> 0003 </version>
	<step> 1800 </step> <!-- Seconds -->
	<lastupdate> 1101082499 </lastupdate> <!-- 2004/11/22 00:14:59 GMT -->
 ........................................................................
<!-- 2004/11/12 00:16:00 GMT / 1100218560 --> <row><v> NaN </v><v> 0
</v><v> 0.168  </v><v> 0.165 </v><v> 0.166 </v><v> 0.166 </v><v> 0.166
</v><v> 0.167 </v><v> 0.169 </v><v> 0.170 </v><v> 0.171 </v><v> 0.188
</v><v> 0.188
 </v></row>

<!-- 2004/11/12 00:46:00 GMT / 1100220360 --> <row><v> NaN </v><v> 0
</v><v> 0.1695  </v><v> 0.162 </v><v> 0.165 </v><v> 0.169 </v><v> 0.169
</v><v> 0.169
 </v><v> 0.170 </v><v> 0.171 </v><v> 0.174 </v><v> 0.176 </v><v> 0.199
</v></row>

When I restore the .html to get .rrd (and then dump back to .html) the
date is changed. GMT is converted into Pakistan time (local time) i.e PKT
and all the minutes are rounded to nearest half an hour (i.e
<xx>:30:<xx>):

<!-- Round Robin Database Dump -->
<rrd>
	<version> 0003 </version>
	<step> 1800 </step> <!-- Seconds -->
	<lastupdate> 1101082499 </lastupdate> <!-- 2004-11-22 05:14:59 PKT -->
.........................................................................
<!-- 2004-11-12 05:30:00 PKT / 1100219400 --> <row><v> NaN </v><v>
0.0000000000e+00 </v><v> 1.6800000000e-01 </v><v> 1.6500000000e-01 </v><v>
1.6600000000e-01 </v><v> 1.6600000000e-01 </v><v> 1.6600000000e-01 </v><v>
1.6700000000e-01 </v><v> 1.6900000000e-01 </v><v> 1.7000000000e-01 </v><v>
1.7100000000e-01 </v><v> 1.8800000000e-01 </v><v> 1.8800000000e-01
</v></row>

			<!-- 2004-11-12 06:00:00 PKT / 1100221200 --> <row><v> NaN </v><v>
0.0000000000e+00 </v><v> 1.6950000000e-01 </v><v> 1.6200000000e-01
</v><v> 1.6500000000e-01 </v><v> 1.6900000000e-01 </v><v>
1.6900000000e-01 </v><v> 1.6900000000e-01 </v><v> 1.7000000000e-01
</v><v> 1.7100000000e-01 </v><v> 1.7400000000e-01 </v><v>
1.7600000000e-01 </v><v> 1.9900000000e-01 </v></row>
.........................................................................

I am careful to always keep the 'lastupdate' greater than the timestamp on
the last record in my html file.

My question: How can I keep the date same (i.e GMT) even when I restore my
.html file.

Another question:

How can I change Smokepings TimeZone so that I can plot data according to
GMT time (or GMT time + some hours) and not Local time.

thanz in advance Tobi. You have already helped me alot.

asma



-- 
This message has been scanned for viruses and
dangerous content by NIIT MailScanner, and is
believed to be clean.

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



More information about the smokeping-users mailing list