Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
09-12-2017 02:48 AM - last edited on 05-05-2020 02:08 PM by Ryan.Paredez
Hi,
I'm using Server Agent 4.3.5.7
I have a Health rule that monitors a Custom Metric condition. I am monitoring a process name, triggering an event when the process count exceeds a threshold.
I am forwarding this event to a webhook via an HTTP action request using a JSON payload.
However, the resulting event does not contain the node/server name.
I can see in the AppDynamics Servers Events list the Server name field is not populated.
Is this expected behavior...or can an agent be configured to include the Server name?
Thanks
John
example payload
{
"controllerUrl": "https://mycontroller.appdynamics.com",
"accountId": "xxx",
"accountName": "xxxxxxxxxx",
"policy": "AUTO_appd_process_Alive",
"action": "Tell_CSIT_AUTO",
"topSeverity": "ERROR",
"eventType": "POLICY_OPEN_CRITICAL",
"eventId": "1549490534",
"eventGuid": "16f35995-5d7f-439d-822e-1ae34ea02cf6",
"displayName": "New Critical Health Rule Violation",
"eventTime": "Mon Sep 11 09:06:55 PDT 2017",
"severity": "ERROR",
"applicationName": "Server & Infrastructure Monitoring",
"applicationId": "3579",
"tier": "${latestEvent.tier.name}",
"node": "${latestEvent.node.name}",
"healthRule": "Auto_appd_process",
"incident": "Auto_appd_process",
"affectedEntities": [{
"entityType": "APPLICATION",
"name": "Server & Infrastructure Monitoring"
}
],
"deepLink": "https://mycontroller.appdynamics.com/#location=APP_EVENT_VIEWER_MODAL&eventSummary=1549490534&applic...",
"summaryMessage": "AppDynamics has detected a problem with Application <b>Server & Infrastructure Monitoring</b>.<br><b>Auto_appd_process</b> started violating and is now <b>critical</b>.",
"eventMessage": "AppDynamics has detected a problem with Application <b>Server & Infrastructure Monitoring</b>.<br><b>Auto_appd_process</b> started violating and is now <b>critical</b>.<br>All of the following conditions were found to be violating<br>For Application <b>Server & Infrastructure Monitoring</b>:<br>1) condition 1<br><b>Count's</b> value <b>1.0</b> was <b>greater than</b> the threshold <b>0.0</b> for the last <b>1</b> minutes<br>",
"healthRuleEvent": true,
"healthRuleViolationEvent": true,
"btPerformanceEvent": false,
"eventTypeKey": "Health Rule"
}
Solved! Go to Solution.
09-13-2017 06:07 AM
Hi John,
We can see you have raised a support ticket for the above issue. We will update in support ticket.
Thanks,
Atyuha
09-21-2017 02:39 AM
Jusy in case anybody else sees this issue
I missed a step in setting up the HR.
Under Affected notice a tick box (looks greyed out and unavailable to me)
You are then presented with the pull down to select the affecked host
07-31-2019 04:50 AM
Hi Team,
Even in my case, The same Email template works for few applications where as it is not resolving node name for one of the application.
Please let me know if you have solution.
Thanks
Lalitha
06-01-2024 05:12 PM - last edited on 06-03-2024 07:09 AM by Ryan.Paredez
I am dealing with a similar issue
we use an HTTP template that works for the health rule-based events to call Webex and Opsgenie but it won't work for custom events. It is failing with the 400 error.
At this point my theory is the template variable exposed by the custom event and the health rule-based event are not the same and as a result, the HTTP template used for the health rule-based event is not working for the custom event
any thoughts?
06-06-2024 07:19 AM
Given how old this post is, it may not get a reply from the Community. You can always reach out to Cisco AppDynamics Support -
Thanks,
Ryan, Cisco AppDynamics Community Manager
Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
Check out Observabiity in Action
new deep dive videos weekly in the Knowledge Base.
06-06-2024 07:25 AM
@Ryan.Paredez
This issue is solved with the support help, they enabled the debug and got me the exact error .
I removed the section of the request that are causing the issues
#set($summaryMessageParts = $latestEvent.summaryMessage.split("Properties"))
#set($summaryMessageFirstPart = $summaryMessageParts[0].trim())
06-06-2024 07:31 AM
Awesome, thanks for sharing!
Thanks,
Ryan, Cisco AppDynamics Community Manager
Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
Check out Observabiity in Action
new deep dive videos weekly in the Knowledge Base.
User | Count |
---|---|
3 | |
2 | |
2 | |
1 | |
1 | |
1 |
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form