Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
claro_systemmgmt Valued Contributor.
Valued Contributor.
538 views

OMi - configure policy catches REST API events

Hi experts!!!

I'm trying to generate events from dyntrace in OMi. I've alredy been able to configurate the thing in dynatrace,  converted JSON (dynatrace) to XML (OMi), posted this XML and generated and viewed the event in OMi console.

My problem is i can´t configurate a policie that catchs this events, i suspect that the problem could be in the Path of Source Info windows. i´ve tried with "OprEvent" (i use this value in the APM - OMi integration) and ""http://corpba-omigw.ctimovil.net:/opr-web/rest/9.10/event_list" (the URL where i post the events).

Any ideas?

0 Likes
7 Replies
kevin_cascante_06 Super Contributor.
Super Contributor.

Re: OMi - configure policy catches REST API events

Hello Claro,

I hope you are doing fine

 

My suggestion is that you configure a Policy "Event from Rest Web Server" this will allow you read this XML file and generate the events, the "oprEvent" policy will not work due the mapping of this policy was configured to APM events. Please configure the mapping correctly based on the xml that you are sending through this app.

 

Thank you for your time and have a great day Claro.

Kindly Regards,

Kevin

0 Likes
claro_systemmgmt Valued Contributor.
Valued Contributor.

Re: OMi - configure policy catches REST API events

First of all, thank Kevin for your answer.

I understand your point, but I'd prefer to configure the event in the policy and not in the XML. This is due to the tool to convert from JSON to XML is other area of the company, and iId prefer to not bother them more.

I get a policy works, the APM-OMi integration policy. I can use this policy how a base to create a new policy (is that i tried with "OprEvent"), but I need configurate de path in soure windows. :(

i tried with below URL, but the result is the same:

http(s)://<ConnectedServerHostFQDN>:<ConfiguredPort>/bsmc/rest/events/<Path>

http(s)://<ConnectedServerHostFQDN>:<ConfiguredPort>/bsmc/rest/topology/<Path>

http(s)://<ConnectedServerHostFQDN>:<ConfiguredPort>/bsmc/rest/metrics/<Path>

http(s)://<ConnectedServerHostFQDN>:<ConfiguredPort>/bsmc/rest/genericdata/<Path>

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: OMi - configure policy catches REST API events

The URL format is https://<agent_where_policy_is_deployed>:30005/bsmc/rest/events/<policy_name>

There is an example Event from REST WS policy and how to generate events to it on ITOM Marketplace:

https://marketplace.microfocus.com/itom/content/example-omi-policies

You could import that content pack and see how the policy is defined to match the XML data that you send to it.  Hopefully that will shed light on the issue.

CP.

claro_systemmgmt Valued Contributor.
Valued Contributor.

Re: OMi - configure policy catches REST API events

Hi Carol, I tried with your suggestions but it didn't work. Based in your comments, I configured different path (the below list), but in the 3 cases the results was the same.

https://corpba-omigw.ctimovil.net:30005/bsmc/rest/events/dynatrace

http://corpba-omigw.ctimovil.net:30005/bsmc/rest/events/dynatrace (without secure http)

dynatrace (only thepolicy name)

0 Likes
Micro Focus Expert
Micro Focus Expert

Re: OMi - configure policy catches REST API events

Did you try to install example policies content pack on ITOM Marketplace that I mentioned?  Does it work for you?  If it does then the focus shifts to the particulars of your XML/policy combination.  If it doesn't then you could be looking at firewall blocking or policy not running (ie port 30005 not listening) or you are not running agent version 12.x or the agent is on something other than Windows or Linux or there is some other issue noted in System.txt etc.

CP.

0 Likes
Gerald McGarvin Super Contributor.
Super Contributor.

Re: OMi - configure policy catches REST API events

If you are trying to send events from Dynatrace SaaS or Managed to Ops Bridge, you should be able to specify XML as the post payload. The Dynatrace webhook integration docs are vague on that but I did confirm that you can change the format from JSON to XML by entering the XML detail in the Custom Payload field. Then you should be able to specify a REST WS policy as the destination for the events.

I have not tried it yet but plan to soon.

0 Likes
claro_systemmgmt Valued Contributor.
Valued Contributor.

Re: OMi - configure policy catches REST API events

Hello, to my regret I have decided not to use a policy and configure everything in the XML. For now everything is fine except for one thing, I can not configure the node or CI associated, any idea of how I can do this? I would like the associated node to be hard-coded and be "dynatrace", a node that I have created in non-IP mode.

Thanks

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.