Commit Graph
4260 Commits
Author SHA1 Message Date
TheWitness 110ddb8647 More robust resolution to #4403
This solution should address all the current oddball timezones.
2021-09-19 16:00:20 -04:00
TheWitness 11f23ccbde Minor logging updates 2021-09-15 08:10:51 -04:00
TheWitness 33506cd2c0 Fixing Issue #4352 Undefined Indexes
Second attempt after testing
2021-09-14 20:53:35 -04:00
TheWitness 4028c85e5e Fixing Issue #4352 Undefined Indexes
Undefined indexes experienced when attempting to create graph from template
2021-09-14 20:44:55 -04:00
TheWitness 63e1998aab Minor update related to #4390
This allows $ret calls that were initially empty to not trigger an error.  This was applicable for the graph refresh hook that, if the user has no default setting, will initialize as null.
2021-09-08 18:55:52 -04:00
TheWitness b69f1ee34d Fixing Issue #3787 - AES256/SHA256 Support
* Add SHA256 and AES256 for snmp polling
* This is also added to spine
2021-09-08 00:22:29 -04:00
TheWitness 888707aeca Fixing Issue #4390 - Add Plugin Chaining Warnings
The plugin API should detect when plugins are not behaving properly with return variables required for chaining
2021-09-06 12:28:47 -04:00
dwpaulx 2cae4cad8b Issue #4347 : Workaround PHP race that results in hanging rrdtool processes (#4348)
There is a race in proc_open in PHP that is currently not avoided by
setting FD_CLOEXEC on the pipe file descriptors (with the 'e' flag for
the pipes). What happens, in a multithreaded Apache environment, when
multiple rrdtools are attempted to be launched (for example, when a lot
of graphs are requested at once) is this:

Thread 1: creates pipes for stdin/stdout
Thread 2: creates pipes for stdin/stdout
Thread 1: forks process x
Thread 2: forks process y
Process x: inherits pipes from Thread 1 and Thread 2
Process y: inherits pipes from Thread 1 and Thread 2
Process x: closes 'other side' of pipes from Thread 1
Process x: executes rrdtool
Thread 1: closes 'other side' of its pipes
Thread 1: writes command to rrdtool (no trailing newline)
Thread 1: closes stdin pipe to Process x
Process x: receives command from Thread 1
Process x: waits for more data, or stdin to close
Process x: hangs, because the pipe is still open in Process y
Thread 1: waits for data from rrdtool, which never comes
(meanwhile, the same thing happens between Thread 2 and Process y)

