S<[B<-m>|B<--maxrows> I<rows>]>
S<[B<--step> I<value>]>
S<[B<--json>]>
+S<[B<--showtime>]>
S<[B<--enumds>]>
S<[B<--daemon>|B<-d> I<address>]>
S<[B<DEF:>I<vname>B<=>I<rrd>B<:>I<ds-name>B<:>I<CF>]>
rrdtool xport --daemon unix:/var/run/rrdcached.sock ...
+=item B<--showtime>
+
+include the time into each data row.
+
=item B<--json>
produce json formated output (instead of xml)
{"maxrows",'m', OPTPARSE_REQUIRED},
{"step", 261, OPTPARSE_REQUIRED},
{"enumds", 262, OPTPARSE_NONE},
- {"json", 263, OPTPARSE_NONE}, /* these are handled in the frontend ... */
+ {"json", 263, OPTPARSE_NONE},
+ {"showtime", 't', OPTPARSE_NONE},
{"daemon", 'd', OPTPARSE_REQUIRED},
{0}
};
int enumds=0;
int json=0;
-
+ int showtime=0;
+
int opt;
while ((opt = optparse_long(&options,longopts,NULL)) != -1){
case 263:
json=1;
break;
+ case 't':
+ showtime=1;
+ break;
case 's':
if ((parsetime_error = rrd_parsetime(options.optarg, &start_tv))) {
rrd_set_error("start time: %s", parsetime_error);
if (!xsize) {
int flags=0;
if (json) { flags|=1; }
+ if (showtime) { flags|=2; }
if (enumds) { flags|=4; }
stringbuffer_t buffer={0,0,NULL,stdout};
rrd_xport_format_xmljson(flags,&buffer,&im,