Commit Graph
204 Commits
Author SHA1 Message Date
Mark Brugnoli-Vinten 1ca32862a9 Resolving issue #1920 (#1922)
* Resolving issue #1920

* Minor QA issue
2018-09-14 20:59:52 -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 292aa3b75a Resolving Issue #1528
Saving a device can result in WARNINGS related to string vs. array
handling
2018-04-21 18:49:59 -05:00
Mark Brugnoli-Vinten b1793d18df Corrects #1546 - sizeof() issue with 1.2 (#1549)
* Issue #1537: Numeric validation not ignoring blank elements

* Fix second instance of numeric_list issue

* Fix incorrect use of sizeof()
2018-04-19 07:14:12 -05:00
cigamit 85ecf7f57b Merge remote-tracking branch 'refs/remotes/origin/develop' into feature/1.2.x
# Conflicts:
#	docs/CHANGELOG
#	lib/utility.php
2018-02-26 21:24:43 -06:00
Patrick 697dda8779 Updated translations (#1411)
* Updated Dutch Translations

* Updated Dutch Translations

Merge conflict, needed to re-compile the .mo

* Updated Dutch Translations with latest Cacti.pot

* Fixed some inconsistencies

* Fixed obsolete code

* Updated Dutch Translations

* Fixed typo

* layout changes only

* Updated Dutch translations

* Updated changelog

* Updated changelog
2018-02-26 21:20:20 -06: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
netniV 27e858e089 issue#1040: Correct sizeof() issues with get_data_query_array() and get_graph_group() results (#1299) 2018-02-03 06:59:20 -07: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 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
Patrick 4bc2f4c0bc Various updates (#1073)
* Updated Dutch translations
- Fixed i18n

* Defined fields in queries

* Fixed changelog

* Updated Dutch translations

* Various fixes

All committed files:
- true|false to lowercase

add_perms.php:
- displayGroups() was undefined

add_tree.php:
- duplicate case for '--quiet'

repair_templates.php:
- correction function call to diaplay_version()

gettext.php:
- PHP EOF unneeded

* Fixed warnings in graph_view

* Updated Dutch translations
- Updated Dutch translations with latest cacti.pot file

* Updated Dutch translations
- Fixed conflicts in translations

* Various fixes
- Changed array access identifiers
- Fixed some code layout changes
- Fixed one i18n entry in api_automation.php

* Updated changelog

* Layout changes (tab instead of spaces)

* Layout changes (tab instead of spaces)

* Various fixes
- Changed array access identifiers
- Fixed some code layout changes

* Some fixes for better querying

* Layout change only

* Updated Dutch translations

* Updated changelog

* Updated changelog

* Fixed upgrade script 1_1_28.zip

* Few final fixes after CR or changes

* Updated Dutch translations
2017-11-11 05:45:12 -06:00
Wolfgang Stöggl 4a1a15d72c Correct spelling of RRDtool (#1038)
- Change RRDTool -> RRDtool with a lowercase t.
- Replace in all files except *.mo, *.po, *.pot
2017-10-16 11:32:05 -04:00
Patrick 61ae57c5d2 Updated Dutch translations (#999)
- 1007 translations remaining (70% translated)
- English typo fixes
2017-09-23 16:27:28 -05:00
cigamit 0fbd1b6d03 Resolving Issue #888
Rebuilding Poller Cache when External data sources are present results
in false positive warnings in the log
2017-08-05 12:10:57 -05:00
cigamit b3ecf50045 Resolving Issue #884
Develop branche not updating properly.  Please insure you repopulate
poller cache.
2017-07-27 18:14:26 -05:00
cigamit d592d55935 issue: Data Queries sharing a Data Source can result in poller_output table not empty errors 2017-07-26 23:08:54 -05:00
cigamit 4fd458069f Use preg_split over explode for issue #865
Plus use an additional trim on the string to prevent out of order
arguments
2017-07-26 21:33:34 -05:00
cigamit afa98439b6 Resolving Issue #865
Escape Data Query arguments to prevent issues with special characters
2017-07-26 21:24:14 -05:00
cigamit baaac6a8f1 Minor formating change for readability 2017-06-08 06:07:21 -05:00
cigamit 1ab240ccfc Resolving Issue #756
Multiple Tranlsation Issues.  Additionally trimming whitespace and
removing line breaks from form descriptions.
2017-05-30 06:46:22 -05:00
patrick 16e2b7c052 Replaced all if statements and inline if statement with $variable != '' where strlen($variable) was used to determine if a string was empty or not 2017-05-18 01:14:15 +02:00
cigamit c862851b7e Optimizations around data input methods
No functional changes
2017-05-13 11:08:34 -05:00
Tony Roman 8a179d7d7f Fix up to move if elseif else blocks to PSR 2017-05-07 19:57:36 -04:00
Patrick bda405dc35 Optimisations for lib/utility.php 2017-04-28 17:00:56 +02:00
patrick ff520ea4f4 Merge remote-tracking branch 'origin/Optimisations' into Optimisations 2017-04-26 23:24:55 +02:00
cigamit a2a2c92273 Resolving Issue #620
The table poller_data_template_field_mappings can get out of syn when
manipulating data templates.
2017-04-26 05:54:14 -05:00
patrick 7672f93e0f Optimisations for lib/utility.php
- Fixed some alignment
- Query refactor in push_out_data_input_method()
2017-04-22 00:11:19 +02:00
cigamit 8234f3a158 Resolving Issue #584
Issues reporting memory recommendation on utilities page.
2017-04-20 18:57:31 -05:00
Patrick 623611cd16 PHP7.2 changes:
- Replaced deprecated each() for foreach()
- Removed unnecessary reset() calls used for resetting pointers of an array before iterating by a foreach() loop
2017-04-18 14:40:29 +02:00
cigamit cf0d4c2b0b Reformatting in search of solution to Issue #454 2017-03-26 12:32:22 -05:00
cigamit 203d5df13b Resolving Issue #461
The function escapshellarg not appropriate on Windows
2017-03-22 07:04:34 -05:00
cigamit 207651180e Resolving Issue #427
Undefined index TotalVisibleMemorySize on FreeBSD
2017-03-15 06:54:25 -05:00
cigamit 391c50a6d0 Resolving Issue #344
Unable to upgrade to latest Cacti on FreeBSD
2017-03-04 17:31:55 -06:00
cigamit f595091835 More FreeBSD fixes 2017-01-18 20:09:25 -06:00
cigamit bf4664bf2f Wrong collation server setting. 2017-01-15 14:24:13 -06:00
cigamit f756f7173e Add new hooks for customer data input types
This is required for new WMI plugin.
2017-01-15 09:40:12 -06:00
cigamit 009feff188 Attempt to Address Memory on FreeBSD
Related to issue #207
2017-01-14 15:40:22 -06:00
cigamit a8c560966a Correcting spelling and grammar issues 2017-01-12 19:09:16 -06:00
Tony Roman 35a5988f41 Update source code files copyright to new year 2017-01-01 13:45:29 -05:00
cigamit eec705d7c3 Resolving https://github.com/Cacti/cacti/issues/98
This will issue warning when a damaged data input method is found.  It
will not resolve the corruption.
2016-12-28 08:41:20 -06:00
cigamit 7269cbfd88 Committing prototype of replication api for team review
Part of multiple polling is to support either MySQL replication, or to
replicate tables requred for remote data collection.  These changes will
enable the later method, but are not complete.

The replicate_tables in lib/poller.php function is designed to handle
each of the table replecation types.  When complete, it will handle all
table replication based upon poller state.

There may be additional table schema changes to increase performance,
but those changes have not been validated yet.
2016-12-19 21:44:34 -06:00
cigamit aed04dc055 additional minor change to recommendations 2016-09-23 07:38:11 -05:00
cigamit f2cd47911c updating recommendations
Check to see if InnoDB is enabled
Use version_compare() to avoid issues with point releases.
2016-09-23 07:31:26 -05:00
cigamit 919e509c35 resolving bug#2783 2016-09-16 06:48:47 -05:00
cigamit 2a15e8e072 resolving bug#2748 2016-09-01 20:20:44 -05:00
cigamit b523f1dea5 remove addslashes, prepared statements, wc3 validation, double to single quote
this is required for preparation of magic_quotes_gpc.
2016-08-28 15:27:48 -05:00
cigamit 8d07700fdc resolving bug#2340 2016-08-18 19:23:15 -05:00
cigamit 76d75b0de3 more snmp engine id changes 2016-08-17 20:53:34 -05:00
cigamit 03b480f813 resolving bug#2164 2016-08-15 20:30:07 -05:00