Remove need to specify the Cacti Version on every function call
Add new functions for adding / dropping columns
Add new functions for renaming / dropping tables
Lots of error checking (stops most SQL errors when re-upgrading)
General Cleanup
note, the poller table is updated, see the cacti.sql, also the default
poller_id is now 1, so you need to review the file
install/0_8_8g_to_1_0_0.php for important changes.
this change just adds the install option. also add a previous button
and adds logic to not allow continuing until license agreement is
accepted. remote poller installation, though the option is there, is
not working.
for testers, make sure that you not only add the poller_resource_cache
table, but alter the structure of the host table, or you system will
stop working. this is the first of several commit's. taking it in
stages.
Made modern css default for install, makes it look a better.
Change comments to better reflect the code
removed some whitespace
Still left todo:
Backport plugin import
Show log from sql install when upgrading
Test windows install and upgrade
Working on windows now.
Added back index parent. Although i don't think it should be used since it is not in cacti.sql, see attached screenshot. cacti2 is the upgraded, and cacti is new installation.
This fixed the login issue.
Now upgraded database and new installed database is exactly equal, no difference.
Still need to fix/test:
1. output for array sql log
2. test windows
3. cleanup, import more features, make it look better
Works:
Linux New install
Upgrade from 0.8.8g
Tables were not created because primary key was: KEY PRIMARY 'id' Instead of PRIMARY KEY 'id
Saw some weird behaviour when switching between 0.8.8g and 1.0, this was solved when browser was closed between upgrades.
Removed top and bottom header
Issues:
1. the new way of creating tables with db_create_table doesnt give any log output, if it fails it fails silently.
2. after upgrade user are sent to login page but cant login with admin/admin, realm problem?
1. Added check for RRD 1.5
2. Backported dependencies check
3. Backported template installer
4. Added theme selection
Tested and working with new installation on Linux. Backported a template for testing as well -> Disk IO.
I will test the Upgrade and Windows installation as well as clean it up and add some extras.
this commit will cause your 1.0 environment to break. to fix, please
run the script 'profile_migrate.php'. this commit includes a major new
feature to allow your Cacti system to have multiple polling intervals
and for you to create identical graphs using multiple polling intervals
in a sane way. this is an initial commit, one that has been tested.
however, there will be subsequent commits. however, after migration,
this should be considered stable.