Forum Discussion
Regular expressions in user_alert.conf
I was wondering how fancy I can get with regex in the user_alert.conf file for alerting?
I had this configuration:
alert vip_down "Virtual (.*) has become unavailable" {
email toaddress="email@domain.com"
fromaddress="bigip@bigip.com"
body="BIGIP: VIP Down"
}
But I want to ignore a single VIP that has some troublesome nodes. To that end, I changed the match string to this:
"Virtual ((?!\/Common\/VIPNAME).)+ has become unavailable"
I'm by no means a regex wizard but that seems to work based on my testing. However, if I configure that in the user_alert.conf file the alertd service constantly restarts, complaining about this line.
Hi Shane,
We saw the same alertd restart behavior when using regex lookaheads, however we hope this article can help you in suppressing messages for troublesome servers.
K53142338: Disabling alert notifications for specific virtual servers
- nmb-AskF5Employee
Hi Shane,
We saw the same alertd restart behavior when using regex lookaheads, however we hope this article can help you in suppressing messages for troublesome servers.
K53142338: Disabling alert notifications for specific virtual servers
- Shane_HickeyNimbostratus
Brilliant! That worked a treat. Thanks much!
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com