Forum Discussion
email alerts for down nodes
wanting to create a blanket email alert that would send an email alert from any node from any pool that goes down. I have looked at different versions of this and not 100% sure if they will meet the requirement.
I have 2 different LTM pairs versions 10.2 and 11.3
here's what i found for 10.2
alert NE_POOLNODE_STATUS "Pool member (.*) monitor status down" {
email toaddress="xxx@aaa.com"
fromaddress="BIG-IPLTM@aaa.com"
body="Subject: Pool Member Status DOWN! Check the web services on the server.\r\n\r\n172.17.0.152 Web3 172.16.0.215 PP_Web3\r\n\r\n"
}
I see the ip addresses in the script and not sure of those are.
please excuse this is a new path for me
9 Replies
- nitass
Employee
e.g.[root@ve10:Active] config cat /config/user_alert.conf alert POOL_MEMBER_STATUS_DOWN "Pool member (.*?) monitor status down." { email toaddress="nitass@f5.com" fromaddress="BIG-IPLTM@aaa.com" body="" } /var/log/ltm [root@ve10:Active] config grep -i down /var/log/ltm Jul 30 17:18:46 local/ve10 notice mcpd[3851]: 01070638:5: Pool member 200.200.200.101:80 monitor status down. email notification From: BIG-IPLTM@aaa.com [mailto:BIG-IPLTM@aaa.com] Sent: Tuesday, July 30, 2013 5:19 PM To: Nitass Subject: 01070638:5: Pool member 200.200.200.101:80 monitor status down.
- keenon_49862
Nimbostratus
I used this and all i get is the following log messages - keenon_49862
Nimbostratus
thanks for the direction I got it working now - Hello,
- nitass
Employee
Could someone please review the syntax below, it does not work for me ? it looks okay to me. the ssmtp.conf is correct, isn't it? have you seen smtp packet sending out?/config/user_alert.conf [root@ve11a:Active:Changes Pending] config cat user_alert.conf alert TEST "Pool (.*?) member (.*?) monitor status down." { email toaddress="nitass@xxx.com" fromaddress="f5admin@yourdomain.com" body="" } /var/log/ltm [root@ve11a:Active:Changes Pending] config cat /var/log/ltm Aug 9 09:46:05 ve11a notice mcpd[6732]: 01070638:5: Pool /Common/foo member /Common/200.200.200.101:80 monitor status down. [ /Common/fake: down ] [ was unchecked for 0hr:0min:7sec ] Aug 9 09:46:05 ve11a err tmm[11073]: 01010028:3: No members available for pool /Common/foo Aug 9 09:46:05 ve11a err tmm1[11073]: 01010028:3: No members available for pool /Common/foo email -----Original Message----- From: f5admin@yourdomain.com [mailto:f5admin@yourdomain.com] Sent: Friday, August 09, 2013 9:46 AM To: Nitass Subject: 01070638:5: Pool /Common/foo member /Common/200.200.200.101:80 monitor status down. [ /Common/fake: down ] [ was unchecked for 0hr:0min:7sec ]
- Hello Nitass,
- antwil_5544
Nimbostratus
As with Benoit above, I am also seeing the exact same issue. I can receive a test email but no email for up/down nodes or Pools.
example output from my config:
alert BIGIP_GTMD_POOL_SNMP_STATUS_CHANGE_WHY_X "SNMP_TRAP: Pool .? state change .? --> red .*?" { snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.41"; email toaddress="DL_Support@xxxx.com" fromaddress="ltm01-xxxx" body="Pool is DOWN, Investigate" }
Running: BIG-IP 11.3.0 3117.0
Surely it can't be that big of a job to have GUI options for configuring email alerts for VS/NODES/POOLS ?? It's a pretty basic ask and one that should have been nailed down in previous versions.
- AlanMoen
Cirrus
Here's what works for me - it's general for all pool members, but it works while we're working on getting our Vantage system to monitor the F5s.
alert BIGIP_MCPD_MCPDERR_POOL_MEMBER_MON_STATUS { snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.10"; email toaddress="someone@here.com, someoneelse@here.com, anotherguy@here.com" fromaddress="root" body="Critical: Pool member monitor status down." } alert BIGIP_MCPD_MCPDERR_POOL_MEMBER_MON_STATUS_UP { snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.11"; email toaddress="someone@here.com, someoneelse@here.com, anotherguy@here.com" fromaddress="root" body="Critical: Pool member monitor status up." }
The subject for an email notice then looks like this: 01070638:5: Pool /Common/pool_prod_membername member /Common/nodename:9083 monitor status down. [ was up for 0hr:3mins:46sec ] (slot1) where membername is the specific pool member's name and nodename is the node's name (obfuscated by me for security reasons).
Hope this helps...
Hello,
it has been a long time since I opened this thread. The problem of F5 not sending mails was still there, but I have been able to solve it today, with the help of our F5 integrator Secure Link.
The initial configuration, and its later amendments, was/were in fact OK. But the system did not trigger to send an email simply because of the 'iso-date' parameter at the syslog level.
As soon as I disabled it, mail alerting started to work like a charm. Our integrator will log a case with F5 to crosscheck if this behavior is as expected or not.
bchadmin@(P02LBF02)(cfg-sync In Sync)(Active)(/Common)(tmos) modify sys syslog iso-date disabled
regards, Hope this helps
Benoit
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