GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
TORRUS_CONFIGSNAPSHOT(1) torrus TORRUS_CONFIGSNAPSHOT(1)

configsnapshot - Generates a configuration snapshot for a Torrus tree.

torrus configsnapshot --tree=TREENAME [options...]

This command generates a configuration snapshot from current datasources for tree TREENAME. The output is an XML file, ready for compilation, representing all datasources, monitors and tokensets of a given tree. The snapshot does not include view definitions. Templates and file patterns are expanded inside the file. It does not require any other XML configuration files, except for defaults.xml and your custom view definitions.

Warning: "configsnapshot" from RRFW release 0.1.5 will not work correctly with databases from previous releases. Use RRFW release "0.1.4bf2" instead. "configsnapshot" utility from RRFW release 0.1.4bf2 does not preserve aliases.

This utility is useful in Torrus upgrade process. In case when RRD files structure is changing in Torrus default templates, and user(s) demand to preserve the historical data, the following steps could be done:

  • Stop the collector and monitor processes.
  • Install newest Torrus software and do not run "compilexml" immediately.
  • Create snapshots of the trees that you want to preserve for historical reasons:

      torrus configsnapshot --tree=myrouters \
        --out=/usr/local/etc/torrus/xmlconfig/myrouters-snapshot.xml
        
  • If needed, move the existing RRD files into different directory. Then change the "data-dir" parameters in the snapshot XML accordingly.
  • Create a new tree with only the snapshot file in it. Compile the tree.
  • At this stage, it is up to the user to decide wether to continue running the collector and monitor daemons for this new tree. The old data may be preserved for historical reference, and collector may be run with the newest tree structure and definitions.

--tree=TREE
Mandatory parameter specifying the tree name.
--out=FILE
Sets the output file to FILE. Default is snapshot.xml.
--param=PARAM --value=VALUE
Sets the filter on datasource leaves that have to be included in the snapshot. PARAM specifies the name of the datasource parameter, and VALUE sets the matching value. By default the numeric comparison is performed.
--op=OPERATOR
Sets the fiter comparison operator. Accepted values: = (numeric), eq (text string comparison), and re (regular expression match). Default is numeric comparison.
--verbose
Displays some extra information.
--help
Displays a help message.

/usr/local/share/torrus/xmlconfig/defaults.xml
XML configuration file with default settings for the datasources and tokensets, as well as default view definitions.
snapshot.xml
Default configsnapshot output file.

torrus(1), torrus_compilexml(1)

See more documentation at Torrus home page: http://torrus.org

Stanislav Sinyagin <ssinyagin@k-open.com>
2022-06-08 torrus 2.09

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.