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