Changeset 1755
- Timestamp:
- 12/03/08 11:21:44 (1 month ago)
- Files:
-
- branches/DEV-opsview3/CHANGES (modified) (1 diff)
- branches/DEV-opsview3/opsview-core/bin/db_opsview (modified) (1 diff)
- branches/DEV-opsview3/opsview-core/installer/migrate_rrds (modified) (2 diffs)
- branches/DEV-opsview3/opsview-core/installer/upgradedb_opsview.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/DEV-opsview3/CHANGES
r1748 r1755 4 4 Convert all mysql datetime fields into UTC 5 5 nagiosgraph forked and now part of opsview-core package. Creates new style RRDs if the old ones do not exist 6 Old style RRDs are upgraded as part of the database upgrade process 6 7 Updated scriptaculous to 1.8.2 7 8 branches/DEV-opsview3/opsview-core/bin/db_opsview
r1731 r1755 787 787 INSERT INTO schema_version (major_release, version) VALUES ('2.13', '2'); 788 788 INSERT INTO schema_version (major_release, version) VALUES ('2.14', '2'); 789 INSERT INTO schema_version (major_release, version) VALUES ('3.0', ' 2');789 INSERT INTO schema_version (major_release, version) VALUES ('3.0', '3'); 790 790 791 791 EOF branches/DEV-opsview3/opsview-core/installer/migrate_rrds
r1751 r1755 59 59 closedir D; 60 60 61 my $now = scalar localtime; 62 print "$now: Starting RRD migration\n"; 61 63 my $rrd_migration_flag = "/usr/local/nagios/var/rrd_migration.flag"; 62 64 open F, "> $rrd_migration_flag" or die "Cannot create migration flag"; … … 235 237 236 238 unlink $rrd_migration_flag; 239 $now = scalar localtime; 240 print "$now: Finished migration\n"; 237 241 238 242 # From insert.pl branches/DEV-opsview3/opsview-core/installer/upgradedb_opsview.pl
r1731 r1755 1333 1333 1334 1334 if ($db->is_lower("3.0.2")) { 1335 print "Updating all auditlog entries to UTC - this may take some time\n"; 1335 1336 $dbh->do("UPDATE auditlogs SET datetime=CONVERT_TZ(datetime, 'SYSTEM', '+00:00')"); 1336 1337 $db->updated; 1337 1338 } 1338 1339 1340 # Bit cheeky - this migration is run as if there is a db change, although no change has actually occurred 1341 # at DB level. This ensures it is only run the once 1342 if ($db->is_lower("3.0.3")) { 1343 print "Updating RRDs - running this in the background. Check /tmp/migrate_rrds.log for status\n"; 1344 system("nohup nice -n 20 /usr/local/nagios/installer/migrate_rrds >> /tmp/migrate_rrds.log 2>&1 &"); 1345 $db->updated; 1346 } 1339 1347 1340 1348 if ($opts->{t}) {
