* 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
This PR corrects an issue with the template import functionality where
browsers will appear to be attempting to upload a file but Cacti never
receives the variables to know that a file was attempted.
System temporary folder must be writable to upload a file so Cacti will
now error should the temporary folder be unwritable.
* 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
- 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.
* 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
* 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)
* 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.
* Feature#1670: Improve Graph Management to show type of source for a graph
This commit adds functionality as requested in #1670 by adding an extra column to the graph management page to display the source type of a graph ('None', 'Data Query', 'Template')
* Minor update to make column sortable
* 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
* 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
* 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
* 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
This commit adds i18n language facilities to the context menu displayed on graphs as per #1703. It also adds a submenu icon to make it clearer that an entry has a submenu.
* Feature #1676 - Allow duplicate sysnames during network discovery
This commit adds functionality to enable duplicate sysnames to be added to the system on multiple hosts. An option will be visible in the settings of the Network being discovered to enable this functionality which is disabled by default to maintain the current level of functionality
* Fix QA issue with DB fieldname
* Locate field after add_to_cacti field
* Make Travis Happy
* Fix minor QA issue
* Feature #1691 - Add a 'Copy graph' option to context menu of graphs
This commit adds a 'Copy graph' option for feature #1691 to the context menu of graph images.
* Minor QA fix
* Minor QA fix
When upgrading to v1.2.0 a new set of fields are added to the Poller table to allow customisation of the number of processes/threads per poller. That helps to vary the amount used if any given poller has more or less power than another.
However, the system-wide defaults should be migrated against each poller present in the poller table during the upgrade, otherwise both values default back to 1 which seriously increases the time to poll (especially if you have a super high timeout value).
* 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.
* Default snmp quick print setting resulting in false poller ASSERTS on
some php releases
* Also enhance the cacti snmp functions to require only 3 or 4
parameters.
* Minor format change to the vendor file classSNMP.php. No functional
change.