Forum Discussion
Guy-M
Nimbostratus
Jul 08, 2019Syslog 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 1...
Andrew-F5
Employee
Jul 12, 2019Guy-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-nodesHelp guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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