addEvent via REST API is not triggering notification profile
Hi,
I'm trying to add an event via the REST API and trigger a notification profile associated with the device.
The below call is actually working, it creates a Trouble event on the server specified. So far so good.
However, the notification profile is not triggered.. :/
Do I have to do something special in order to trigger it?
/usr/bin/curl -d 'apiKey=MYKEY&source=hostname.mycompany.lan&severity=2&message=TEST%20Load%20avg.%3e40%20%28now%2045%29%20for%20past%201%20minutes&alarmCode=Threshold-DOWN&entity=loadmonitor3'
https://opm.mycompany.com/api/json/events/addEvent
(I have sanitized the above call) If I look at the device there are two notification profiles associated. If I go and choose 'Test Actions' on the alarm, then the profile is triggered correctly (and I receive an SMS) .
Do I have to do something special in order to trigger it from the API call?
Also I don't fully understand the alarmCode field. Can this be anything? or is this why the not profile is not triggered?
We're using Opmanager 11.
Thanks.
TS
New to ADSelfService Plus?