Unsolved
This post is more than 5 years old
1 Rookie
•
49 Posts
0
364
December 16th, 2009 15:00
perl api, unsubscribe / propertyUnsubscribe
Hi all,
not quite sure if I missed something in the documentation... but...
I'm running an observer receiving events topology ( $session->topologySubscribe() ) and for "Host::somehost" ( $session->subscribe ("Host::somehost", ".*" ) . Furhermore I need to check for "somehost's" attribute change, e.g. Vendor ( $session->propertySubscribe( "Host::newhost", "Vendor", 30) ).
As soon as a new Host is discovered the script adds "Host:newhost" to the observer as well as I subscibe to its property for attribute changes.
When a host is deleted, I session->unsubscribe ( "Host::deletedhost" ).
Everything works as expected, the question is, do I have to "propertyUnsubscribe()" as well or does this "connection" dies automagically if I am not longer subscribed to the particular host at all ?
Thx & rgrds
Christian