Forum Discussion
eventSubsription testing
I have an eventsubscription ID by creating one with iControl. I have these events configured to send event notifications:
EVENTTYPE_INTERFACE
EVENTTYPE_NODE_ADDRESS
EVENTTYPE_VIRTUAL_SERVER
EVENTTYPE_POOL_MEMBER
EVENTTYPE_POOL
EVENTTYPE_RULE
EVENTTYPE_DELETE
EVENTTYPE_CREATE
EVENTTYPE_MODIFY
EVENTTYPE_SYSTEM_STARTUP
EVENTTYPE_SYSTEM_SHUTDOWN
EVENTTYPE_SYSTEM_CONFIG_LOAD
I have the URL setup
URL: http://10.10.1.30:8420
and the event handler running on the correct host. Is there an easy way to test one of these events? I assume that I could take a node down or something, but I was looking for something a little more programatic than that.
Thanks!
-jas
- Since you have EVENTTYPE_MODIFY set, you can just change an attribute of an object if you want. Edit a rule by adding a space or flip an attribute on a pool member and you should get a notification sent to you.
- jaskel_40663
Nimbostratus
Well, I went and started over, and it seems that it tests ok with the EventNotificationClient.pl script in the samples area. But I noticed that when I actually create the subscription withsub CreateSubscription {
- jaskel_40663
Nimbostratus
I did create this subscription on the passive node in an HA pair? Would that maybe keep it in STATE_DISABLED instead of STATE_ENABLED, or does it not even care about that? - Most likely is that its a communication error to your client. For help in debugging, you can run the server side eventd process in debug mode to list out the diagnostics. Ssh into your BIG-IP and issue the following statements:
$ bigstart shutdown eventd $ /usr/sbin/eventd -d -f -o
- Oh, and make sure to kill that process and issue another "bigstart start eventd" after you are finished B-).
- jaskel_40663
Nimbostratus
Ok, so...did that and this is what I got from the output:012d0001:6: eventd version 9.0.0.337.17 started
- Looks like a typo in the create code:
my $total_detail = { name => $name, event_type_list => [@event_list], url => $url, url_credentials => $url_cred, ttl => $ttl, min_events_per_timeslice => $min_event_per, max_timeslice => $max_time, enabled_state => $enabled_sate };
- jaskel_40663
Nimbostratus
Wow....nothing like a typo to make me feel like a total tool....Getting subscription info
Recent Discussions
Related Content
* 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