EnglishFrenchSpanish

OnWorks favicon

rrdxport - Online in the Cloud

Run rrdxport in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command rrdxport that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


rrdxport - Export data in XML format based on data from one or several RRD

SYNOPSIS


rrdtool xport [-s|--start seconds] [-e|--end seconds] [-m|--maxrows rows] [--step value]
[--json] [--enumds] [--daemon|-d address] [DEF:vname=rrd:ds-name:CF] [CDEF:vname=rpn-
expression] [XPORT:vname[:legend]]

DESCRIPTION


The xport function's main purpose is to write an XML formatted representation of the data
stored in one or several RRDs. It can also extract numerical reports.

If no XPORT statements are found, there will be no output.

-s|--start seconds (default end-1day)
The time when the exported range should begin. Time in seconds since epoch
(1970-01-01) is required. Negative numbers are relative to the current time. By
default one day worth of data will be printed. See also AT-STYLE TIME SPECIFICATION
section in the rrdfetch documentation for a detailed explanation on how to specify
time.

-e|--end seconds (default now)
The time when the exported range should end. Time in seconds since epoch. See also
AT-STYLE TIME SPECIFICATION section in the rrdfetch documentation for a detailed
explanation of ways to specify time.

-m|--maxrows rows (default 400 rows)
This works like the -w|--width parameter of rrdgraph. In fact it is exactly the same,
but the parameter was renamed to describe its purpose in this module. See rrdgraph
documentation for details.

--step value (default automatic)
See rrdgraph documentation.

--daemon|-d address
Address of the rrdcached daemon. If specified, a "flush" command is sent to the server
before reading the RRD files. This allows rrdtool to return fresh data even if the
daemon is configured to cache values for a long time. For a list of accepted formats,
see the -l option in the rrdcached manual.

rrdtool xport --daemon unix:/var/run/rrdcached.sock ...

--json
produce json formated output (instead of xml)

--enumds
The generated xml should contain the data values in enumerated tags.

<v0>val</v0><v1>val</v1>

DEF:vname=rrd:ds-name:CF
See rrdgraph documentation.

CDEF:vname=rpn-expression
See rrdgraph documentation.

XPORT:vname[:legend]
At least one XPORT statement should be present. The values referenced by vname are
printed. Optionally add a legend.

Output format


The output is enclosed in an xport element and contains two blocks. The first block is
enclosed by a meta element and contains some meta data. The second block is enclosed by a
data element and contains the data rows.

Let's assume that the xport command looks like this:

rrdtool xport \
--start now-1h --end now \
DEF:xx=host-inout.lo.rrd:output:AVERAGE \
DEF:yy=host-inout.lo.rrd:input:AVERAGE \
CDEF:aa=xx,yy,+,8,* \
XPORT:xx:"out bytes" \
XPORT:aa:"in and out bits"

The resulting meta data section is (the values will depend on the RRD characteristics):

<meta>
<start>1020611700</start>
<step>300</step>
<end>1020615600</end>
<rows>14</rows>
<columns>2</columns>
<legend>
<entry>out bytes</entry>
<entry>in and out bits</entry>
</legend>
</meta>

The resulting data section is:

<data>
<row><t>1020611700</t><v>3.4000000000e+00</v><v>5.4400000000e+01</v></row>
<row><t>1020612000</t><v>3.4000000000e+00</v><v>5.4400000000e+01</v></row>
<row><t>1020612300</t><v>3.4000000000e+00</v><v>5.4400000000e+01</v></row>
<row><t>1020612600</t><v>3.4113333333e+00</v><v>5.4581333333e+01</v></row>
<row><t>1020612900</t><v>3.4000000000e+00</v><v>5.4400000000e+01</v></row>
<row><t>1020613200</t><v>3.4000000000e+00</v><v>5.4400000000e+01</v></row>
<row><t>1020613500</t><v>3.4000000000e+00</v><v>5.4400000000e+01</v></row>
<row><t>1020613800</t><v>3.4000000000e+00</v><v>5.4400000000e+01</v></row>
<row><t>1020614100</t><v>3.4000000000e+00</v><v>5.4400000000e+01</v></row>
<row><t>1020614400</t><v>3.4000000000e+00</v><v>5.4400000000e+01</v></row>
<row><t>1020614700</t><v>3.7333333333e+00</v><v>5.9733333333e+01</v></row>
<row><t>1020615000</t><v>3.4000000000e+00</v><v>5.4400000000e+01</v></row>
<row><t>1020615300</t><v>3.4000000000e+00</v><v>5.4400000000e+01</v></row>
<row><t>1020615600</t><v>NaN</v><v>NaN</v></row>
</data>

