- Add external link support in menu (probably need more work)
- Added Support -> Documentation menu item
- Added Support -> Users Community menu item
- Made documentation loading dynamic, if release documentation is
not included it will redirect to Github documenation
- Do not allow second data source to be added to an SNMP Get data
- Additionally clean up some messy code
- Do data source rra removal through callback
This patch adds functionality to control the debugging of low level routines
via defines within the config.php file. In order to allow flexibility, if
these are defined, variables within the $config array are primed as true,
otherwise false.
These elements within the $config array are defined in uppercase to highlight
the difference between these are other ordinary configuration optios.
Should a function or program need to enable debugging of these various
options, simply setting the value to true in the $config array will enable
logging from that point. Inversely, setting it to false will stop logging
from that point.
The only option that is of limited use is DEBUG_READ_CONFIG_OPTION_DB_OPEN
that will only work up to the database being open. Setting this to true
after the database has already been opened will not automatic turn off the
companion option DEBUG_READ_CONFIG_OPTION since the db_connect_real() will
not be called again.
The list of options and their functionality are:
- DEBUG_READ_CONFIG_OPTION : record use of read_config_option()
to cacti-option.log in the system temporary folder
- DEBUG_READ_CONFIG_OPTION_DB_OPEN : Once the database has been
successfully opened, disable DEBUG_READ_CONFIG_OPTION
- DEBUG_SQL_CMD : Always write a copy of the SQL being requested
to the cacti-sql.log file in the system temporary folder
- DEBUG_SQL_FLOW : Write flow of db_xxx calls to the cacti-sql.log
in the system temporary folder.
The system temporary folder is normally set to one of the following:
- Linux, CLI: /tmp/
- Linux, WEB: Apache/Ngix's temporary folder
- Windows, CLI: %TEMP%
- Windows, WEB: Temp folder of web user or %WINDIR%\TEMP
* 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