Xymon Mailing List Archive search

BUG 'New' style interface names not recognised

list Japheth Cleaver
Tue, 21 Jul 2015 05:51:40 -0700
Message-Id: <user-38630fb43956@xymon.invalid>


On Tue, July 21, 2015 2:30 am, Eddie Stassen wrote:
On Centos 7, Xymon does not recognise interface names like p3p1, etc.
This
is the interface naming according to the 'Consistent Device Naming'
standard (
http://linux.dell.com/files/whitepapers/consistent_network_device_naming_in_linux.pdf
)

A simple fix would be to change the regex on line 22, do_ifstat.c from:
   "^([a-z]+[0123456789.:]*|lo:?)\\s",
to
   "^([a-z0-9]+(_[0-9]+)?:*|lo:?)\\s",

Regards,
Eddie

Hi,

Thanks. This looks good! I'll commit as soon as Sourceforge's maintenance
is over.


Regards,

-jc