Forum Discussion
Dmitry_Kuzura
Nimbostratus
Mar 31, 2009Custom alerts in 9.4.4 do not send email notifications
Greetings!
I'm banging my head against the wall..
custom alert from /conf/user_alert.conf does not send email notification when pool member is marked down by monitor.
/config/user_alert.conf looks like this:
alert BIGIP_MCPD_MCPDERR_POOL_MEMBER_MON_STATUS_251 "Pool member 192.168.253.251:80 monitor status down." {
email toaddress="xxx@xxx.com"
fromaddress="root-bip1@xxx.com"
body="*** Pool member 192.168.253.251 marked DOWN by monitor ***"
}
when I use logger -p local0.info "Pool member 192.168.253.251:80 monitor status down.", i get email notification from the BIG-IP..
when pool member is marked down by monitor and a new log record appears in /var/log/ltm file, no email alert is sent...
for example, /var/log/ltm has two log records:
Mar 31 13:58:28 bip root: Pool member 192.168.253.251:80 monitor status down.
Mar 31 13:58:49 bip mcpd[1772]: 01070638:5: Pool member 192.168.253.251:80 monitor status down.
first one was created by me using logger. Second one was recorded when actual monitor marked pool member down.
I got email message ONLY after using logger.
Please advice!
thanks!
- hoolio
Cirrostratus
A stab or two in the dark: - Dmitry_Kuzura
Nimbostratus
.*Pool member 192.168.253.251:80 monitor status down.* - hoolio
Cirrostratus
I think it's matching the default alert definition first. I'm not sure what you can do about this though. Anyone have ideas? - hwidjaja_37598
Altostratus
It seems like the alertd uses /var/run/bigip_error_maps.dat file when it receives log message that matches an alert code (on this case, it's 01070638). The alertd process then performs the alert actions specified for that alert name in the /etc/alertd/alert.conf file. - Dmitry_Kuzura
Nimbostratus
Thanks! - dennypayne
Employee
FWIW, I am able to do custom alerts in 9.4.6 that send out SNMP traps.alert EXPIRING_SSL_CERT "Certificate (.*) in file (.*) will expire on (.*)" { snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.500" }
- hwidjaja_37598
Altostratus
Well done dpkuzura ...destination mail_pm_192_168_253_251_80 { program("/bin/mail -s '192_168_253_251_80 is down' user1@domain.com"); };
- hwidjaja_37598
Altostratus
Posted By dennypayne on 04/03/2009 7:52 AM
alert EXPIRING_SSL_CERT "Certificate (.*) in file (.*) will expire on (.*)" { snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.500" }
ltm grep EXPIRING_SSL_CERT /var/run/bigip_error_maps.dat ltm
- Dmitry_Kuzura
Nimbostratus
hwidjaja, - dennypayne
Employee
Posted By hwidjaja on 04/05/2009 7:18 PM
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects