From 170ae59d90d67fe1ba83528e6e87f4b764c769ad Mon Sep 17 00:00:00 2001 From: Oleksandr Dubrovyk Date: Thu, 12 Dec 2024 13:18:52 +0200 Subject: [PATCH] Change IpRoutesParser to respect new netstat output Fixes ZEN-35186. --- Products/DataCollector/plugins/zenoss/cmd/linux/netstat_rn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Products/DataCollector/plugins/zenoss/cmd/linux/netstat_rn.py b/Products/DataCollector/plugins/zenoss/cmd/linux/netstat_rn.py index faef70f437..78a62152c8 100644 --- a/Products/DataCollector/plugins/zenoss/cmd/linux/netstat_rn.py +++ b/Products/DataCollector/plugins/zenoss/cmd/linux/netstat_rn.py @@ -29,9 +29,9 @@ # 10.111.23.0/24 dev eth0 proto kernel scope link src 10.111.23.72 # 192.168.99.0/24 dev eth0 scope link IP_ROUTE_RECORD = re.compile( - r"^(\S+)\s+dev\s+(\S+)\s+proto\s+(\S+)\s+scope\s+link\s+" + r"^(\S+/\d+)\s+dev\s+(\S+)\s+proto\s+(\S+)\s+scope\s+link\s+" ) -IP_ROUTE_RECORD_SHORT = re.compile(r"^(\S+)\s+dev\s+(\S+)\s+scope\s+link\s+") +IP_ROUTE_RECORD_SHORT = re.compile(r"^(\S+/\d+)\s+dev\s+(\S+)\s+scope\s+link\s+") class BaseParser(object):