SNMP trap when all pool members down?

Sorry if this is a FAQ. Ive been reading through https://devcentral.f5.com/articles/custom-snmp-traps. Rather than generate a trap when a node is down, how would i generate a trap if all members of a pool (therefore the VIP) is down?

Hello,

You can configure custom trap editing /config/user_alert.conf:

alert VIP "Virtual /Common/YourVS has become (.*?)" 
    {
     snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.202";
    }

This will send you a trap when VS is unavailable and available again.