Forum Discussion

s_boo_175774's avatar
s_boo_175774
Icon for Nimbostratus rankNimbostratus
Jan 24, 2015

EventSubscription and EventNotification

How do I set this up?

 

Currently I use EventSubscription.create() and i get 1 salvo of notification from the f5 five times sent to my django server, i parse the data, when i send responses to each of the 5 notifies the BIGIP stops sending me data because it doesn't like the content of my response.

 

Now I know i'm supposed to be using EventNotificaiton in some regard but i don't really understand how it fits into everything.

 

What is the total process here?

 

1 Reply

  • The EventSubscription interface is the client configuration piece. You use that to setup event notifications subscriptions and tell the BIG-IP where to send EventNotification messages to. The EventNotification interface is the outbound interface that the BIG-IP uses to send notifications back to your listener (which may or may not be the same client you used to configure the subscriptions). Your listener needs to have an HTTP endpoint that implements the EventNotification interface.

     

    The flow goes something like this

     

    1. Client code using EventSubscription methods calls the BIG-IP to configure which events to listen on and the URL where the BIG-IP sends the notification messages to.
    2. Event occurs on BIG-IP and message is sent to EventNotification listener configured in 1.
    3. If connection fails on 5 attempts to the EventNotification URL, then the subscription is put in a "disabled" state and must be re-enabled with the client EventSubscription methods.
    4. Client uses EventSubscription methods to query the status and statistics of the subscription.

    Here's an article I wrote a long time ago about how the pieces work

     

    https://devcentral.f5.com/articles/the-new-icontrol-event-api

     

    It seems some of the embedded images are missing but the content should get you where you are going.

     

    A while back I also wrote 3 codeshare samples that illustrate the various pieces written in Perl.

     

    Hope this helps...

     

    -Joe