Fix regex and process name (#16647)

### Why I did it

### How I did it

Fix regex such that dhcp bind failure event is detected as well as process name since dhcp relay processes that need to be detected are dhcprelay6 and dhcrelay.

#### How to verify it

Manual testing and nightly test event
This commit is contained in:
Zain Budhwani 2023-09-26 16:15:27 -07:00 committed by GitHub
parent 9068bd986b
commit d89dde3b6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
},
{
"tag": "dhcp-relay-bind-failure",
"regex": "Failed to bind socket to (link local|global) ipv6 address on interface ([a-zA-Z0-9]*)",
"params": [ "type:ret=(arg==\"link local\")and\"local\"or\"global\")", "vlan" ]
"regex": ".*Failed to bind socket to (link local|global) ipv6 address on interface ([a-zA-Z0-9]*).*",
"params": [ "type:ret=(arg==\"link local\")and\"local\"or\"global\"", "vlan" ]
}
]

View File

@ -2,7 +2,7 @@
"yang_module": "sonic-events-dhcp-relay",
"proclist": [
{
"name": "dhcp_relay",
"name": "dhc*",
"parse_json": "dhcp_relay_regex.json"
}
]