Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Feb 2007 21:40:40 -0500 (EST)
From:      Dan Langille <dan@langille.org>
To:        freebsd-ports@freebsd.org
Subject:   symon creating dates in year 31900
Message-ID:  <20070214212929.R19336@laptop.unixathome.org>

next in thread | raw e-mail | index | archive | help
Anyone using syutils/symon?

I noticed this problem today after installing symon on a 6.2 box

# mkdir ~/tmp
# cd ~/tmp
# /usr/local/share/symon/c_smrrds.sh cpu0
cpu0.rrd created
# rrdtool info  cpu0.rrd | head
filename = "cpu0.rrd"
rrd_version = "0003"
step = 5
last_update = 944503401600


Notice the date, that's a bit odd:

# date -r 944503401600
Wed Feb 14 00:00:00 PST 31900


This was with rrdtool-1.2.19_1 on FreeBSD 6.2-STABLE #6: Fri Feb  9 
15:54:22 PST 2007



On another system, with a slightly different rrdtoo, I get better results:

# /usr/local/share/symon/c_smrrds.sh cpu0
cpu0.rrd created
# rrdtool info cpu0.rrd | head
filename = "cpu0.rrd"
rrd_version = "0003"
step = 5
last_update = 1171429200
# date -r 1171429200
Wed Feb 14 00:00:00 EST 2007

Now that's something a little more reasonable.

Does anyone get similar results?

Failing a solution, does anyone know how to reset the last_update field in 
an rrd file?

-- 
Dan Langille - http://www.langille.org/
BSDCan - The Technical BSD Conference: http://www.bsdcan.org/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070214212929.R19336>