Commit Graph
225 Commits
Author SHA1 Message Date
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
cigamit 09f8bf273e Merge remote-tracking branch 'refs/remotes/origin/develop' into feature/1.2.x
# Conflicts:
#	docs/CHANGELOG
#	install/index.php
#	settings.php
2018-01-15 17:42:18 -06:00
cigamit 7289e67efd Copyright year on lib/snmp.php not correct 2018-01-15 16:06:18 -06:00
cigamit 62615311b5 Merge remote-tracking branch 'refs/remotes/origin/develop' into feature/1.2.x
# Conflicts:
#	docs/CHANGELOG
2018-01-06 14:08:07 -06:00
cigamit e6f62e4395 Resolving Issue #1182
Support noAuthNoPriv for SNMPv3 in Cacti
2018-01-06 18:12:25 -06:00
Tony Roman 4bdc9b4809 Move phpsnmp to include/vendor 2017-11-18 09:31:28 -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 63b75a28aa Waking up now 2017-08-26 08:44:32 -05:00
cigamit 2ba92ce83e Undefined constant in lib/snmp.php on RHEL7 2017-08-26 06:55:59 -05:00
cigamit b1bc04a1ff issue: Unable use ipv6 ip addresses for snmp ping in the Cacti GUI
Additionally removing trailing white-space from files
2017-08-05 10:55:00 -05:00
patrick 16e2b7c052 Replaced all if statements and inline if statement with $variable != '' where strlen($variable) was used to determine if a string was empty or not 2017-05-18 01:14:15 +02:00
cigamit 86bd69bcd6 Small optimization in lib/snmp.php 2017-05-14 07:51:18 -05:00
cigamit 62f6d88c29 Resolving Issue #470
Enhance Cacti's SNMP function and Data Query XML syntax.  Add
<output_format>hex|string|guess</output_format> tag
2017-05-14 07:34:25 -05:00
arno-st dcf2b035e3 Update snmp.php
proposition of change to be able to handle correctly some hex data receive on SNMP, like:
00:00:00:28 or 0A:00:2E:28 
on the current release the 00 are dropped, and something the string send back to the caller are empty.
With this proposal the 00 is kept and returned as hex value, like the other char.

I also change the REGEXP_SNMP_TRIM to be able to handle correctly the status of an interface who can give up or down status, and now it's not handle correctly
2017-05-11 08:01:35 +02:00
Tony Roman 8a179d7d7f Fix up to move if elseif else blocks to PSR 2017-05-07 19:57:36 -04:00
cigamit 49e83d7fa1 Resolving Issued #580, #606, #608, #609
- Data collection warnings when using cmd.php
- Replace <path_php_binary> in data input methods
- Spaces adjacent to double quotes are eliminated durate data input
method import
- Horor the column setting in graph tree view mode
2017-04-24 20:40:05 -05:00
cigamit f74725cd04 Resolving Issue #575
Very large hex strings result in scientific notation that RRDtool
rejects.
2017-04-17 17:25:10 -05:00
skyjou ac23c8cb09 Try to fix Hex-STRING prefix issue of snmp.php
After replacing manipulation in line 770, the original string prefix "Hex-STRING: " should be "Hex-".

It may need to remove the remain part "Hex-" from string, because there is no more Hex-"STRING:" in the string.

Another problem is line 863. The last variable in this line should be "$part".
2017-04-13 19:16:34 +08:00
cigamit 632a3c9eec Resolving Issue #408
Suppress SNMP Units suffix from cacti_snmp_get output.
2017-03-12 07:31:36 -05:00
cigamit 9ab0d4199e Removing duplicated code. 2017-03-05 10:39:30 -06:00
cigamit 3d5821c1a7 Handle snmp error exceptions better 2017-03-05 08:22:48 -06:00
cigamit 23afc0c3fe SNMP Availability failed to report down devices
This only was occuring for cmd.php collector.
2017-02-18 13:48:44 -06:00
cigamit 4578cdd73c Resolving Issue #288
Adding cacti_snmp_get_raw() for plugin developers.
2017-02-18 12:51:27 -06:00
cigamit e2d927e3fa When using net-snmp don't print units 2017-02-18 11:40:26 -06:00
cigamit e2683d7b9e Resolving Issue #288
Still need to know the issue with php-snmp and get that resolved.
2017-02-11 13:39:05 -06:00
cigamit 9c69f3a7fe Resolving Issue #231
If the snmp auth passphrase is < 8 bytes, generate an error.  Also,
rename the '$proto' variable to '$sec_level' to avoid confusion.
2017-02-01 07:39:14 -06:00
cigamit 2376e9d48b Remove STRICT mode 2017-01-22 17:14:45 -06:00
cigamit c60482f0ed Resolving Issue #224 2017-01-20 10:22:12 -06:00
Tony Roman ef006fe161 Fix up some copyright date stragglers 2017-01-01 14:03:04 -05:00
cigamit 373caf667e Have snmp return false instead of '' or 'U'
This allows the up/down detection to work properly when using cmd.php.
2016-12-29 10:25:09 -06:00
cigamit 0dfa4f0531 Clean up some closing php brackets 2016-12-13 20:59:19 -06:00
cigamit c70d120cb2 optimize snmp library 2016-09-19 06:48:40 -05:00