Forum Discussion

jcook_105986's avatar
jcook_105986
Icon for Nimbostratus rankNimbostratus
Jun 17, 2008

anyway to notify the events with iControl?

 

I want to know if it is possible to find out whether certain events occuered

 

within the F5 server can be notified back to the user or not.

 

 

Ok...Lets say there is only one pool within the Local Traffic of F5 server.

 

The pool has 2 pool members. Each pool member's maximum connection cannot

 

exceed more than 10. If that ever happens, I like to know about it.

 

(Please refer to the attached image file)

 

 

Now... the purpose of this question is to understand how to

 

set callback function, if there is any within iControl.

 

 

If there is no way to set callback function with iControl,

 

how do I find out whether certain events occured or not?

 

 

Let's say... all of sudden, the CPU usage goes up to 95%,

 

then I like to be notified about it.

 

However, I just cannot keep on sending query to the F5 server,

 

in order to find out what the current CPU usage is.

 

 

My application needs to know, when certain events actually happen~

 

Is there any sample codes on DevCentral about this matter?

 

If there is, then could you please tell me where the link is?

 

 

Thank you~

1 Reply

  • The Notification API (Management.EventNotification and EventSubscription) can be used to be notified when configuration changes occur (node up/down, pool added/deleted, etc) but does not include statistics threshold triggers like you are asking for.

     

     

    Really the only way right now is to use a polling method where you have a client application "asking" the BIG-IP for object statistics.

     

     

    As for knowing when an event occurred, for counters, that's easy as if the counter is above your threshold when you query it, you'll know it's occurred. For values like current connections/cpu usage, that's not possible as the values may be below the threshold that you specified.

     

     

    There may be something you could do with a local script and SNMP traps but I'm not sure what the overhead of that would be nor would I know how to recommend setting it up.

     

     

    I know you said you don't want to have to poll, but for statistics right now, that's your only real viable option.

     

     

    -Joe