First, i was able to get openlmi indications working, but that was a few months ago on a fedora 20/21 vm,
i tried again the last few days but im unable to get them working at all,
here is what i tried, (attempting to get an indication that a service has stopped),
c = connect('localhost', 'pegasus', 'pegasus')
print c.subscribe_indication(
Name="service_modification-other-safe-X",
QueryLanguage="WQL",
Query='SELECT * FROM CIM_InstModification',
CreationNamespace="root/interop",
SubscriptionCreationClassName="CIM_IndicationSubscription",
FilterCreationClassName="CIM_IndicationFilter",
FilterSystemCreationClassName="CIM_ComputerSystem",
FilterSourceNamespace="root/cimv2",
HandlerCreationClassName="CIM_IndicationHandlerCIMXML",
HandlerSystemCreationClassName="CIM_ComputerSystem",
Destination="
http://localhost:12131"
)
def handler(indication, d):
print("called")
print(indication)
d.update({'ind': indication})
d={}
listener = LMIIndicationListener('localhost', 12131)
unique_name = listener.add_handler("safeharbour-service-XXXXXXXX", handler, d)
listener.start()
iv tried other types like this for accounts for debug purposes, but all have given me blank, nothing happens