snmp__if plugin does not work if server only supports 32 bit counters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
munin |
New
|
Unknown
|
|||
munin (Debian) |
Fix Released
|
Unknown
|
|||
munin (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
The plugin actually supports 32 bit counter as well as 64 bit counter. However, if the snmp server you are connecting to does not support 64 bit byte counters, snmp__if fails.
When I tried to the snmp server which supports only 32 bit counter, the plugin returned as follows:
#munin-run snmp_hostname_if_1
recv.value noSuchObject
send.value noSuchObject
Here is an example of problems I found in the code.
# from line 244
if (defined ($response = $session-
print "recv.value ", $response, "\n";
}
In these lines, "$session-
So, these lines should be fixed like this:
if (defined($response = $session-
if ($response eq 'noSuchObject'){
# 64 bit counter is not supported
$response = $session-
}
} else {
# No response
$response = 'U';
}
print "recv.value ", $response, "\n";
# The information about my environment
Description: Ubuntu 10.04.3 LTS
Release: 10.04
munin-node:
Installed: 1.4.4-1ubuntu1
Candidate: 1.4.4-1ubuntu1
Version table:
*** 1.4.4-1ubuntu1 0
Changed in munin: | |
status: | Unknown → New |
Changed in munin (Ubuntu): | |
status: | Incomplete → Triaged |
summary: |
- snmp__if plugin does not work + snmp__if plugin does not work if server only supports 32 bit counters |
Changed in munin (Debian): | |
status: | Unknown → Confirmed |
Changed in munin (Debian): | |
status: | Confirmed → Fix Released |
I found this topic should be discussed at the original munin site. So, I'll work on this bug there.