Commit Graph
256 Commits
Author SHA1 Message Date
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 f2dc7935b6 In relation to Issue #4105 report bulk walks that are too large
This will help people who set their snmpbulkwalk size too large by providing a better log message for thme.
2021-03-21 16:37:38 -04:00
TheWitness afcb13bb8d Fixing Issue #4105 - Builk Walk Repetition size detection
- Issue with SNMP Bulkwalk Repetitions Size
- This enhancement adds a new column to the host table for bulk walk size us
- Detection can happen on each re-index, set manually, or detected and set one time.
- Changed Max OID's to a dropdown
- Max Repetitions is also a dropdown now
- This setting was also carried to the Automation portion of Cacti and the Add Device CLI
2021-03-21 14:32:47 -04:00
TheWitness df54a4a3f3 Updating copright years 2021-01-01 20:28:58 -05:00
TheWitness 52bb6ffda7 Remove all remaining instances to "sizeof(" or "count(" in code
* Some insances in the vendor directory have not been handled to maintain pedigree.
2020-10-21 08:27:42 -04:00
South Park Neo 86e6dc0d2f Minor regression in #3515 (#3529)
One small mixup, big impact.
2020-05-03 15:44:26 +01:00
Nuno Silva 7670e7c60e lib/snmp: rename timeout variables to explicitly state expected units (#3515) 2020-04-30 00:50:03 +01:00
TheWitness 0c76515b06 Minor updates around Issue #3447
Handling the casting correctly now.
2020-04-20 17:17:26 -04:00
TheWitness a1eed00307 Fixing Issue #3447
SNMP Issues on recent versions of PHP
2020-04-09 20:37:01 -04:00
TheWitness 812bb8df16 Fixing Issue #3429
AUTOM8 Backtrace Errors due to SNMP class not muting snmpv3 auth errors
2020-04-08 22:33:18 -04:00
netniV 4fa9a68fb3 Update copyright to 2020 2020-01-12 12:19:49 +00:00
cigamit a3046726b0 Resolving Issue #2733
Error processing hex-lines for space delimited hex strings into mac addresses
2019-06-23 21:19:14 -05:00
cigamit 552d64d4a6 Resolve Issue Associated with #2668
SNMP strings not being trimmed properly.
2019-05-08 09:20:20 -05:00
cigamit c3c0fded04 Resolving Issue #2668
RFC1213 sysDescr trailing parentheses lost
2019-05-05 08:54:00 -05:00
netniV 900c747ffa Further resolve #2638 2019-04-28 18:57:20 +00:00
cigamit aced3b2592 Correct minor but major syntax error 2019-04-23 20:05:03 -05:00
cigamit 50cf26c206 Minor syntax changes and one bug 2019-04-23 19:55:10 -05:00
Matthew Horan 59b58671aa Support disabling PHP SNMP extension (#2638)
Re-purpose the existing php_snmp_support config value to allow
administrators to disable the built-in SNMP extension.

It can be desirable to force use of the Net-SNMP in some configurations,
particularly when IPv6 is in use. This allows the administrator to set
$php_snmp_support = false in config.php, which will then force use of
the Net-SNMP binaries tools.
2019-04-23 07:58:40 +06:00
netniV 86e2e33ac2 Fix typo in lib/snmp.php 2019-03-01 21:17:15 +00:00
netniV a32dfb6a8f Resolving issue #2474
REGEXP_SNMP_TRIM does not handle Gauge fields properly
2019-03-01 19:54:39 +00:00
cigamit a52ca55480 Resolving Issue #2424
Input Value is Missing in Data Query after upgrade to 1.2.2 developing
version
2019-02-20 22:03:03 -06:00
cigamit 96367faa4b Minor snmp walk bug 2019-02-06 20:46:18 -06:00
cigamit 92b3c5f5f3 Resolving Issue #2370
Chinese characters not rendering properly.
2019-02-04 07:47:05 -06:00
cigamit e9800f0316 Resolving Issue #2352
- snmp_sysDescr field contains mangled data
- This is another attempt at resolving snmp descrepancies
2019-02-03 13:14:55 -06:00
cigamit 140f68329d Back off snmp quick print changes
This is due to some issues reported by some users
2019-02-01 19:28:51 -06:00
netniV b8c579b129 Update copyright notices for 2019 2019-01-25 08:06:11 +00:00
cigamit 6f96ed1c26 Properly handle snmp timeouts
Additionally address value output format issues.
2019-01-12 13:55:39 -06:00
cigamit da0ce0a845 Resolving Issue #2217
cmd.php not handling quoted snmp values properly
2018-12-18 07:58:00 -06:00
netniV 0cfe709b12 Resolving issue #2188 2018-11-30 09:37:19 +00:00
cigamit 532821be05 Don't log SNMP timeouts at normal logging level 2018-11-18 14:10:20 -06:00
cigamit 7b31651395 Do not log SNMP timeouts at normal logging level 2018-11-18 14:02:40 -06:00
Mark Brugnoli-Vinten 1ca32862a9 Resolving issue #1920 (#1922)
* Resolving issue #1920

* Minor QA issue
2018-09-14 20:59:52 -05:00
cigamit 32f1538a4a Resolving Issue #1634
* Default snmp quick print setting resulting in false poller ASSERTS on
some php releases
* Also enhance the cacti snmp functions to require only 3 or 4
parameters.
* Minor format change to the vendor file classSNMP.php.  No functional
change.
2018-06-02 12:16:13 -05:00
cigamit 636a277324 Resolving Issue #1501
cmd.php poller not stripping alpha from snmp get values
2018-04-03 20:02:03 -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
cigamit c65d65ef3f Previous regular expression removing numeric and dash 2018-03-22 06:50:06 -05:00
cigamit 93addb9896 Tweak for UTF-8 parsing 2018-03-21 19:55:20 -05:00
cigamit 4aa2fe6bf6 -feature: Allow snmp formatting functions to detect UTF-8 output
Remove some ugly legacy code too.
2018-03-21 18:45:35 -05:00
cigamit 633594c93d Resolving Issue #1281
The variable max_oids is for bulkget and not bulkwalk operations
2018-02-11 06:55:29 -06:00
cigamit 6be51580bd Resolving Issue #1281
The variable max_oids is for bulkget and not bulkwalk operations
2018-02-10 15:18:25 -06:00
cigamit 4ca8f1d441 Merge remote-tracking branch 'refs/remotes/origin/develop' into feature/1.2.x
# Conflicts:
#	lib/functions.php
#	lib/html_validate.php
2018-02-04 13:19:43 -06:00
cigamit a1683d035a Remove logging for snmpwalk operations
If plugins wish to see an error message, they can inspect the
$snmp_errror global for now.  This is done for the Mikrotik Issue 24
2018-02-04 10:12:27 -06:00
cigamit 7b60a000a8 Merge remote-tracking branch 'refs/remotes/origin/develop' into feature/1.2.x
# Conflicts:
#	lib/api_automation.php
2018-02-03 13:36:09 -06:00
cigamit a404f22922 Merge remote-tracking branch 'origin/develop' into develop
# Conflicts:
#	docs/CHANGELOG
2018-02-03 09:04:06 -06:00
netniV 252333336b issue #1293: Correctly identify if command 'snmpbulkwalk' is available (#1295) 2018-02-03 06:58:05 -07:00
cigamit 9c3ac04708 Resolving Issue #1280
Remove redendant code from lib/snmp.php
2018-01-30 10:15:09 -06:00
cigamit 3941e10ac7 Merge remote-tracking branch 'refs/remotes/origin/develop' into feature/1.2.x 2018-01-28 09:12:30 -06:00
cigamit 0c4b2e91a7 Resolving Issues #1275 and Pull #1276
Fix issues with authPriv not supplying username/password

- place all snmpv3 auth options in single function
- removes setting $sec_details where they were not required
- if a passphrase is empty it's either noAuto or NoPriv
- rename username to auth_user and password to auth_pass to match
snmp_spec.

Changing snmp_username and snmp_password in the database has a ripple
effect throughout the community.  So, we won't be changing that any time
soon.
2018-01-28 08:46:32 -06:00
cigamit c1f62f7707 Merge remote-tracking branch 'refs/remotes/origin/develop' into feature/1.2.x
# Conflicts:
#	docs/CHANGELOG
2018-01-22 19:42:44 -06:00
cigamit 7abe0916a1 Issue: ensure that the snmp_error is cleared before every call 2018-01-21 12:06:26 -06:00