Commit Graph
284 Commits
Author SHA1 Message Date
Mark Brugnoli-Vinten 6e1b8431b7 Fixes for Issues 1781, 1782 and 1784 (#1785)
* Fixes for Issues 1781, 1782 and 1784

This patch corrects the following issues:

- #1782 During Install, changing the Theme from Modern to another theme has no
        effect
- #1784 During Install, changing the Language from one to another has no
        effect
- #1781 Installer does not warn when mysql optimizations not set

As part of #1781's fixes, a new warning icon is displayed instead of a thumbs
up or down.  Additionally, recommendations have been revamped so that the ones
which are optionally (and some even state can be ignored) are now optional!

Also, introduced the correct calculation for innodb instances by taking the
buffer size during a previous recommendation and calculating from that.  If
the buffer size is never found or the calcuation finds less than 1 instances
are recommended, a minimum of 1 is set.

The main reason for #1782 and #1784's issues were caused by renaming index.php
to install.php as part of the recent security update (see PR #1747).  Updated
the javascript to use the correct install.php and then removed some extra data
that was being returned outside of StepData unnecessarily.

* Further fixes

This update corrects a number of issues with the database upgrading code, adds
the 'debug' plugin from cigamit, improves database functions to be more
consistent with errors across all functions and various installer based fixes
for the display and update of database upgrades.

It also brings a more visual response to the cli/upgrade_database.php so that
end users are not left wondering if something is happening.  Also, reviewed
all upgrade scripts to ensure that an upgrade from 0.8.8 through to 1.2.0 is
possible even if a previous database upgrade have been done.

* Fix QA issue with 'path_cactilog'

Due to some code reshuffle and testing, found that the above setting was being
read via read_config_option() before there was a database open so no path was
ever detected unless the force option was used.
2018-08-05 10:43:01 -05:00
cigamit 993d34ef95 Add Data Source should have correct help 2018-07-30 20:54:19 -05:00
cigamit 7e9c1b73c2 Correct syntax error in convert_tables.php 2018-07-28 18:58:26 -05:00
cigamit aec6e1ae6d Increase max table count to 1e06, and add --skip-innodb option
This will allow users or plugin developers to selectively skip
converting tables to InnoDB storage engine.
2018-07-28 18:29:34 -05:00
cigamit bbf40bc253 Stop convert tables from converting memory tables
This change will stop memory tables from being converted to InnoDB.
2018-07-27 17:24:43 -05:00
Mark Brugnoli-Vinten 2b61c1bba3 Further fix for Issue 1723 (#1728)
* Issue #1723 - die() messages should include \n for better logging

This corrects issue #1723 where die() messages appear in log files without a new line character causing logs to appear corrupted.

* Replace \n with PHP_EOF to be platform independant.
2018-07-21 15:17:14 -04:00
Mark Brugnoli-Vinten 5d075f62fc Feature #1034: Ensure tables are UTF8 (#1635)
* Feature #1034: Ensure tables are UTF8

* Make PHP 5.4 happy
2018-05-12 15:35:50 -05:00
cigamit fc32222f2e Minor logging changes per standard logging interpretation 2018-05-12 09:37:23 -05:00
cigamit 4e05e305aa Update audit_dataabse.php for latest schema 2018-05-08 20:52:27 -05:00
cigamit 4cac38344f Minor format changes 2018-05-06 13:08:19 -05:00
cigamit 801988f1be Resolving Issue #1602
PHP ERROR: Call to undefined function api_data_source_cache_crc_update()
2018-05-06 13:08:03 -05:00
cigamit 79c809a661 Undefined variable $displaySites 2018-03-30 11:06:51 -05:00
Dmitry e970396153 Resolving Issue #1491 (#1499)
* Resolving Issue #1491

* Fix description in help

* cli/add_datasource.php: "creating"->"adding"

* Different style fixes

* Remove --help
2018-03-29 17:27:12 -05:00
cigamit f89ab3b3bc Merge remote-tracking branch 'refs/remotes/origin/develop' into feature/1.2.x
# Conflicts:
#	auth_login.php
#	data_sources.php
#	graphs_new.php
#	include/auth.php
#	lib/api_tree.php
#	lib/html_form_template.php
#	lib/html_tree.php
#	lib/template.php
#	permission_denied.php
#	poller_automation.php
#	tree.php
2018-03-25 11:08:00 -05:00
cigamit a35411aa7b Resolving Issue #1468
Increase max length of host.snmp_sysObjectID column
2018-03-24 09:20:42 -05:00
netniV efa0495d7b Issue #1447: Cli audit_database.php not detecting database name (#1448)
Issue #1447: Cli audit_database.php not detecting database name, and failed to create audit tables when run from fresh due to invalid indxees.

MySQL was complaining about the key not all being NOT NULL for a PRIMARY key as opposed to being UNIQUE
2018-03-05 18:13:33 -06:00
Tony Roman 1ce66b5fde Merge branch 'develop' into feature/1.2.x 2018-02-25 20:12:19 -05:00
cigamit 0129b317c6 Add a default Device Template to the available presets
Saves time.  It seems jQueryUI does not allow typing into selecmenu's as
the normal select's work in most browsers.
2018-02-24 21:14:24 -06:00
cigamit 7e70e27940 Merge remote-tracking branch 'refs/remotes/origin/develop' into feature/1.2.x
# Conflicts:
#	docs/CHANGELOG
#	include/themes/modern/main.css
#	tree.php
2018-02-18 16:26:26 -06:00
cigamit e244b9c324 Resolving Issue #1336
Set the zlib compression earlier in output stream for import_package.php
and remove from the import library
2018-02-14 17:34:29 -06:00
cigamit dcf2d312f8 Validate regular expressions if specified in add_graphs.php 2018-02-08 18:51:57 -06:00
cigamit d12cada232 Validate regular expressions if specified in add_graphs.php 2018-02-07 18:46:38 -06:00
cigamit 55f1eb8332 Merge remote-tracking branch 'refs/remotes/origin/develop' into feature/1.2.x
# Conflicts:
#	lib/html_tree.php
2018-02-06 20:44:28 -06:00
netniV aa0d248408 Fix for issue #1306 where multi-value args are not parsing correctly (#1313)
* Fix issue #1306 where multi-value args are not parsing correctly

* Fix up error reporting of multi-values
2018-02-06 17:44:03 -07:00
cigamit b25896415a Merge remote-tracking branch 'refs/remotes/origin/develop' into feature/1.2.x
# Conflicts:
#	docs/CHANGELOG
2018-02-06 08:08:43 -06:00
cigamit 703ddcdbb4 Minor format changes in cli scripts 2018-02-04 15:14:08 -06:00
cigamit 42e8f91a44 Minor shbang update for removespikes.php 2018-02-04 15:09:15 -06:00
cigamit 5ba3fd4f7f Minor updates from Regression and QA 2018-02-04 14:27:12 -06:00
cigamit 4ca8f1d441 Merge remote-tracking branch 'refs/remotes/origin/develop' into feature/1.2.x
# Conflicts:
#	lib/functions.php
#	lib/html_validate.php
2018-02-04 13:19:43 -06:00
netniV daff296e4b New CLI script to generate and verify MD5 hashes for entire cacti source (#1303)
* New CLI script to generate and verify MD5 hashes for entire cacti source

* Remove .md5sum
2018-02-04 09:16:20 -07:00
cigamit 7b60a000a8 Merge remote-tracking branch 'refs/remotes/origin/develop' into feature/1.2.x
# Conflicts:
#	lib/api_automation.php
2018-02-03 13:36:09 -06:00
cigamit 1d7118a941 More audit changes around snmp and column names and types
This change also removes the auto_increment defaults for certain tables
which should not be included in the default schema.
2018-02-03 13:31:21 -06:00
cigamit b743fbc4b6 Update audi_database.php is default shema details
Final updates after multiple upgrades from 0.8.7h to 1.1.34 and strait
installs of 1.1.34.
2018-01-28 12:41:58 -06:00
cigamit ffb9ad0e35 Update audi_database.php is default shema details
Final updates after multiple upgrades from 0.8.7h to 1.1.34 and strait
installs of 1.1.34.
2018-01-28 11:08:43 -06:00
cigamit 10a8e523f7 Merge remote-tracking branch 'refs/remotes/origin/develop' into feature/1.2.x
# Conflicts:
#	cacti.sql
#	data_sources.php
#	docs/CHANGELOG
#	graphs.php
#	host.php
2018-01-26 19:31:47 -06:00
cigamit cc1891fdef Resolving Issue #1263
The utility includes the options:
--report, --alters, --report, --repair, and --load (for developers)

The load will create the default tables from the current schema.  The
developer who runs with the --load option is still responsible for
loading the 'revised' table contents into the two string variables
though.  The --repair option will repair all tables and would be
suitable for the installers purposes.
2018-01-26 19:02:36 -06:00
netniV 270c622c22 Issue #522 - Device Device From Command Line (#1273)
Adds the ability to delete a device from the command line as requested in #522.

This can be done using regexp to verify results.

Requires --confirm to actually remove, otherwise lists matches
2018-01-26 17:57:26 -07:00
cigamit e9bb85e611 Update to Issue #1263
Removing some attributes that have little impact.  There are still
issues in the index parsing, and indexes that are missing are not caught
presently.
2018-01-24 21:07:36 -06:00
cigamit 6c563b72bb First half of a resolution to Issue #1263
Allow Auditiong of the Database
2018-01-24 19:53:30 -06:00
cigamit d5e50bb846 Change the general setting name of 'snmp_ver' to 'snmp_version'
This is required to leverage the common SNMP functions in layout.js
2018-01-14 18:00:08 -06:00
cigamit 7106f11947 Change the general setting name of 'snmp_ver' to 'snmp_version'
This is required to leverage the common SNMP functions in layout.js
2018-01-14 17:59:44 -06:00
cigamit 62615311b5 Merge remote-tracking branch 'refs/remotes/origin/develop' into feature/1.2.x
# Conflicts:
#	docs/CHANGELOG
2018-01-06 14:08:07 -06:00
Tony Roman 519b35f5cd Update copyright to 2018 2018-01-06 09:10:15 -05:00
cigamit f6510d6805 Add physical location to the device
Add the location column to the host table and form objects.  This will
allow one additional level to the Site tree branches.
2017-12-27 20:24:03 -06:00
netniV 312ec55c23 Fix for issue #1131 - upgrade_database.php (#1151)
Make upgrade_database.php use cacti_version_compare rather than version_compare (php version) to bring inline with /install/
2017-12-23 08:21:35 -06:00
netniV a20df3817c Fix for issue #1131 - upgrade_database.php (#1151)
Make upgrade_database.php use cacti_version_compare rather than version_compare (php version) to bring inline with /install/
2017-12-23 08:06:08 -06:00
cigamit 11b559bb1a Allow pushing out Data Input Method with new --push option for Issue #1072
This was related to discussion about updating data input method poller
items in a single pass when validation the white list required updating.
Also, change all echo's to print statements.
2017-12-03 09:28:08 -06:00
cigamit cd8618f5fd More updates for issue #1072
- Moving the json_decode to associative arrays.
- Add update poller cache validation check that was previously missed
- Minor reformating of function calls, database calls, etc.
2017-11-23 08:30:08 -06:00
Tony Roman 6732e2ddd8 Fix up data input whitelist for realz 2017-11-22 12:22:42 -05:00
Tony Roman af4f440ec9 Update input whitelisting to require defining configuration variable 2017-11-22 07:58:41 -05:00