Comment 5 for bug 1779401

Revision history for this message
Brian Candler (b-candler) wrote :

SNMP data collection is also broken in the Ubuntu 18.04 cacti package

https://github.com/Cacti/cacti/issues/1634
https://github.com/Cacti/cacti/commit/32f1538a4a382b7b27e2340705e9b034f335ae6e
https://github.com/Cacti/cacti/commit/afa01553f574554f782bbed3d2f1efaa355df2d0
https://github.com/Cacti/cacti/commit/9311987e8a22e9c838bc879ff8eceae7abfbeb65

diff to /usr/share/cacti/site:

--- a/lib/snmp.php
+++ b/lib/snmp.php
@@ -74,6 +74,7 @@ function cacti_snmp_session($hostname, $community, $version, $auth_user, $auth_p
                $session->valueretrieval = SNMP_VALUE_LIBRARY;
        }

+ $session->quick_print = false;
        $session->max_oids = $max_oids;

        if (read_config_option('oid_increasing_check_disable') == 'on') {
--- a/cmd.php 2020-06-13 08:45:09.660470210 +0000
+++ b/cmd.php 2020-06-13 08:59:50.586094241 +0000
@@ -504,8 +504,7 @@

                                                        if (isset($sessions[$host_id . '_' . $item['snmp_version'] . '_' . $item['snmp_port']])) {
- $sessions[$host_id . '_' . $item['snmp_version'] . '_' . $item['snmp_port']]->quick_print = true;
- $output = cacti_snmp_session_get($sessions[$host_id . '_' . $item['snmp_version'] . '_' . $item['snmp_port']], $index_item['arg1'], true);
+ $output = cacti_snmp_session_get($sessions[$host_id . '_' . $item['snmp_version'] . '_' . $item['snmp_port']], $index_item['arg1']);
                                                        } else {
                                                                $output = 'U';
                                                        }