Package: iog
Version: 1.03-3.1
Severity: important
Tags: patch

The following error prevents target uptime from being stored:

loghost:/usr/sbin# su -c /usr/sbin/iog www-data
SNMP Error:
no response received
SNMPv1_Session (remote host: "my.target.host" [192.168.0.2].161)
                  community: "public"
                 request ID: -275594719
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/sbin/iog line 150
SNMP Error: no response received
SNMPv1_Session (remote host: "my.target.host" [192.168.0.2].161)
                  community: "public"
                 request ID: -275594719
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)

The following patch fixes this for me:

--- /usr/sbin/iog       2008/05/01 10:54:00     1.1
+++ /usr/sbin/iog       2011/02/02 16:59:23
@@ -141,7 +141,7 @@
    my($response, $bindings, $binding, $value, $oid, $result);
 
    my %oidnames = qw(sysUpTime 1.3.6.1.2.1.1.3
-                    sysUpTime.0  1.3.6.1.2.1.1.3.0);
+                     sysUpTimeInstance 1.3.6.1.2.1.1.3.0);
 
    $inoid = encode_oid(split(/\./, $oidnames{$inoid}));
 
This may not be the best solution as the sample iog.cfg states:

# uptimeOID - either sysUpTime.0 (cisco) or sysUpTime

The target host has snmpd 5.4.1~dfsg-12 installed.

-- System Information:
Debian Release: 5.0.8
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-etchnhalf.1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages iog depends on:
ii  libsnmp-session-perl          1.12-1     Perl support for accessing SNMP-aw

Versions of packages iog recommends:
ii  snmpd                      5.4.1~dfsg-12 SNMP (Simple Network Management Pr

iog suggests no packages.

-- debconf-show failed



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to