Commit Graph
176 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 07544275a3 Another MySQL 8.x Reserved word related to #1655
The word 'path' appears to be moving into the reserved domain as well.
Related to issue #1655
2018-06-02 09:07:15 -05:00
cigamit 27c8f958ba Resolving Issue #1606
Boost debug log not functional
2018-05-10 18:10:26 -05:00
Mark Brugnoli-Vinten 184007a907 Feature #1597: Ensure synchronised files have same attributes as originals (#1599) 2018-05-08 17:14:00 -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
netniV a09a9776ec Further fix for #1451 to prevent empty files being left behind (#1452) 2018-03-07 06:03:19 -06:00
cigamit 901537e1b6 Merge remote-tracking branch 'refs/remotes/origin/develop' into feature/1.2.x
# Conflicts:
#	docs/CHANGELOG
#	lib/ldap.php
2018-03-03 13:10:27 -06:00
netniV 0c698d5c4c Fix issue #1426 where remote poller was not using unique filenames (#1431)
* issue #1426: Fix issue where remote poller was not using unique filenames when attempting to verify files

* Reinstate removal of temporary file

* Condense output of poller syntax check to a single line

* Reduce lines and fix str_repalce to str_replace

* Small typo
2018-03-03 12:58:52 -06:00
Tony Roman 1ce66b5fde Merge branch 'develop' into feature/1.2.x 2018-02-25 20:12:19 -05:00
cigamit 65c64f76c3 issue: Install directory bypassed by site replication 2018-02-22 19:24:22 -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 99d19d5312 Correct whitespace and formatting issues
Whitespace and formatting in lib
2017-11-19 14:35:17 -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 c3419aa36e Various fixes && Updated Translations (#1032)
Good catch on the bug fixes too.  Hard to spot.
_______________________________________________________

* 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

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

* Updated Dutch translations
- Fixed conflicts in translations
2017-10-15 07:27:25 -05:00
cigamit 9a9eb3c941 Resolving Issue #1003
Redirecting standard output and error to the console causes poller
slowdowns.
2017-10-11 18:11:37 -05:00
cigamit bfb10e2e60 Resolving Issue #995
Redirecting stnadard output to /dev/null causing issues with Report
sending
2017-09-23 06:45:52 -05:00
cigamit d9eb268179 Resolving Issue #970
- Resource Cache does not properly cache in plugin sub-directores on
remote data collectors.
- Adding small feature to allow purging/rebuilding of the resource cache
from the Cacti Utilities page
- Backporting some html_escape() function calls replacing
htmlspecialchars() on the Utilities page due to scope of change.
- Updating cacti.pot due to minor feature enhancement.
2017-09-17 09:35:45 -05:00
cigamit 37c001c945 Resolving Issue #642
RRA not written or WARNING: Poller Output Table not Empty for non
templated data sources
2017-07-02 14:02:06 -05:00
cigamit ac652e4df8 feature: Allow plugins to exclude files and directories from their remote poller syncronization process
Format is "nosync: directory1, directory2, *.extension1, *.extension2,
..."
2017-07-02 11:54:14 -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
Tony Roman 8a179d7d7f Fix up to move if elseif else blocks to PSR 2017-05-07 19:57:36 -04: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 10a45da3f6 Resolving Issue #449
exec_poll_php does not flush pipes when using script server
2017-03-18 14:59:02 -05:00
cigamit 4d484b4af3 When executing a Full Sync, if the table structured has changed, recreate the remote table 2017-03-12 11:39:30 -05:00
cigamit 2cb77cda24 Minor cleanup after Pull Request #352 2017-03-11 07:13:52 -06:00
earendilfr 72a4c7a794 second part of lib/poller.php fix with the db_qstr for the other choice (DATA_INPUT_TYPE_SCRIPT_QUERY) 2017-03-08 20:37:00 +01:00
earendilfr 6b0643c3af Fix the error in merge request #352 :
* the $index_recache string already contains the / separator. I don't need to add in preg_match function
* some errors in the methods to take in count the storage of the modified value
* a cosmetic change that permit to clean the debug value in debug_log_return function after the display
* a change in poller function that fixe an error when your index field in the XML file is a fake index oid
2017-03-07 22:50:06 +01:00
cigamit 8613674014 Ignore .git folder in resource cache replication 2017-02-07 19:31:35 -06:00
cigamit 6f145e83a3 Fix for remote poller - is_writable
is_writable returns false if the file doesn't already exist
2017-01-22 02:28:42 -06:00
cigamit 836a8b0f56 More Remote Data Collector testing 2017-01-16 15:45:46 -06:00
cigamit 168b7b1023 Offline mode testing 2017-01-16 14:59:43 -06:00
cigamit a52102b6eb Don't update the resource cache unless you have multiple data collectors 2017-01-16 11:46:38 -06:00
cigamit 0987286f4a Resolving Issue #209
This adds more checks before we attempt to output data.  The remote data
collector user will need write access to these files.  But at least we
won't crash if they are not updated now.  Also, if you test the poller
by another user, the temp file will always te unlinked now.
2017-01-15 09:38:45 -06:00
cigamit cddf910b38 Make data staging actions more consistent
This should be a function, but not today.
2017-01-13 06:34:14 -06:00
cigamit 2774972834 Exclude more files from resource cache 2017-01-12 19:47:01 -06:00
cigamit 23ad901594 Another small fix to correct log errors 2017-01-10 21:02:01 -06:00
cigamit 187f0881fc Wrong directory permissions on create 2017-01-10 20:39:46 -06:00
cigamit 542627a1c8 Two issues
1) Adjust for differing table sizes
2) Include the settings table
2017-01-08 12:33:26 -06:00
cigamit f3147f8058 Exclude *.exe and *.pack
These files in weathermap are quite large, and are being excluded.  This
is relative to issue #148
2017-01-07 10:34:24 -06:00
Tony Roman 35a5988f41 Update source code files copyright to new year 2017-01-01 13:45:29 -05:00
cigamit 9df14a470a Include images in stage out 2017-01-01 11:46:03 -06:00
cigamit 2693e6ea89 More table replication for data query execution 2016-12-30 18:21:39 -06:00
cigamit a01d01a599 Fix one open issue and introduce force push
For push allows you to forcibly push the database configuration to the
remote poller in cases where you need to use 'offline' mode.
2016-12-29 15:16:14 -06:00
Bernhard M 2ea1167cd2 Update poller.php
change from String to Array value, to fix multi field problem.
2016-12-29 22:00:31 +01:00
cigamit 62ae15cdfb Correcting sql error 2016-12-29 12:05:03 -06:00
cigamit b52164e5f4 Resolving #103
https://github.com/Cacti/cacti/issues/103
2016-12-29 11:53:17 -06:00
cigamit d548201c97 Address realtime issues do to remote polling introduction 2016-12-28 21:59:27 -06:00
cigamit 2d92945dee Updates for remote pollers. 2016-12-27 19:57:09 -06:00