Commit Graph
54 Commits
Author SHA1 Message Date
TheWitness b6526b8597 Fixing #5163 & #5165 DSStats Enhancements
* Adds multiple percentile data to the Data Source Statistics tables
* Converts the Hourly Cache to InnoDB
* Some normalization rrdtool_function_graph() calling params outside of plugins
* Fix issues with variance and standard deviation calculations in graph_variables.php
2023-01-15 22:17:16 -05:00
Mark Brugnoli-Vinten 32ba2f19f4 Update copyright year for 2023 2023-01-03 20:34:26 +00:00
Mark Brugnoli-Vinten 8b29d12cc9 Define cacti system paths as constants for better code checking (#5120)
This also provides a full run of src-fixer against all files to
ensure all code is now in alignment.

Closes #5120
2023-01-01 01:03:15 +00:00
Mark Brugnoli-Vinten c8157e3cbb Switch to constants for common session/cookie options 2022-12-21 10:53:53 +00:00
TheWitness 6763c8eeb3 Fixing Issue #3845
Allow non-standard Remote Agent port to be used
2022-11-26 23:51:52 +00:00
TheWitness 82b229db9e Updating Copyright to 2022. 2022-02-06 17:16:20 -05:00
TheWitness df54a4a3f3 Updating copright years 2021-01-01 20:28:58 -05:00
TheWitness ced9f430f4 Partial resolution to low lighthouse score for performance #3402
* Cacti scores low on performance audit on lighthouse audit
* This change enables generic caching of pages, but with a very short age for RRDtool generated graphics.
* It increses the SEO score through the use of specialty tags on anchors leveraging the _blank target attribute value
* It removes and unnecessary tooltip on the document element

There may be additional changes forthcoming.  However, these changes raised the score from 0 to the mid twenties.

Some of the changes, like minification of JavaScript we do not do due to the nature of the project, but could be done by customers.  Once the page is first rendered, it's in the browsers memory and cached for a good time, so this is not a big deal.
2020-04-04 09:09:58 -04:00
TheWitness d65f40d2bf Abstract Cacti session handler 2020-03-29 19:08:29 -04:00
netniV b41014219e Unix timestamps after Sep 13 2020 are rejected as graph start/end arguments
Closes #3245
2020-02-22 00:43:56 +00:00
netniV 4fa9a68fb3 Update copyright to 2020 2020-01-12 12:19:49 +00:00
netniV 4cecb19f6b PHP Fatal error: Uncaught Error: Cannot pass parameter 5 by reference in graph_json.php:158
Closes #3104
2019-11-27 23:09:59 +00:00
ddb4github d5f98679a0 Fixed #3049(due to #2964) to add missed argv for most rrdtool_function_graph caller (#3087)
* Fixed: #2964 to add missed argv for all rrd_function_graph caller

* Fixed #2964: Apply security solution to aggregate graph preview and graph impage page
2019-11-17 14:15:41 -06: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 7a6a17252a Resolving Issue #2954
Security issue allows to view all graphs
2019-09-22 13:15:41 -05:00
cigamit 70554f2d33 Resolving Issue #2932
Some cases where RRDtool can not generate an image are not captured by Cactis image error logic
2019-09-15 09:52:23 -05:00
netniV 308292e2d7 Update copyright notices for 2019 2019-01-25 08:05:00 +00:00
cigamit 73d9738ec7 Add a Timeout setting for Remote Agent calls Re Issue #1060 and #1604
This setting will help Remote Agent Timeout situations.  The setting is
the Settings > Poller section.
2018-09-24 19:53:00 -05:00
cigamit 2a1b980271 Resolving Issue #1428
Graphs: Add more information to error image
2018-05-11 18:31:20 -05:00
cigamit ca1a3c4159 Resolving Issue #1319
FrontEnd + Remote Poller - Connection timeout issue
2018-02-08 18:51:57 -06:00
cigamit 9b48dfc4a8 Resolving Issue #1309
Provide meaningful authentication errors in graph_json.php and
graph_image.php
2018-02-06 19:28:29 -06:00
netniV cf82069b94 Issue #1286: Correct CHUNKED_ENCODING error (#1308)
* issue #1286: Correct CHUNKED_ENCODING error when retrieving graph with some browsers

* Update graph_json.php
2018-02-06 17:38:44 -07:00
cigamit 99d670bed2 Proposed fix for issue #1286
Will allow the validation function to return a json array if validation
fails if json is requested.
2018-02-04 09:25:38 -06:00
cigamit 92c8757873 Add content type header for help in debugging #1286
Just in case IE is barfing on the response format.
2018-02-03 08:55:38 -06:00
Tony Roman 519b35f5cd Update copyright to 2018 2018-01-06 09:10:15 -05:00
Browniebraun 6474d76f68 undefined index
- suppress lines breaks breaking graph output if error reporting level is high.
- avoid that remote pollers are requesting graphs from the main poller if the RRDproxy will be used as data storage. In this case remote pollers should directly talk to the proxy.
2017-11-17 11:08:43 +01:00
Browniebraun 8a24be8f69 Update graph_json.php 2017-11-13 15:44:00 +01:00
Browniebraun 4268b607b9 usage of get_default_contextoption 2017-11-13 15:11:00 +01:00
cigamit fbbcedd378 Resolving Issue #1053
- Remote Data Collector issues with https and self signed certificates.
- Some spurious backport of html_escape() calls
2017-11-04 15:36:24 -05: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
cigamit 7560d2220c Final resolution to issue #949
Resonsive UI does not properly handle graph resizing
2017-09-03 08:26:21 -05:00
Tony Roman 8a179d7d7f Fix up to move if elseif else blocks to PSR 2017-05-07 19:57:36 -04:00
cigamit 964afa59e2 Resolve issues with undefined variables in graph image 2017-04-30 17:01:49 -05:00
cigamit 68565a1536 Undefined variable warnings 2017-03-18 20:05:31 -05:00
cigamit 5d662d2c33 undefined variable error in graph_json.php 2017-03-18 15:20:15 -05:00
cigamit 1334dc3de6 Make error image size consistent with Cacti graphs. 2017-03-18 14:51:15 -05:00
cigamit a7b8c6fb20 Resolving Issue #407
The RRDfile does not exist message is misleading
2017-03-18 13:31:20 -05:00
cigamit 5597e07e81 Resolving Issue #199 2017-01-11 07:08:17 -06:00
Tony Roman 35a5988f41 Update source code files copyright to new year 2017-01-01 13:45:29 -05:00
cigamit 22ebbf43c2 Pass theme and user fto Remote Agent for Graphing 2016-12-31 09:18:02 -06:00
cigamit f04c16268d Allow remote data collector to render graphs 2016-12-30 16:27:22 -06: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 c59b0a7e12 add theme support to reports 2016-02-14 12:12:25 -06:00
cigamit 22478523f3 default the graph type and remove developer mode log messages. 2016-02-13 09:28:44 -06:00
cigamit bf33b51819 more request variable debug
no need for developer log messages under some circumstances
2016-02-13 09:14:46 -06:00
cigamit 2387bd4a08 removing many $_GET, $_REQUEST, and $_POST variable usage
There are still three steps to go in this overall.  The first is to
replace all the page filtering session storing and validation functions
and the second is to propagate those changes into various areas of the
lib directory that include the use of the various variables, lastly,
developer mode will have to be enable to see if there are any variables
used in the code that have not been sanitized.  Note, at this point the
develop branch should be thought of as slightly unstable
2016-02-07 12:51:49 -06:00
Andreas Braun 1a3812cfd8 Merge pull request #9 from micke2k/features/jsongraph
Fixed while loop when graph is not created.
2016-02-05 16:35:09 +01:00
cigamit da34108e21 remove use of deprecated function get_request_var_request(). replace it with get_request_var()
this is part three of project to remove the use of $_GET, $_REQUEST, and
$_POST in the code.  Parts one and two have already been completed.
Part one was to remove the use of $_GET throughout the code, part two
was the incorporation of wrapper functions to handle specific
validation, verification and sanitization cases.  This third part will
remove the use of the get_request_var_request() from the code.  Part
four, and beyond will include the removal of both $_REQUEST and $_POST
super globals from the code.
2016-01-30 15:53:08 -06:00
Micke2k ff681cecdb Fixed while loop when graph is not created.
When creating new graphs graph_json throws an error and spikes CPU.

[Sat Jan 30 00:06:27.947764 2016] [:error] [pid 44971] [client :64833] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/html/cacti/graph_json.php on line 143, referer: http:///cacti/graph_view.php

This is until the graph has been created and can be found.

Changed it to check for a RRD and if not found set a placeholder image. Code doesn't loop anymore.
2016-01-30 15:09:48 +04:00
Micke2k d188f1631d Change Copyright year 2015 -> 2016 2016-01-29 21:46:02 +04:00