Controller (SaaS, On Premise)

cancel
Showing results for 
Search instead for 
Did you mean: 

Consume an alert from external system

SOLVED

Consume an alert from external system

Hi,

 

I am exploring the possibility of 'integrating' the current monitoring solution of my company with AppDynamics.

 

Question : Is it possible to send 'Alert' information to AppDynamics from an external system, which is then consumed and presented as an Alert and not a metric by AppDynamics?

 

E.g. My current monitoring system can dump the following text in a log file when a critical condition occurs in my environment :

 

>>>

ALERT TRACE -Date : Fri 06/22/2018 -Time : 16:30:21.63 -AlertId : 1529665221471.115349 -AlertType : Critical -Platform : NIK_LOCAL -Component : Master -AlertField : MemPct -AlertValue : 57.851744 -AlertTimeStamp : "20180622 - 163021048" -TriggerName : HostMemory 

>>>

 

Ho can this be consumed and processed by AppDynamics?

 

I am using the trial version of AppDynmaics which will expire in 10 days therefore some quick help will be much appreciated.

 

Thanks,

Nikhil

Consume an alert from external system
6 REPLIES 6
Employee

Re: Consume an alert from external system

 Hi Nikhil,

 

We understand you want to integrate third party alerting into the appdynamics. Can you please follow the documentation for custom actions and let us know if that heps.

 

https://docs.appdynamics.com/display/PRO43/Custom+Actions

https://docs.appdynamics.com/display/PRO43/Build+a+Custom+Action

https://docs.appdynamics.com/display/PRO43/Actions

 

Thanks,

Yogesh



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.

Re: Consume an alert from external system

Hi Yogesh,

 

Thanks for your quick response.

 

I am afraid this is not what I am trying to achieve. The custom action (based on my limited understanding) is allowing me to perform an 'external' action or send the AppDyanmics generated alert to an external system.

 

What I am looking for is : An information of an alert generated by an external monitoring system to be consumed by AppDynamics and show it on AppDynamics alert dashboards etc along with it's self generated alerts. The external system can pass the alert information in form of logs or any other way (REST call?) which is consumable by AppDynamice.

 

An example of Alert information (dumped in a log file)  by an external system : 

ALERT TRACE -Date : Fri 06/22/2018 -Time : 16:30:21.63 -AlertId : 1529665221471.115349 -AlertType : Critical -Platform : NIK_LOCAL -Component : Master -AlertField : MemPct -AlertValue : 57.851744 -AlertTimeStamp : "20180622 - 163021048" -TriggerName : HostMemory 

 

Apologies if I am unable to interpret the 'custom actions' correctly and the above requirement is achievable through it - If this is the case can you please help me with an example?

 

Thanks,

Nikhil

Re: Consume an alert from external system

Hi Nikhil,

 

You can create custom event in AppDynamics using API and in that way it would show up in the AppDynamics Events view.

Refer to https://docs.appdynamics.com/display/PRO44/Alert+and+Respond+API#AlertandRespondAPI-CreateaCustomEve...

 

Regards,

Re: Consume an alert from external system

Hi Alakshay,

 

Many thanks, this is what I was looking for - Pushing custom events.

 

Last question : How can we send the Custom event propierty values in the action email?

Also, In the event dashboard (screenshot attached), can we see the custom event properites?

 

See the below example of my custom event generation call :

 

curl -X POST --user admin@customer1:admin "http://iondelws324:8090/controller/rest/applications/2/events?summary=HighCPU&severity=ERROR&eventtype=CUSTOM&customeventtype=ABCD&propertynames=component&propertynames=indicator&propertynames=value&propertyvalues=Comp1&propertyvalues=CPU&propertyvalues=75"

 

I want to see the information of the above highlighted custom event properties in the email and the event dashboard - is it possible?

 

Thanks for you help.

 

Nikhil

 

 

 

Highlighted

Re: Consume an alert from external system

Hi Nikhil,

 

I am not entirely sure if we can capture property names and values as template variables in email, but we can definitely put a custom event property filter in Policy to trigger alerts.

 

Your example below suggest that you are trying to integrate sys monitoring events in AppDynamics.

 

If you wish to have alerts whenever there is a CPU violation alert in your other system, you could look at below option.

Your Rest Call

http://iondelws324:8090/controller/rest/applications/2/events?summary=HighCPU&severity=ERROR&eventtype=CUSTOM&customeventtype=ABCD&propertynames=component&propertynames=indicator&propertynames=value&propertyvalues=Comp1&propertyvalues=CPU&propertyvalues=75

 

Modify the summary - summary=High%20CPU%20on%20Comp1%20utilization%20is%75

Add property name - severity. Add property values either ERROR or INFO depdening on your thresholds in your other system.

You can create 2 different policies to capture ERROR,INFO Custom Events. The idea would be to have seperate policy for ERROR event and separate for INFO - closed event if you so require. Again it depends on your source system as to how it generates these events.

 

Moreover once you have the summary field modified, you can see better looking summary in your event list in custom dashboard.

 

Also, I would suggest you to raise a support ticket on this and let know if a better solution is suggested by support team.

 

Regards,

 

Explorer

Re: Consume an alert from external system

Hi Nikhil,

Are you able to achieve your requirement that AppDynamics should read logs from other application and send those logs content as a email

I also have same requirement and looking for exact solution, could you please share your solution if you have