=head1 SYNOPSIS
B<rrdtool> B<last> I<filename>
-S<[B<--daemon> I<address>]>
+S<[B<--daemon>|B<-d> I<address>]>
=head1 DESCRIPTION
The name of the B<RRD> that contains the data.
-=item B<--daemon> I<address>
+=item B<--daemon>|B<-d> I<address>
Address of the L<rrdcached> daemon. If specified, a C<flush> command is sent
to the server before reading the RRD files. This allows B<rrdtool> to return
rrdtool last --daemon unix:/var/run/rrdcached.sock /var/lib/rrd/foo.rrd
-=item B<--noflush>
-
-If the L<rrdcached> daemon is being used, then omit the flush normally
-send before returning the last update. If you add this option, you get the
-last time the file on disk was updated; if you have relatively low cache times
-and are calling this frequently it will preserve the caching benefit
-
=back
=head1 ENVIRONMENT VARIABLES
break;
default:
- rrd_set_error ("Usage: rrdtool %s [--daemon <addr>] <file>",
+ rrd_set_error ("Usage: rrdtool %s [--daemon|-d <addr>] <file>",
argv[0]);
return (-1);
break;
} /* while (42) */
if ((argc - optind) != 1) {
- rrd_set_error ("Usage: rrdtool %s [--daemon <addr>] <file>",
+ rrd_set_error ("Usage: rrdtool %s [--daemon|-d <addr>] <file>",
argv[0]);
return (-1);
}
const char *help_last =
N_("* last - show last update time for RRD\n\n"
- "\trrdtool last filename.rrd\n");
+ "\trrdtool last filename.rrd\n"
+ "\t\t[--daemon|-d address]\n");
const char *help_lastupdate =
N_("* lastupdate - returns the most recent datum stored for\n"