Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running an RRD dump from Citrix XenServer and I'm parsing the XML for import into another system. I know that within the element there is a element which is a timestamp, but when I parse the integer into a Time sometimes it is in the future. Is RRD interpolating what the values will be?

Here's an example of the XML:

share|improve this question
up vote 0 down vote accepted

RRDtool interpolate submitted data to fit its time steps. RRDtool is specifically designed to store values consolidated over various timescales.

share|improve this answer

According to the post by saxon at the page referenced below, which should be authoritative since it appears to be from the site admin for JRobin, the timestamp represents the start of the interval.

I've noticed, however, that Citrix will report incomplete intervals; that is, if you calculate the end of the interval (t + step), it will generally be in the future for the final entry (which comes first in the list for some reason). But comparing the values to the output of

date +%s

I never see values for the start/end/t tags which are in the future.

Is it possible that the clocks on the XenServer host and the host where you are looking at the data are off, or that the systems are in different timezones?

UPDATE: Hold on. As a test, I created a spike in network activity and then fetched metrics and looked for the spike. The t value appears to be the end of the interval, not the start as suggested above.

If anyone knows of a page that gives clear definitions of the XML tags returned by Citrix, please post a link.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.