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 the rrdcached daemon. if you specify it, a "flush" command gets sent to the server before reading the RRD files. the way that matters: it lets rrdtool return 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