Forum Discussion
Syslog notification in case of pool priority group change
Hi,
I am wondering if there is any way to receive a syslog / email / snmp notification in case of pool priority change.
For example, i have a pool with 5 members in it. 3 of them with priority of 100 and the other two has priority of 50.
I dont care if 1 member fails , but i want to know in case the first 3 members fails and the traffic switched to the other priority group.
Is there any way to configure it?
- Andrew-F5
Employee
Guy-M,
Unfortunately there isn't a specific log for priority group activation. I've created an iRule below that you can work with to create a log entry in /var/log/ltm, assuming you have remote syslog configured it will ship out to your remote location. You can update it to include more members if need be.
when LB_SELECTED { log local0. "staus [LB::status pool /dev-test/https_pool member 10.2.0.33 80] " if { [LB::status pool /<partition>/<pool> member <pool_member_IP> <pool_member_port>] eq "down" and [LB::status pool /<partition>/<pool> member <pool_member_IP> <pool_member_port>] eq "down" } { log local0. " Priority group 2 down for <pool> with partitions!" } } • Please replace <partition>,<pool_member_IP>, <pool> and <pool_member_port>, remove the angle brackets. Example: Common, 10.10.10.1, 80. • iRules 101 - #05 - Selecting Pools, Pool Members, and Nodes https://devcentral.f5.com/s/articles/irules-101-05-selecting-pools-pool-members-and-nodes
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