RRDLAST(1)
π RRDLAST(1) β the rrdtool girlies' guide
okay so bestie, welcome to rrdlast from the rrdtool fam π this is the little icon that tells you when your RRD was last touched. genuinely useful, no cap.
β¨ NAME β¨
rrdlast β returns the date of the last data sample in an RRD π
πΈ SYNOPSIS πΈ
rrdtool last filename [--daemon|-d address]
that's it. that's the whole vibe check. one filename, one optional daemon flag, slay. β¨
π¦ DESCRIPTION π¦
so the last function does exactly one thing and does it gorgeously: it hands you back the UNIX timestamp of the most recent update of the RRD. that's the whole main character arc. ππ
filenameβ the name of the RRD that contains the data. literally just point at your file, bestie, that's it π«Ά--daemon|-d addressβ address of therrdcacheddaemon. if you specify it, a"flush"command gets sent to the server before reading the RRD files. the way that matters: it letsrrdtoolreturn fresh data even if the daemon is configured to cache values for a long time. like, you get the new new, not the stale stale πβ¨
for a list of accepted formats, see the -l option in the rrdcached manual β that's where the deets live, iykyk π
example time, look at her go:
rrdtool last --daemon unix:/var/run/rrdcached.sock /var/lib/rrd/foo.rrd
π ENVIRONMENT VARIABLES π
the following environment variables may be used to change the behavior of "rrdtool last":
RRDCACHED_ADDRESSβ if this environment variable is set it will have the same effect as specifying the"--daemon"option on the command line. and if both are present? the command line argument takes precedence. command line stays winning, periodt ππ₯
π AUTHOR π
Russ Wright <rwwright@home.com> β and daemon support was added by Steve Shipway <steve@steveshipway.org>. kings, honestly π«Ά
tiny reminder bestie: the flags are exactly what they look like, no renaming, no vibes-based guessing. copy them character for character and you're golden β¨
and that's the whole page! π this was rrdtool version 1.11.0, dated 2026-10-17 β mwah, go check your timestamps, ily, bye ππ¦
π¦ where this page comes from
- arch rolling: rrdtool 1.11.0-2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms