Forum Discussion

pablitop_134672's avatar
pablitop_134672
Icon for Nimbostratus rankNimbostratus
Dec 05, 2013

irule that sends snmp trap

I have the next irule:

 

when CLIENT_ACCEPTED { if { [active_members Pool_A] > 3 } { pool Pool_B } }

 

I modified the user_alert.conf and I would need that the irule sends the snmp trap I created when the Pool_A has less than 3 members. Could anybody please help me???

 

Regards and thanks in advance.

 

1 Reply

  • Richard__Harlan's avatar
    Richard__Harlan
    Historic F5 Account

    So like the solution article

     

    http://support.f5.com/kb/en-us/solutions/public/3000/700/sol3727.html?sr=33679270

     

    If you have SNMP trap created then you need to create a Syslog messages that will match the string you are using in the alert.conf. To log the message you can use the log local command

     

    log local0. "Syslog message to match alert.conf"

     

    Once alertd matches the syslog message it should send the SNMP trap.