|
The archives created reflect the database table structure used to store performance data, as well as the date that the stored data represents, as shown in the following example:
performance_cpu_2013-09-13.xml.gz |
The DataStore is trimmed and the XML files are compressed and stored in the /archives
directory.
For example, if you installed Uptime Infrastructure Monitor in the default location, the path to the archived data is:
/usr/local/uptime/archives
C:\Program Files\uptime software\uptime\archives
Once backed up, archives can be stored offline. If required, they can be temporarily imported into the DataStore.
The following table lists the statistical categories whose archiving can be configured, along with the corresponding DataStore database table:
Archive Policy Category | Database Table |
---|---|
Overall CPU/Memory |
|
Multi-CPU |
|
Detailed Process |
|
Disk Performance |
|
File System Capacity |
|
Network |
|
User Information |
|
Volume Manager |
|
Retained Data |
|
vSphere Performance Data |
|
vSphere Inventory Updates |
|
Network Device Performance Data |
|
To set an archive policy, do the following:
If you need to generate graphs or reports on older data that are is already archived and is no longer in the DataStore, you can import specific archives using the restorearchive
command line utility. The command’s parameters allow you to import archives in the following manner:
To import archived data into the DataStore, do the following:
/scripts
folder.C:\Program Files\uptime software\uptime\scripts\
Run the restorearchive
command with one or more of the following options:
Option | Description |
---|---|
-f <filename> | Imports a single file (an archive category’s data for a single date). You must specify the full path to the file name. |
-d <date> | Imports all files with the specified date (in YYYY-MM-DD format). |
-D <directory> | The directory containing the archived files. Note that you must specify this option when using the -d option. |
-c <directory> | The full directory path to the uptime.conf file. |
For example, the following command imports all of the data archived on September 18, 2013, which is located in the default directory for archived data:
restorearchive -d 2013-09-18 -D /usr/local/uptime/archives/ -c /usr/local/uptime |
If you have deployed Uptime Infrastructure Monitor UI instances, ensure you always run command-line scripts such as |
In cases where you need to perform a wholesale backup of the existing DataStore (e.g., migrating your DataStore to another database), Uptime Infrastructure Monitor includes two command-line utilities:
fulldatabasedump
: creates a compressed XML file of the contents of your DataStorefulldatabaseimport
: imports the archived data back into your DataStoreTo archive your DataStore, do the following:
At the command line, navigate to the Uptime Infrastructure Monitor /scripts
folder.
For example, if you installed the Monitoring Station in the default location on a Windows system, navigate to the following folder:
C:\Program Files\uptime software\uptime\scripts\
Run the following command:
fulldatabasedump
If you have deployed Uptime Infrastructure Monitor UI instances, ensure you always run command-line scripts such as |
Depending on the size of your DataStore, this process can take anywhere from several minutes to several hours.
The utility creates the file uptimedump_YYYY-MM-DD.xml.gz
(for example, uptimedump_2014-01-02.xml.gz
). This file is saved in Uptime Infrastructure Monitor's root installation directory.
To restore your DataStore, do the following:
resetdb
utility with the really
and nodata
options to delete, then recreate the database structure that is used by Uptime Infrastructure Monitor by running one of the following commands:/usr/local/uptime/resetdb --nodata really
C:\Program Files\uptime software\uptime\resetdb --nodata really
If you have set up UI instances of Uptime Infrastructure Monitor, ensure you always run command-line scripts such as |
Run the following command:
fulldatabaseimport path/<fileToImport>.xml.gz
Where "path/<fileToImport>.xml.gz"
is the path to, and file name of, the archived contents of your DataStore. For example, to import an archive that is located in Uptime Infrastructure Monitor's root installation directory, enter the following:
fulldatabaseimport uptimedump_2014-01-02.xml.gz