Hello,
thanks for the thread and the answers.
I am trying to achieve the same on LTMs running 11.2.1 HF7, but with separate emails for down AND up.
In the logs, I have these entries, a bit different compared to yours:
[bchadmin@P02LBF02:Active:In Sync] ~ tail -f /var/log/ltm
2013-08-08T14:58:12+02:00 P02LBF02 notice mcpd[6578]: 01070638:5: Pool /Common/POOL_P02-PROD-FE-HTTPS-EPDQ-ISP4 member /Common/VNDMZFE26:81 monitor status down. [ was up for 3hrs:58mins:50sec ]
2013-08-08T14:58:12+02:00 P02LBF02 notice mcpd[6578]: 01070638:5: Pool /Common/POOL_P02-PROD-FE-HTTPS-GENERIC-ISP3 member /Common/VNDMZFE26:81 monitor status down. [ was up for 3hrs:58mins:50sec ]
2013-08-08T14:58:12+02:00 P02LBF02 notice mcpd[6578]: 01070638:5: Pool /Common/POOL_P02-PROD-FE-HTTPS-GENERIC-ISP4 member /Common/VNDMZFE26:81 monitor status down. [ was up for 3hrs:58mins:50sec ]
2013-08-08T14:58:17+02:00 P02LBF02 notice mcpd[6578]: 01070727:5: Pool /Common/POOL_P02-PROD-FE-CLAUTH-VPSP-ISP3 member /Common/VNDMZFE26:81 monitor status up. [ was down for 0hr:0min:5sec ]
2013-08-08T14:58:17+02:00 P02LBF02 notice mcpd[6578]: 01070727:5: Pool /Common/POOL_P02-PROD-FE-CLAUTH-VPSP-ISP4 member /Common/VNDMZFE26:81 monitor status up. [ was down for 0hr:0min:5sec ]
2013-08-08T14:58:17+02:00 P02LBF02 notice mcpd[6578]: 01070727:5: Pool /Common/POOL_P02-PROD-FE-HTTPS-EPDQ-ISP3 member /Common/VNDMZFE26:81 monitor status up. [ was down for 0hr:0min:5sec ]
2013-08-08T14:58:17+02:00 P02LBF02 notice mcpd[6578]: 01070727:5: Pool /Common/POOL_P02-PROD-FE-HTTPS-EPDQ-ISP4 member /Common/VNDMZFE26:81 monitor status up. [ was down for 0hr:0min:5sec ]
2013-08-08T14:58:17+02:00 P02LBF02 notice mcpd[6578]: 01070727:5: Pool /Common/POOL_P02-PROD-FE-HTTPS-GENERIC-ISP3 member /Common/VNDMZFE26:81 monitor status up. [ was down for 0hr:0min:5sec ]
2013-08-08T14:58:17+02:00 P02LBF02 notice mcpd[6578]: 01070727:5: Pool /Common/POOL_P02-PROD-FE-HTTPS-GENERIC-ISP4 member /Common/VNDMZFE26:81 monitor status up. [ was down for 0hr:0min:5sec ]
Could someone please review the syntax below, it does not work for me ?
alert POOL_MEMBER_STATUS_DOWN "Pool (.*?) member (.*?) monitor status down." {
email toaddress="xxx"
fromaddress="yyy"
body=""
}
alert POOL_MEMBER_STATUS_UP "Pool (.*?) member (.*?) monitor status up." {
email toaddress="xxx"
fromaddress="yyy"
body=""
}
best regards,
--
Benoit