EXAMPLE 1


rrdtool xport \
DEF:out=if1-inouts.rrd:outoctets:AVERAGE \
XPORT:out:"out bytes"

EXAMPLE 2


rrdtool xport \
DEF:out1=if1-inouts.rrd:outoctets:AVERAGE \
DEF:out2=if2-inouts.rrd:outoctets:AVERAGE \
CDEF:sum=out1,out2,+ \
XPORT:out1:"if1 out bytes" \
XPORT:out2:"if2 out bytes" \
XPORT:sum:"output sum"

ENVIRONMENT VARIABLES


The following environment variables may be used to change the behavior of "rrdtool xport":

RRDCACHED_ADDRESS
If this environment variable is set it will have the same effect as specifying the
"--daemon" option on the command line. If both are present, the command line argument
takes precedence.

Use rrdxport online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Psi
    Psi
    Psi is cross-platform powerful XMPP
    client designed for experienced users.
    There are builds available for MS
    Windows, GNU/Linux and macOS.. Audience:
    End Users...
    Download Psi
  • 2
    Blobby Volley 2
    Blobby Volley 2
    Official continuation of the famous
    Blobby Volley 1.x arcade game..
    Audience: End Users/Desktop. User
    interface: OpenGL, SDL. Programming
    Language: C++, Lua. C...
    Download Blobby Volley 2
  • 3
    SuiteCRM
    SuiteCRM
    SuiteCRM is the award-winning Customer
    Relationship Management (CRM)
    application brought to you by authors
    and maintainers, SalesAgility. It is the
    world�s mos...
    Download SuiteCRM
  • 4
    Poweradmin
    Poweradmin
    Poweradmin is a web-based DNS
    administration tool for PowerDNS server.
    The interface has full support for most
    of the features of PowerDNS. It has full
    support...
    Download Poweradmin
  • 5
    Gin Web Framework
    Gin Web Framework
    Gin is an incredibly fast web framework
    written in Golang that can perform up to
    40 times faster, thanks to its
    martini-like API and custom version of
    httprout...
    Download Gin Web Framework
  • 6
    CEREUS LINUX
    CEREUS LINUX
    CEREUS LINUX basado en MX LINUX con
    varios entornos de escritorios. This is
    an application that can also be fetched
    from
    https://sourceforge.net/projects/cereu...
    Download CEREUS LINUX
  • More »

Linux commands

  • 1
    aa-clickquery
    aa-clickquery
    aa-clickquery - program for querying
    click-apparmor DESCRIPTION: This program
    is used to query click-apparmor for
    information. USAGE: aa-clickquery
    --click-fra...
    Run aa-clickquery
  • 2
    aa-exec-click
    aa-exec-click
    aa-exec-click - program for executing
    click packages under confinement
    DESCRIPTION: This program is used to
    execute click package under AppArmor
    confinement. I...
    Run aa-exec-click
  • 3
    cpio
    cpio
    cpio - copy files to and from archives ...
    Run cpio
  • 4
    cpipe
    cpipe
    cpipe - copy stdin to stdout while
    counting bytes and reporting progress ...
    Run cpipe
  • 5
    FvwmSave
    FvwmSave
    FvwmSave - the Fvwm desktop-layout
    saving module ...
    Run FvwmSave
  • 6
    FvwmSave1
    FvwmSave1
    FvwmSave - the FVWM desktop-layout
    saving module ...
    Run FvwmSave1
  • More »

Ad