...
- Change the archive policy to the number of months that you want to retain -- for example one month. To reduce the amount of data that up.time keeps in the DataStore, make the the number of months smaller than the current number.
- Stop and then restart the up.time Data Collector using the following commands:
On Linux systems:
No Format |
---|
> /etc/init.d/uptime_core stop
> /etc/init.d/uptime_core start |
On Windows systems:
...
When up.time restarts, it should start archiving data. The archived files will be placed in the directory <uptime_dir>/archives. Once the archiving process is completed, the entry Finished Archiving should appear in the file <uptime_dir>/logs/uptime.log.
Step 2 - Export your Configuration and Performance Data
...
To export your configuration and performance information, first stop the uptime_core or Data Collector service, so that up.time isn't actively writing to the database:
On Linux systems:
No Format |
---|
> /etc/init.d/uptime_core stop
|
On Windows systems:
...
Starting (or restarting ) and Stopping up.time
Now run the following command to export the database contents:
No Formatcode |
---|
> cd <uptime_dir>mysql\bin > mysqldump -uuptime -puptime -P3308 --protocol=tcp uptime > export.txt |
...
- Run the following commands to delete the up.time DataStore:
On Linux systems:
No Formatcode > mysql -uuptime -puptime -P3308 --protocol=tcp mysql> use uptime; mysql> drop database uptime; mysql> exit; > /etc/init.d/uptime_datastore stop
On Windows systems:
No Formatcode > mysql -uuptime -puptime -P3308 --protocol=tcp mysql> use uptime; mysql> drop database uptime; mysql> exit; > net stop "up.time Data Store"
Delete the following files from your DataStore directory:
No Format ibdata1 ib_logfile0 ib_logfile1
- Run the following commands to restart your database and rebuild your DataStore:
On Linux systems:
No Formatcode > /etc/init.d/uptime_datastore start > mysql -uuptime -puptime -P3308 --protocol=tcp mysql> create database uptime; mysql> exit; > mysql -uuptime -puptime -P3308 --protocol=tcp -A -N -f uptime < export.txt
On Windows systems:
No Formatcode > net start "up.time Data Store" > mysql -uuptime -puptime -P3308 --protocol=tcp mysql> create database uptime; mysql> exit; > mysql -uuptime -puptime -P3308 --protocol=tcp -A -N -f uptime < export.txt
Run the following commands to restart the remaining up.time processes:
On Linux systems:
No Format /etc/init.d/uptime_core start /etc/init.d/uptime_httpd start /etc/init.d/uptime_controller start
On Windows systems:
No Format > net start "up.time Data Collector" > net start "up.time Web Server" > net start "up.time Controller"