bonding_err_ plugin needs a longer grep on 12.04

Bug #1113933 reported by Will Bryant
6
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}/${BONDINGIF} | grep "Link Failure Count:" | cut -d " " -f 4

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}/${BONDINGIF} | grep "Link Failure Count:" | cut -d " " -f 4

Tags: patch
Kenyon Ralph (kralph)
tags: added: patch
Changed in munin (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Will Bryant (willbryant) wrote :

Could this please be applied? It's a a pretty trivial patch, just need to change the one number.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.