Commit Graph
4618 Commits
Author SHA1 Message Date
TheWitness 9bbb3e39b7 Fixing #5018 - Unexpected auto-logout
It is possible in some rare cases to have 'remember me' enabled and still be logged out after a browser timeout
2022-11-24 13:09:24 -05:00
TheWitness d9de71ab47 Fixing #5017 - snmpagent warnings
Undefined array key and Rounding causes errors
2022-11-24 11:56:56 -05:00
TheWitness b68d8d89b9 QA: Fix undefined index
Related to recent nth percentile function update.
2022-11-24 10:16:09 -05:00
TheWitness 0ae35422cc QA: #4926 - One missed change
This missed change will reconcile any issues with client timezone support.
2022-11-23 18:58:46 -05:00
TheWitness ef85619a37 QA on #4989
Add device caching options for changing state
2022-11-20 13:28:40 -05:00
TheWitness 17495a4d09 Add additional ignore handler
For for MikroTik fsockopen() calls
2022-11-20 13:22:15 -05:00
TheWitness a28d4e45d5 QA: In "clean_up_*" functions 2022-11-20 13:16:55 -05:00
Jing ChenandTheWitness 546d002c7b Fixed three error for PHP 8 when execute cli/upgrade_database.php (#5012)
* Fixed: get_rrdtool_version report str_replace error if rrdtool_version does not exist
Fixed: move global static $phperrors before other error-able function call
Fixed: file_exists report error if path_spine is not configured

* Fix PHP5.4 Error

Co-authored-by: TheWitness <thewitness@cacti.net>
2022-11-20 13:10:17 -05:00
TheWitness 10895f4052 Fixing Issue #5013 - Auto-Detect bulk size
Cacti Bulk Walk Size of 'Auto-detect at First Reindex' not working
2022-11-20 13:08:56 -05:00
TheWitness 0231786b26 QA: Remove duplicate code 2022-11-20 13:03:07 -05:00
gadzet21 537c500bb4 Adding a new method for use in xml files: value_parse_index (#5009)
* Adding a new method for use in xml files: value_parse_index

Add a new definition in xml files: value_parse_index
* What introduces the change:
- we add a new definition in xml files: <value_parse_index>

* What do we gain:
- we optimize the list of returned data by the method: "Get SNMP Data"
- we can better match the list in data query with what we want to see
- fewer records in the host_snmp_cache table
- we will increase the speed of returned data:
  - get method: for slow devices or a slow connection, a large list of returned data, only a few of which we care about
  - walk method: for fast devices and links

* Example:
<interface>
<name>Get SNMP Interfaces - CMTS Upstream</name>
<description>Queries a host for a list of interfaces for CMTS, only Upstreams</description>
<oid_index>.1.3.6.1.2.1.2.2.1.3</oid_index>
<value_index_parse>VALUE/REGEXP:129|205</value_index_parse>
<oid_index_parse>OID/REGEXP:.*\.([0-9]+)$</oid_index_parse>
<index_order>ifIndex</index_order>
<index_order_type>numeric</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>

<fields>
<ifIndex>
	<name>Index</name>
	<source>index</source>
	<direction>input</direction>
</ifIndex>
<ifType>
<name>Type</name>
	<method>walk</method>
	<source>value</source>
	<direction>input</direction>
	<oid>.1.3.6.1.2.1.2.2.1.3</oid>
</ifType>
<ifInOctets>
	<name>Bytes In</name>
	<method>walk</method>
	<source>value</source>
	<direction>output</direction>
	<oid>.1.3.6.1.2.1.2.2.1.10</oid>
</ifInOctets>
</fields>
</interface>
It will only show us a list of upstream interfaces.

You can also like this:
<oid_index>.1.3.6.1.2.1.2.2.1.8</oid_index>
<value_index_parse>VALUE/REGEXP:1</value_index_parse>
It will only show the interfaces in the up status.

The new definition works for the methods: get and walk.

CMTS devices can have many interfaces (e.g. cbr 130,000 interfaces), a user who wants to reduce the number of entries can use this definition.

In my cacti there are over 30 million records in the host_snmp_cache table, this change will reduce that amount.

* ChangeLog Update for pull requests Cacti#5009

Adding a new method for use in xml files: value_parse_index
<value_parse_index>VALUE/REGEXP:</value_parse_index>
2022-11-16 13:26:31 -05:00
Petr Macek f5d3fdb829 remove unused query (#5003) 2022-11-13 15:09:30 -05:00
TheWitness 88737d246a QA: properly chunk the array 2022-11-13 14:09:51 -05:00
TheWitness 49b8d57a29 QA: RRDfile Checker 2022-11-13 13:58:49 -05:00
TheWitness e74c190baf Fixin #4993 and #5001 - Data Source Debug
- Data Debug Troubleshooter does not pick up invalid RRD_heartbeat settings
- Data Debug Troubleshooter Reports False Positive Issues with Missing Data Sources
2022-11-12 15:52:35 -05:00
TheWitness f47dca2e05 QA: Instrumentation to resolve dependency issues 2022-11-12 13:13:09 -05:00
TheWitness 9d63c3bb47 QA: On Template Import
* Since we force the size and image format on import now, don't warn for these differences
2022-11-12 12:18:36 -05:00
TheWitness 757fa895c5 Fixing #4926 - Client TimeZone support
Allow the user to override Cacti auto-client time zone detection
2022-11-12 11:33:16 -05:00
Petr Macek 4a9d0a80b0 Rrdcheck new tests (#4999)
* add new tests

* new test, code cleaning

* fix one_hour limit

* remove my debug messages
2022-11-10 21:22:55 -05:00
TheWitness 24dc8af33d QA on #4991 - One additional inconsistency 2022-11-08 08:09:04 -05:00
TheWitness e9ae2fb8fd QA on #4989 and one typo 2022-11-07 21:20:36 -05:00
TheWitness 64884cd37f QA on #4989 - Template Allowed Calls
* Don't cache on is_graph_template_allowed() calls.
2022-11-07 08:33:17 -05:00
TheWitness 5bf3fc1650 QA on #4989 - Dont cache for single device calls
* If you are calling "is_device_allowed()" don't cache the row counter
* Switch from $host_id to $device_id
2022-11-07 08:27:18 -05:00
TheWitness 7e3abd6e2a QA on #4989 - Maintenance and User Removal
* When performing maintenance, remove old rows from the row cache
* When removing a user, make sure you remove their old data.
2022-11-07 08:13:06 -05:00
TheWitness 4412722cb2 Fixing #4989 - Row Caching API
Cache Cacti 'Total Rows' by Hash to Improve Performance
2022-11-06 18:19:52 -05:00
TheWitness 761349478a QA: Improve use of recursive create ownership
* This was an issue where if either the user was not root, where they could not change ownership
* Also handles recursion better when running as root.
2022-11-06 13:40:16 -05:00
TheWitness 157ac02983 QA: Add recursive chown 2022-11-06 13:38:09 -05:00
TheWitness 4dc31e4b7b Fixing #4988 - RRDfile bloat and PSR
* Data Templates that include many Data Sources bug only a few are used, cause RRDfile bloat
* Perform lite PSR on the gradient and business hour functions
2022-11-06 11:38:28 -05:00
TheWitness ccbb18690d QA: Fixing some issues with RRDcheck
* Duration can be less than 24 hours
* Ensure the time range is at least one sample less than the time range
* Run properly at boost end
* Improve logging

TODO: Tracking Errors
2022-11-05 22:46:31 -04:00
TheWitness 5c4b44b768 QA: Light fixing and PSR
* Logging was happening every polling cycle
* Reformat for readability
2022-11-05 21:23:13 -04:00
TheWitness b51ebcc3ad Fixing #4967 - Adding Templates Ease
Make adding Associated Graph Templates and Data Queries easier to use
2022-11-05 16:46:53 -04:00
TheWitness dd525d8042 Fixing #4963 - ptiles ceil() vs floor()
Will the calculation rules of 95nth_percentile involve php and rrdtool versions
2022-11-05 15:59:35 -04:00
TheWitness f0b81b8a5b QA: Selectable import was broken 2022-11-05 15:39:59 -04:00
TheWitness 9b53889c34 QA: PHP8.2 Issues with Ldap Class 2022-11-02 14:18:59 -04:00
TheWitness abdb1cb875 Reverting previous commit 2022-11-02 08:15:25 -04:00
TheWitness afc01d89bf Attempt to correct php8.1 issues
This is due to some issues with uninitialized $level in the error handler.
2022-11-01 22:34:42 -04:00
TheWitness f8c4794c7d QA: PHP8.2 workaround for affected_rows 2022-11-01 21:24:08 -04:00
TheWitness 2bb9dcad24 QA: Fixing one bug, and tweaking connection timout
QA on this commit: 0530e5c79e
2022-11-01 18:44:32 -04:00
Browniebraun 085956ca15 #4964 - restore old search behaviour: non-matching tree objects will be hidden. Ensure that search patterns with less than 3 characters will be ignored and all trees becomes visible. 2022-11-01 19:55:39 +01:00
50b8681493 Update to rrd.php to fix Business hours erros and timezone issue (#4982)
Co-authored-by: ThomasUrban@urban-software.de <rJFsmBR9!15UGZB%G7uc>
Co-authored-by: TheWitness <thewitness@cacti.net>
2022-10-31 11:05:08 +00:00
TheWitness fbe340d973 Attempt to fix #4951 - Plugin Upgrades 2022-10-19 21:00:51 -04:00
TheWitness 54ee6b183f QA: Pick up on negative value being a bad case. 2022-10-18 22:07:15 -04:00
TheWitness 209547742a QA: #4941 Correct error in sorting algo
Okay, working now.   Type and no log.
2022-10-18 21:59:32 -04:00
TheWitness e74adf7175 QA: Minor tweak of #4941 - Unintialized variable
So, I had to back out this version of lib/boost.php today due to some sort a new failure, but I have been unable to reproduce in my lab.  Still looking into it.  This is a minor change that I'm making as a part of my bug hunt.
2022-10-18 19:58:37 -04:00
TheWitness 955449a56f Resolving #4682 - Upgrade Templates
New templates are not installed during the update
2022-10-17 22:10:20 -04:00
TheWitness 0530e5c79e QA: Fixing one bug, and tweaking connection timout 2022-10-17 21:06:56 -04:00
TheWitness 490fa59620 QA: Typo in last commit 2022-10-17 20:14:44 -04:00
TheWitness d791f5fe73 QA: Add debounce function and apply
1) Page errors
2) Poller automation continuous emails when offline
2022-10-17 20:08:05 -04:00
TheWitness caf0b2d10a QA: #4941 - Change Sort Algo
The previous sort algo was not sorting properly.  Replacing with one that is known good.
2022-10-17 17:59:04 -04:00
TheWitness 1d6e197851 QA: Boost client from different timezones will fail updates realted to #4941 2022-10-17 11:32:46 -04:00