Forum Discussion
Lalit_Kumar_533
Nimbostratus
Jul 22, 2005Event Notification Samples in Java
I want to create a listener in Java which should listen to node enable/disable events in F5.
I looked at the article http://devcentral.f5.com/Default.aspx?tabid=29&newsType=ArticleView&articleId=15
which seems to be relevant , but I could not find any sample java code implementation for the above event model.
Can anybody provide me the sample code which implements the Management.EventNotification and Management.EventSubscription to create listener/subscriptions for the node events in Java.
Thanks.
18 Replies
Sort By
- We are currently looking at authorization but that won't help you in the short term.
- Shawn_Higgin_84
Nimbostratus
I appreciate the feedback. - The configuration is persisted to disk after each modification (create, modify, delete) so it will persist across reboots.
- Shawn_Higgin_84
Nimbostratus
Thanks Joe! So basically we will just get the "Node Monitor UP/Down" alerts the same as we would with syslog? The reason I am asking is that currently syslog will only tell us that a monitor failed... We have 2 monitors in most of our pools so we never know what one failed except by going to to the node in the pool via the GUI. - Dan_Peterson_19
Nimbostratus
So our experience is that we have sucessfully created our subscriptions and receive them as expected. We have a separate script that creates the subscription so we don't need to give our iControl user any elevated privs. However, it seems that when our listener is down the subscription is disabled. - Unfortunately that one requires admin privileges at this point...
- mxu_65255
Nimbostratus
Hi Joe, - At this point I don't think that this is possible. The Event Notification daemon listens on the internal schema database for change notifications and then proxies those out to event subscribers. The System Log is not currently tied to internal schema changes. If it was, the disk would fill up pretty fast with log messages.
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