Commit Graph
3170 Commits
Author SHA1 Message Date
cigamit 4fcf03d280 Resolving Issue #1765
Graphs Missing when Expand Devices on and Data Query sort type.
2018-08-06 20:33:03 -05:00
cigamit 7ef666c562 Resolving Issues #1804 and #1805
Do not create 64bit graphs on Windows devices
Pre-populate the settings database with defaults
One minor wording change in Automation
2018-08-06 17:30:48 -05:00
Mark Brugnoli-Vinten 15ff2d4d74 Resolving issue #1802 (#1803)
This patch should correct some functionality issues within read_config_option()
so that settings are not incorrectly primed if the databsae is not opened yet
as noted in #1802
2018-08-06 17:09:37 -05:00
Tom Yearke efc6b83466 Import: Fixed handling of references to objects not included in file (#1796)
* Import: Fixed handling of references to objects not included in file

When exporting an object with the "Include Dependencies" option disabled and then importing the resulting file, the import process will not complete successfully. This is because the mapping of object hashes to object IDs only tracks objects that have been included in the file.

This commit resolves the issue by first loading the mapping with all existing hashes and IDs before processing the file's objects. This results in the expected behavior when a referenced object is not in the file but is already loaded into the Cacti installation.

* Revised #1787 based on review from @cigamit

- Removed unnecessary double quotes
- Encapsulated `foreach` on possibly-empty array with size check
- Added whitespace

* Updated CHANGELOG to include #1796
2018-08-06 07:43:18 -05:00
Tom 191e498a02 do not lose data source Index Value if a SNMP table entry disappears or changes its table index (e.g. ifTable) (#1790) 2018-08-06 06:44:56 -05:00
Tom 1d057a60b2 run_data_query: fix flipped arguments in an SQL query (snmp_query_id and host_id were flipped) (#1789) 2018-08-05 12:30:03 -05:00
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 e0f10ef02f One additional possible option to the normalized template
If the template is not found, indicate as such to aid in debugging.
2018-08-02 21:06:30 -05:00
Mark Brugnoli-Vinten 51ee26ce1a Resolving issue #1689 (#1779)
* Resolving issue #1689

As noted in issue #1689 (Technical Support's RRDTool version should show
detected RRD version) the version of the RRDTool is never actually displayed.
The code has now been updated to properly handle versioning and displays both
the configured and installed versions.

The setting for rrdtool_version has been updated to a proper minimum version
number so that the cacti_version_compare() function may be effectively used.
This means that the constant values of RRDTOOL_VERSION_1_3 through
RRDTOOL_VERSION_7 have now been removed from the system.

* Some QA updates

* Further QA fixes
2018-08-02 18:01:25 -05:00
Mark Brugnoli-Vinten 994621d019 Resolving issue #1771 (#1777)
* Resolving issue #1771

This commit resolves issue #1771 by introducing new checkbox styles for each
theme.  It also ensures that the label is displayed only when wanted which is
usally only for the grouped checkboxes.

* Minor QA fixes
2018-08-02 17:58:54 -05:00
cigamit 9fb5ba2eba Resolving Issue #1772
Only notify the Administrator if the checkbox is ticked.
2018-07-31 19:53:57 -05:00
cigamit 75189c61f9 Resolving Issue #1761
- Graph management shows bogus template names
- Additionally, allow Multi-selects to have a reasonable width
- For Non-Templated and Template Not Found, properly show those things
as select items in the filter.
2018-07-30 20:43:18 -05:00
cigamit 8312b020e3 Add additional logging for #1766 2018-07-29 12:18:21 -05:00
cigamit 8a13fc4cc1 Resolving Issue #1766
Properly support upto 3 default automation templates
2018-07-29 12:07:59 -05:00
cigamit 6f679e97a1 Resolving Issue #1765
Some tree graphs not rendering as they should be.
2018-07-29 11:27:11 -05:00
cigamit 336171c1a9 Add Cron Interval to installer correct i18n issues
This will allow cron interval to be specified in the installer in order
to reduce the likihood off issue due to incorrect settings.
2018-07-28 21:27:58 -05:00
cigamit ba8fd08526 Correct spelling error 2018-07-28 20:17:27 -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 9a5cf5ae54 Inform the primary Cacti administrator of problems by Email 2018-07-27 17:31:22 -05:00
Mark Brugnoli-Vinten 33aa71448e Feature 1734 - Visual enhancements to RRD error message when file not found (#1755)
* Remove unnecessary issues

* Feature #1734 - Visual enhancements to RRD error message when file not found

This commit adds a visual enhancement to the RRDTool's file not found error.

* Further improvements
2018-07-26 21:32:54 -04:00
cigamit 04033667ac Resolve HTML validation warnings
- align attribute is deprecated in HTML5,
- JavaScript should not be inside of table body sections.
2018-07-26 20:28:57 -05:00
Mark Brugnoli-Vinten 8ea17f0093 Resolving Issue #1350 (#1753)
* Ensure previously selected field isn't wiped when ediing automation rule item

* Resolving Issue#1350

As per #1350, when switching an Automation Tree Rule's leaf type, remove invalid Automation Rule Items (Object Selection and Tree Creation criteria)
2018-07-26 08:36:21 -04:00
Mark Brugnoli-Vinten ed57331dfd Fixes for Issue 1729 and 1730 (#1747)
* Fixes QA issues with upgrades from older versions

* Redirect install/index.php to install/install.php

* Further QA fixes

* Ensure upgrade matches new password field length

* Add 'Installation In Progress' message

* Fix QA issues
2018-07-25 08:45:41 -04:00
cigamit e31122d1e6 Resolving Issue #1748
Resolving this ajax issue a bit differently.
2018-07-25 07:42:29 -05:00
cigamit a13b911d4b Resolving Issue #1735
This resolved the use of the serializeObject taking all checked on
non-checked objects.  The new function, serializeForm will serialize all
form data, checked or not.
2018-07-23 18:53:49 -05:00
Mark Brugnoli-Vinten 237e9a70ff Fix for issue #1732 (#1737) 2018-07-23 08:21:47 -04:00
cigamit f515042abd QA on issue #1731
Ensure compatibility on other browsers and fix one bug
2018-07-22 12:50:12 -05:00
cigamit 487d9fa8e1 Resolve Issues #1731 & #1672
Warn a user if they are going off page and there are unsaved changes
2018-07-22 11:02:51 -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
cigamit 377dfb708f Resolving Issue #1726
Poor page performance editing a Graphs Graph Items
2018-07-21 13:51:59 -05:00
Mark Brugnoli-Vinten da8b5169b7 Feature #1588: Check that PHP can run a test file (#1722)
* Feature #1588: Check that PHP can run a test file

* Feature #1628 - Allow the User to define a initial Network Discovery during Setup

* Fix QA issue with PHP 5.4

* Replace \n with PHP_EOL

* Minor changes to tabs vs. space and PHP_EOL

Will have to update packages based upon this too.

* Another minor pull where PHP_EOL was removed
2018-07-21 12:12:25 -04:00
Mark Brugnoli-Vinten ef7a318ef1 Feature #1692 - Separate option for logging Input Validation issues (#1696)
* Feature #1692 - Separate option for logging Input Validation issues

This commit adds a separate option for feature #1692 to enable logging Input Validation issues even when developer mode is turned off

* Finalise renaming of developer_mode to log_validation for cleaner understanding

* Remove log_validation from legacy location
2018-07-21 11:44:06 -04:00
Mark Brugnoli-Vinten fde08a533f Issue #1723 - die() messages should include \n for better logging (#1724)
This corrects issue #1723 where die() messages appear in log files without a new line character causing logs to appear corrupted.
2018-07-21 08:31:57 -04:00
Mark Brugnoli-Vinten 6bb5b36b64 PR for Issue #1716 and #1718 (#1720)
* Fixes for issues #1716 and #1718

* Add changelog details

* issue#1721 - Console Side Bar not correct on first login
2018-07-19 06:54:33 -04:00
cigamit a6d8d7c7b6 More minor changes 2018-07-15 14:02:32 -05:00
cigamit 5435503e4a Don't need to double convert 2018-07-15 14:00:06 -05:00
cigamit 14fc304609 Reversed filters re Issue #1669 2018-07-15 13:47:10 -05:00
cigamit fbd1804930 Resolving Issue #1669
Console log header grammar issue
2018-07-14 15:31:42 -05:00
cigamit 43a45e63a2 Resolving Issue #1682
Slow Select Statement lib/api_automation.php
2018-07-14 15:10:29 -05:00
cigamit 179cd07b73 Resolving Issue #1711
Support specifying MySQL SSL file paths in the database API
2018-07-14 14:53:46 -05:00
cigamit d76b97f9a0 Resolving Issue #1710
RRDtool create command causes first update to fail
2018-07-14 14:28:04 -05:00
cigamit 06dd17ef56 Resolving Issue #1709
Dont warn when attempting to make updates in the past
2018-07-14 13:43:16 -05:00
Mark Brugnoli-Vinten 94240ac390 Fixes for issues #1589 and #1690 (#1706)
* Fixes for issues #1589 and 1690

This commit applies fixes for #1589 (Checking temporary folder is writable) and #1690 (Report a warning if collation is not utf8mb4_unicode_ci)

* Remove debug code
2018-07-14 11:23:23 -05:00
Mark Brugnoli-Vinten cab3863f2b PR for issues #1282 and #1700 (#1701)
* PR for issues Â#1282 and #1700

This pull request adds additional functionality for #1282 allowing network discovery to email upon completion and also corrects issues found during #1700 with unauthenticated mail causing errors to appear.

* Fix settings QA issue
2018-07-14 10:49:15 -05:00
Mark Brugnoli-Vinten d3ee9512bf Fix for issue #1298 (#1702)
* Fix for issue #1298

* Minor QA fix
2018-07-11 04:39:09 -05:00
Mark Brugnoli-Vinten 0259c84f48 Feature #1677 - Default Tree node sorting to be inherited (#1678)
* Feature #1677 - Default Tree node sorting to be inherited

This feature changes the default sorting option to be 'Inherited' when creating new nodes (including root ones) whilst editing a tree. This does not update existing ones to be inherited.

Note: if a DB has already been updated to 1.2, either downgrade and upgrade again or modify the sort_children_type default on the graph_tree_items table to be 0 rather than 1.  Failure to do so will result in manual sorting still being applied do to SQL/PHP assuming that a zero means no value!

* Minor change to update script.
2018-07-04 11:11:47 -05:00
cigamit ac86cfe3b2 Resolving Issue #1660
Reports based upon Tree don't maintain graph order
Also some i18n misses
2018-06-17 09:15:55 -05:00
cigamit 0cc7ae91a0 Minor format change in lib/template.php 2018-06-09 12:08:33 -05:00
cigamit fc03a5edb4 Another minor change for upcoming location branches 2018-06-09 11:58:27 -05:00
cigamit a34dd3538d Minor change due to audit 2018-06-09 11:14:56 -05:00