bonding_err_ plugin needs a longer grep on 12.04
Bug #1113933 reported by
Will Bryant
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
munin (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
The bonding_err_ plugin stopped working after upgrading 10.04 to 12.04. The cause is this line in the plugin:
grep -A 2 "^Slave Interface: ${if}" ${PROCDIR}
This looks for a Link Failure Count line within 2 lines after the Slave Interface line.
However on 12.04's 3.2-series kernel, the proc file looks like this:
Slave Interface: eth1
MII Status: up
Speed: 100 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:21:5e:28:28:18
Slave queue ID: 0
Thus 2 lines is not sufficient. The plugin needs to be changed to 4:
grep -A 4 "^Slave Interface: ${if}" ${PROCDIR}
tags: | added: patch |
Changed in munin (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
To post a comment you must log in.
Could this please be applied? It's a a pretty trivial patch, just need to change the one number.