This is really a PHP bug, and I'll see if there's a possibility to get
that fixed there, but this at least fixes the problem by allowing
rrdtool to exit, itself, instead of waiting for stdin to be closed.
2021-09-05 15:44:03 +00:00
Browniebraun 153f84c6d8 renaming GUI Modes
next-gen becomes compact and legacy becomes standard.
2021-09-05 17:03:40 +02:00
Greg ORIOL b314a6fcb9 Additional fixes of error callbacks for php 8.0+ after #4383 (#4386) 2021-08-31 13:18:52 +01:00
netniV 863d185b27 SNMP Agent may not find a cache item (#4382)
Closes #4382
2021-08-31 02:27:26 +00:00
Greg ORIOL 59d929acc7 Fixes error callbacks for php 8.0+ on 1.2.x (#4383)
* Fixes error callbacks for php 8.0+

* Adds changelog entry for #4383
2021-08-29 10:35:08 -04:00
TheWitness 632221e314 Fixing Issue #4381 - Fatal Errors Committing when not in transaction
Fatal Errors can occur if you are not in a transaction and you attempt to commit one
2021-08-28 17:59:17 -04:00
TheWitness 02c5144307 Refixing #4271 - Continued timeout of registered processes
The logic that was placed into the service check was flawed resulting in incorrect timestamps in the database.

I've yet to check the timeout handling.
2021-08-28 09:57:56 -04:00
Petr Macek 23955c07e5 display at least username when full name is empty (#4367) 2021-08-27 14:48:35 +01:00
Petr Macek be13b75b8d fix#4353 (#4355) 2021-08-18 12:38:10 +01:00
Petr Macek e4926ebcb0 fix ipv6 ping, freebsd ping paramters (#4333)
* fix ipv6 ping, freebsd ping paramters

* update
2021-07-02 21:19:36 -04:00
TheWitness 9355593845 Turn on Data Source Validation function when Data Source Trace is enabled
Also getting some of the comments in proper phpDocumentation style.  I feel I've been here before.
2021-07-01 13:02:09 -04:00
TheWitness 9c1be3a6a4 Additional fix to #4297
Missed one preg_quote() removal
2021-07-01 12:04:06 -04:00
netniV e73862ec47 Automation attempts to call undefined debug function (#4330)
Closes #4330
2021-06-30 02:36:15 +00:00
netniV 6cf5be098b Fix typo on previous commit 2021-06-28 14:38:06 +00:00
netniV 283c2ab76f Fixes for #4324, #4325, #4326
issue#4324: Date/Time format of replacement fild on graph cannot be changed
issue#4325: Make identifying rows when editing graph items easier
issue#4326: When using large lists, selection is visible in dropdown menus
2021-06-27 20:43:13 +00:00
netniV 06e46f4d6b Fix display message on data query graph add failure 2021-06-27 19:13:06 +00:00
netniV c414764767 Restore DSV_LOG, remove random prints, fix script output 2021-06-27 19:11:04 +00:00
TheWitness b05b547c51 Fixing Issue #4273 - Device CLI generating errors
There were multiple fixes to this file, but this corrects issues with the Script Server script testing.
2021-06-25 17:25:02 -04:00
TheWitness a031c5b20a Fixing #4283 - CSS Alternate support to include worker-src
Cacti Plugin Authors need to extend $alternates support to include 'worker-src' for services like Google Map API on newer browsers
2021-06-25 15:46:58 -04:00
TheWitness 81e5fc548d Add Batch Gap Fill/Float Parallel and Fix on Bug #4317 and #4316
- Allow the Cacti administrator to perform bulk gap filling and floating in parallel
- Remove Spikes CLI interface is unable to provide localized spike, gap fill or float operations
2021-06-21 16:00:33 -04:00
TheWitness 38399be338 Fixing two performance bugs #4314 and #4315
- If Cacti runs out of resources (file descriptions via a ulimit) and DSStats is running, don't flood the Cacti log with errors
- When disabling the snmpagent, you can introduce significant delay to data collection
2021-06-20 13:51:15 -04:00
netniV 43cc617d02 Fix up for #4309, following on from #4250 2021-06-17 23:06:21 +00:00
netniV 8f6637c292 Remove erroroneous trace logging 2021-06-14 14:14:19 +00:00
netniV c5c088d2d1 Further fix of test_data_source() [#4250] 2021-06-11 20:05:00 +00:00
netniV 5a2d51c02f Further fix of test_data_source() [#4250] 2021-06-09 14:00:59 +00:00
netniV 9c5720137b Unable to create graphs due to Data Source verification failure (#4250)
Closes #4250
2021-06-05 20:32:01 +00:00
netniV ed8cc7cd5f Fix minor issue with #4271 2021-05-21 16:51:10 +00:00
netniV cd632331a1 Another update for #4271 2021-05-20 00:43:46 +00:00
netniV 076ee5745f SNMP library can display extra warning messages when host does not resolve (#4267)
Closes #4267
2021-05-19 22:11:56 +00:00
TheWitness 04ee69168c Fixing #4271 - Continued timeout of registered processes
By moving the calculation fully under SQL, this should solve the problem.
2021-05-18 20:37:37 -04:00
Kris Shannon c5b8e5838e Remove bogus early return from nth_percentile_fetch_statistics (#4265) 2021-05-18 23:30:21 +01:00
kim-fitnessandMark Brugnoli-Vinten 232aeb914e Fix bug #4259 (#4260)
Co-authored-by: Mark Brugnoli-Vinten <netniv@hotmail.com>
2021-05-14 17:56:54 +01:00
kim-fitness bdc353e96b Fix issue #4251 (#4252) 2021-05-11 18:02:40 +01:00
TheWitness 1f39156de2 Light PSR following #4241
Just some cleanup.  No programmatic changes
2021-04-22 08:47:14 -04:00
Browniebraun 7b20dfc805 support to sort sites within a tree
related to #4241
2021-04-22 14:12:50 +02:00
TheWitness b1686206a3 Correct two minor issues, one unchecked variable and one with a forced zone issue 2021-04-21 19:21:56 -04:00
Chris RowatandChris Rowat a7a336ff90 Fixing a couple database related typos and adding support for SSL CA checking without client side certificates (1.2.x) (#4234)
* Fixing a couple database related typos and adding support for SSL CA checking without client side certificates

* Updating changelog

Co-authored-by: Chris Rowat <chris.rowat@terago.ca>
2021-04-14 13:20:23 -04:00
TheWitness 92a5b0e27f Re-fixing Issue #4223
Parallel boost restart due to timeout can result in errors
2021-04-14 08:42:34 -04:00
TheWitness 3d62cf2723 Fixing #4223 - Parallel boost killing incorrect processes 2021-04-13 18:34:15 -04:00
TheWitness 8af84e4b11 Fixing #4228 - Redirect ssues after login
- Redirection issues after login under specific circumstances
2021-04-13 08:35:19 -04:00
Sean Mancini 3b845b8e21 Update api_automation.php (#4226)
fix misspelled variable
2021-04-12 17:55:42 -04:00
TheWitness c21d0ba91b Final resolution to #4215
This change modifies logic slightly as follows:

1) Retry only twice for a connection (speed up the GUI in offline mode)
2) Don't update resource cache when in offline or recovery, you could downgrade yourself
3) Don't flush_boost() function if you are not a remote data collector
4) Better logging for automation to indicate offline or remote
2021-04-11 20:04:58 -04:00
TheWitness 0f987ca15a Two issues with db_fetch_cell*() with poller #4215 2021-04-10 15:19:45 -04:00