Commit Graph
465 Commits
Author SHA1 Message Date
TheWitness 6a5f613707 Fixing Issue #4141
Unusually long comments do not wrap when viewing graphs
2021-02-20 12:57:24 -05:00
browniebraun 44226b3489 Complete #4074
- ensure that mime type will be updated.
- stop that rrd_function_process_graph_options will be forced to export PNG format only if Realtime has been identified as requestor.
2021-01-31 18:50:53 +01:00
Petr Macek b3409b388b Fix dateformat in graph (#4061)
* Fix dateformat in graph

* Fixing issue #4061
2021-01-18 07:49:32 -05:00
TheWitness 84bfcead0d Improve Issue #3945 based on feedback
- Graph CSV export NaN with wrong date range if browser timezone is different with web server
- This will ensure that the times in the browser match the backend too.
2021-01-06 13:34:19 -05:00
TheWitness bc632bc30d Fixing Issues #3945 and #4031
* Graph CSV export NaN with wrong date range if browser timezone is different with web server
* Data Collectors and Data Profiles Filter Sub-Panel Go buttons not working as expected
2021-01-04 20:25:14 -05:00
TheWitness df54a4a3f3 Updating copright years 2021-01-01 20:28:58 -05:00
TheWitness 11807096d2 Fixing Issue #3920
CSV Export with Summation Rows
2020-11-21 16:02:09 -05:00
TheWitness bc7c54d123 Fixing Issue #3874
The SHIFT functionnality in graphs does not accept negative values
2020-10-21 08:54:25 -04:00
ddb4githubandJing Chen a71808c398 Fixed: some typo and syntax error (#3626)
Co-authored-by: Jing Chen <three_chenjing@sohu.com>
2020-06-18 18:05:50 +01:00
TheWitness 896f24b0c6 Fixing Issue #3569
Errors creating an Error Image when system has enviornment issues
2020-05-24 15:04:36 -04:00
TheWitness 1f122e9ef9 Fixing Issue #3533
Start date for RRDfile is different between RRDfile in a Cacti install
2020-05-04 21:20:10 -04:00
YongBoLiu 6ffea1fe1e Fix #3496, percent sign(%) is doubled in graph item of AREA type with text (#3497) 2020-04-24 08:09:42 -04:00
134faa5a73 Fixed #3422: COMMENT text_format does not replace Data Query (#3423)
* Fixed#3422: COMMENT text_format does not replace Data Query if graph item does not associate to any datasource.

* Fixed#3422: Update CHANGELOG

Co-authored-by: Jing Chen <three_chenjing@sohu.com>
Co-authored-by: Mark Brugnoli-Vinten <netniv@hotmail.com>
2020-04-07 12:31:34 +01:00
FrontierLiu a5e5e1d389 1.2.x enchancement display command lengths (#3407)
* Update CHANGELOG

* Update rrd.php
2020-04-06 01:17:47 +01:00
TheWitness d65f40d2bf Abstract Cacti session handler 2020-03-29 19:08:29 -04:00
netniV fea919e8fe When guest users have access to realtime graphs, remote code could be executed (CVE-2020-8813)
This is a low risk exploit as the default Cacti configuration is set such that the Guest account is disabled, the Guest account has no access to realtime graphs under permissions and the guest template user is not set.

It should also be noted, that this issue only seems to affect PHP versions before 7.2 and as such that again mitigates the likelihood of this being exploited.

However, should someone running PHP 7.1 or before, enable access to realtime graphs for guest users (which is against the recommendations of the group), it would be possible to craft a malicious packet that could be executed unwittingly.

The main reason for this is a lack of escaping around the session_id() when assigned to the poller id whilst building on the command to run poller_realtime.php. The simple fix was to hash the value so that it generated a reasonable unique poller id, that couldn't execute code.

This fix has already been verified by @mhasker before posting his findings.

Closes #3285
2020-02-23 06:09:32 +00:00
netniV 4fa9a68fb3 Update copyright to 2020 2020-01-12 12:19:49 +00:00
ddb4github 473e452730 Fixed: Support percent sign(%) in graph gprint item like legend area. (#3098)
* Fixed: Support percent sign(%) in graph gprint item like legend area.

* Fixed: Keep single percent sign(%) in non-gprint item

* Update rrd.php
2019-11-26 10:46:54 -05:00
cigamit cfb0733597 Fixing Issue #2964 Differently
* CVE-2019-16723 Security issue allows to view all graphs
* Thischange restores the check inside of lib/rrr.php and updates all but on calling of the graph function to include the user.
2019-10-19 08:01:39 -05:00
cigamit 51a96258d3 Minor fix for issue #2975
This is a hack since i18n changes may not work by setting localization on Windows.
2019-09-26 07:40:18 -05:00
cigamit 5b4d2b51a3 Resolving Issue #2975
RRD items erroneously marked as false in Data Source Info and Troubleshooter
2019-09-25 19:07:29 -05:00
cigamit ed397e563a Resolving Issue #2962
This should correct the boost and dsstat's issues.  There were a few hands on this one and it had not undergone a full regression in a while.

This update should speed things up pretty signifcantly.

First, don't check the last_update time if rrdtool is >= 1.5
Second, we can accurately assume that the filemtime() is the last update time.  This speeds things up dramatically.
2019-09-22 10:29:13 -05:00
browniebraun 061f74cb54 Support newest version of RRDproxy
Support new string format of RRDproxy v1.2.7.
2019-09-19 21:53:44 +02:00
cigamit 9edb9ef886 More testing on issue #2930
The function was actually not working.  So, using a function that searches from the end, and passing by reference to for an additional speedup.
2019-09-15 10:48:32 -05:00
cigamit 1c746cf7e0 Minor modification to trim function around #2930
This will speed up the function.
2019-09-11 06:10:53 -05:00
cigamit a2c01f8c2b Resolving Issue #2930
* When working in pipe mode RRDtool appends stderr to stdout causing SVG graphing to break
* Removing GIF87 as it's no longer supported
* Adding new Trim function
2019-09-10 21:02:35 -05:00
cigamit 75ecd5e0f1 Revert "Resolving Issue #2930"
This reverts commit e3514b8885.
2019-09-10 21:00:51 -05:00
cigamit e3514b8885 Resolving Issue #2930
* When working in pipe mode RRDtool appends stderr to stdout causing SVG graphing to break
* Remove GIF87 as it's no longer supported
2019-09-10 21:00:20 -05:00
cigamit 2b061e0729 Another tweak on issue #2925
Just some variable changes and an audit of the code just to ensure everything is correct.
2019-09-10 21:00:20 -05:00
cigamit 027d701f1b Resolving Issue #2925
Problem with consolidation function after upgade to 1.2.6
2019-09-04 23:44:56 -05:00
jav4 04f6dc9044 Use pipes to allow long command lines in rrdtool for aggregate graphs (#2896)
* Update rrd.php

* Update CHANGELOG

* Update CHANGELOG
2019-08-15 22:15:38 -05:00
cigamit 4369c7b0e8 Resolving Issue #2848
Aggregate graphs get clipped due to incorrect date range
2019-08-12 06:55:29 -05:00
cigamit 2773b94443 Resolving Issue #2833
Undefined index in lib/rrd.php under certain circumstances
2019-07-18 20:09:25 -05:00
cigamit 9b95f93d47 Resolving Issue #2656
This has finally fixed the issue.  Was specific to Aggregate Graphs.
2019-06-23 20:48:04 -05:00
cigamit 9b0fbfb15d Resolving Issue #2656
Wront host_id was being passed
2019-06-23 19:19:35 -05:00
cigamit 09b4f6f660 Resolving Issue #2656
GPRINT text_format does not replace Data Query and Host Fields
2019-06-23 19:03:23 -05:00
cigamit 756b0779c6 Resolving Issue #2721
Undefined index 'local_data_id' in lib/rrd.php when replacing '|input_xxxx|' strings
2019-06-08 10:47:36 -05:00
Matt Corallo 0dcf1532ba Fix percentile calculation (#2720)
The percentile calculation sorting ends up using incorrect step length due to incorrect sorting. I'm not actually 100% sure what the intended behavior here is, so I left it as sorting by step first, and steps second, though on my graphs steps seems to work just fine.
2019-06-07 13:34:10 +01:00
cigamit d0c3ab0daf Resolving Issue #2662
* HRULE objects broken in some cases
* Also two missed escapeshell* change
2019-05-12 06:48:22 -05:00
cigamit 88aafbd43c Resolving Issue #2547
Trailing spaces: Complaining about Max values in RRD without reason
2019-03-23 19:41:31 -05:00
NotAProfessionalDeveloper c3195c1be2 Remove grocer's apostrophes (#2546)
https://blog.oxforddictionaries.com/2011/02/04/random-apostrophization/
2019-03-22 15:58:43 +00:00
cigamit 0964412f19 Resolving Issue #2502
Unable to have a min or max value for RRDfile at zero '0'
2019-03-10 10:17:21 -05:00
cigamit cc3412405e Remove debugging 2019-03-10 07:13:12 -05:00
cigamit 92721ddb95 Resolving Issue #2500
Allow Data Source repairs from the Data Source Debug and Data Source Info pages
2019-03-09 15:15:00 -06:00
netniV fd5efad6cd Minor relayout of code to make clearer 2019-03-09 16:14:00 +00:00
cigamit a94e658807 Resolve info mode problems
The max value of 'U' was not properly recognized.
2019-03-08 18:18:40 -06:00
cigamit 47eb42f901 Resolving Issue #2497
Graph URL's missing either graph_start or graph_end but not both result in both taking defaults
2019-03-08 06:41:59 -06:00
netniV 44c16d9cb7 Resolving issue #2491 and 2493
issue#2491: Data Source Info suggests commands RRDTool can't honor
issue#2493: Data Source Info is not separated properly
2019-03-07 23:30:03 +00:00
cigamit bfafec057a Correct misspelling of variable 2019-02-25 18:10:01 -06:00
cigamit e81fbf4a8f Change for Issue #2283
This changes makes a slight mdification to the HRULE replacement logic
in hope to address #2283
2019-02-25 18:10:00 -06:00