Forum Discussion
Patrick_Chang_7
Jun 06, 2008Historic F5 Account
send e-mail on only some pool members down
I have the following user_alert.conf (version 9.4.2 228.18)
alert BIGIP_MCPD_MCPDERR_POOL_MEMBER_MON_STATUS_UP "Pool member 172.29.4.141:80
monitor status up." {
email toaddress="p.chang@f5.com"
fromaddress="root@vanguard.f5.com"
body="pool member went up"
}
alert BIGIP_MCPD_MCPDERR_POOL_MEMBER_MON_STATUS "Pool member 172.29.4.141:80 mon
itor status down." {
email toaddress="p.chang@f5.com"
fromaddress="root@vanguard.f5.com"
body="pool member went down"
}
I only want to receive e-mails when Pool member 172.29.4.141:80 goes up or down. However, I get e-mails when any pool member goes up or down. How do I set up the alert for specific pool members?
- hoolio
Cirrostratus
You should be able to create a custom SNMP trap using this format: - Patrick_Chang_7Historic F5 AccountI changed it like it said in the to the following:
- luciano_55922
Nimbostratus
Hello - luciano_55922
Nimbostratus
Hello - nitass_89166
Noctilucent
this is mine.[root@iris:Active] config cat user_alert.conf alert CUSTOM_POOL_MEMBER_MON_STATUS_UP "Pool member 10.10.70.110:80 monitor status up." { email toaddress="xxxxx" fromaddress="root@bigip.ss.lab.f5.com" body="pool member went up" } alert CUSTOM_POOL_MEMBER_MON_STATUS_DOWN "Pool member 10.10.70.110:80 monitor status down." { email toaddress="xxxxx" fromaddress="root@bigip.ss.lab.f5.com" body="pool member went down" } [root@iris:Active] config bigstart status postfix master (pid 7701) is running... [root@iris:Active] config postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix debug_peer_level = 2 html_directory = no inet_interfaces = localhost mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, localhost newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES relayhost = [192.168.10.13] sample_directory = /usr/share/doc/postfix-2.3.3/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop unknown_local_recipient_reject_code = 550 [root@iris:Active] config grep -i 10.10.70.110 /var/log/ltm Nov 3 02:23:12 local/iris notice mcpd[32723]: 01070638:5: Pool member 10.10.70.110:80 monitor status down. Nov 3 02:23:41 local/iris notice mcpd[32723]: 01070727:5: Pool member 10.10.70.110:80 monitor status up. -----Original Message----- From: root@bigip.ss.lab.f5.com [mailto:root@bigip.ss.lab.f5.com] Sent: Thursday, November 03, 2011 2:23 AM To: xxxxx Subject: 01070638:5: Pool member 10.10.70.110:80 monitor status down. pool member went down -----Original Message----- From: root@bigip.ss.lab.f5.com [mailto:root@bigip.ss.lab.f5.com] Sent: Thursday, November 03, 2011 2:24 AM To: xxxxx Subject: 01070727:5: Pool member 10.10.70.110:80 monitor status up. pool member went up
- Kiran_Kumar
Nimbostratus
nitass, I have a question from your config. What does relay host imply? - nitass_89166
Noctilucent
relayhost is (my) mail gateway.
- nitass
Employee
this is mine.[root@iris:Active] config cat user_alert.conf alert CUSTOM_POOL_MEMBER_MON_STATUS_UP "Pool member 10.10.70.110:80 monitor status up." { email toaddress="xxxxx" fromaddress="root@bigip.ss.lab.f5.com" body="pool member went up" } alert CUSTOM_POOL_MEMBER_MON_STATUS_DOWN "Pool member 10.10.70.110:80 monitor status down." { email toaddress="xxxxx" fromaddress="root@bigip.ss.lab.f5.com" body="pool member went down" } [root@iris:Active] config bigstart status postfix master (pid 7701) is running... [root@iris:Active] config postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix debug_peer_level = 2 html_directory = no inet_interfaces = localhost mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, localhost newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES relayhost = [192.168.10.13] sample_directory = /usr/share/doc/postfix-2.3.3/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop unknown_local_recipient_reject_code = 550 [root@iris:Active] config grep -i 10.10.70.110 /var/log/ltm Nov 3 02:23:12 local/iris notice mcpd[32723]: 01070638:5: Pool member 10.10.70.110:80 monitor status down. Nov 3 02:23:41 local/iris notice mcpd[32723]: 01070727:5: Pool member 10.10.70.110:80 monitor status up. -----Original Message----- From: root@bigip.ss.lab.f5.com [mailto:root@bigip.ss.lab.f5.com] Sent: Thursday, November 03, 2011 2:23 AM To: xxxxx Subject: 01070638:5: Pool member 10.10.70.110:80 monitor status down. pool member went down -----Original Message----- From: root@bigip.ss.lab.f5.com [mailto:root@bigip.ss.lab.f5.com] Sent: Thursday, November 03, 2011 2:24 AM To: xxxxx Subject: 01070727:5: Pool member 10.10.70.110:80 monitor status up. pool member went up
- Kiran_Kumar
Nimbostratus
nitass, I have a question from your config. What does relay host imply? - nitass
Employee
relayhost is (my) mail gateway.
- Patrick,
- luciano_55922
Nimbostratus
some people help-me - luciano_55922
Nimbostratus
Hello
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