Bug #74419 Alias interface not shown
Submitted: 16 Oct 2014 15:06 Modified: 24 Oct 2014 4:49
Reporter: Daniël van Eeden (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Enterprise Monitor: Agent Severity:S3 (Non-critical)
Version:3.0.15 OS:Any
Assigned to: CPU Architecture:Any

[16 Oct 2014 15:06] Daniël van Eeden
Description:
A machine with two IP's on one interface

This is show as two interfaces in ifconfig: 
- eth0
- eth0:0

This is show as one interface with 2 inet addresses in '/sbin/ip a l'

MEM only shows eth0 with an IPv4 address in the server tree.

In the instances screen eth0:0 is shown, but without the IP address. (address: None, speed: null)

How to repeat:
Add extra IP to an interface and run a mem agent.

If I start a sigar shell (./java/bin/java -jar lib/sigar.jar) and run ifconfig then the correct info is shown.

sigar> ifconfig eth0:0
eth0:0  Link encap:Ethernet HWaddr xxxxxxxxxx
        inet addr:xxxxxxxxxxx  Bcast:xxxxxxxx  Mask:xxxxxxxxxx
        UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

sigar> ifconfig eth0
eth0    Link encap:Ethernet HWaddr xxxxxxxxxx
        inet addr:xxxxxx  Bcast:xxxxx  Mask:xxxxxxxx
        inet6 addr: xxxxxxxxxxxxx/64 Scope:Link
        UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
        RX packets:39170249 errors:0 dropped:0 overruns:0 frame:0
        TX packets:33102900 errors:0 dropped:0 overruns:0 carrier:0
        collisions:0
        RX bytes:14224476990 ( 13G)  TX bytes:37678609179 ( 35G)

Suggested fix:
Make sure the correct info is shown in the instances screen for instances with alias interfaces.
[24 Oct 2014 4:49] MySQL Verification Team
Thank you for the bug report.

Verified as described:

sigar> ifconfig eth0:0
eth0:0	Link encap:Ethernet HWaddr 08:00:27:43:C7:E2
	inet addr:192.168.1.11  Bcast:192.168.1.255  Mask:255.255.255.0
	UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

sigar> ifconfig eth0:0
eth0:0	Link encap:Ethernet HWaddr 08:00:27:43:C7:E2
	inet addr:192.168.1.11  Bcast:192.168.1.255  Mask:255.255.255.0
	UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

sigar>

in MEM 3.0.15

eth0:0	 None	 None			null