I am setting up Acronis monitoring based on Acronis Cyber Protect Cloud by HTTP template
Item: “Get alerts” type HTTP agent Here we get all alerts from URL https://dev-cloud.acronis.com/api/al...ager/v1/alerts.
Discovery rule: “Alerts discovery” type Depend item ⇒ “Get alerts” LLD macros are configured here to get some data for each Alert {#ALERT_ID} from $.id, {#TYPE} from $.type, {#SEVERITY} from $.severity etc.
Item prototypes:” Alert {#SEVERITY} [{#TYPE}]” type Depend item ⇒ Get alerts here get severity
Trigger prototypes: “Alert [{#TYPE}]: Alert has “{#SEVERITY}” severity” here we get important information for each Alert in Operational data.
Problem: I need to output the name of the castomer in the Operational data field in Trigger prototype, but this information is not available in the Acronis response from the “Get alerts” item.
After studying the API documentation I found an endpoint with the name of the castomer “https://dev-cloud.acronis.com/api/al...lerts_count” under the condition Query fields id ⇒ {#ALERT_ID}.
Created another one
Item prototypes: “Alert {#SEVERITY} [{#TYPE}]: Customer Name” HTTP agent type with URL ‘https://dev-cloud.acronis.com/api/al...lerts_count’ which retrieves the Name of the castomer (in Latest data the value comes correctly).
Problem: In Trigger prototype in Operational data field: “STATUS: {ITEM.LASTVALUE1} Name {ITEM.LASTVALUE2}” As a result {ITEM.LASTVALUE1} is displayed correctly, but {ITEM.LASTVALUE2} writes *UNKNOWN*. I tried {ITEM.LASTVALUE3-9} and the answer is the same *UNKNOWN*.
Please advise a beginner, what is what for, where to look, what to do
Thank you in advance for your time
Item: “Get alerts” type HTTP agent Here we get all alerts from URL https://dev-cloud.acronis.com/api/al...ager/v1/alerts.
Discovery rule: “Alerts discovery” type Depend item ⇒ “Get alerts” LLD macros are configured here to get some data for each Alert {#ALERT_ID} from $.id, {#TYPE} from $.type, {#SEVERITY} from $.severity etc.
Item prototypes:” Alert {#SEVERITY} [{#TYPE}]” type Depend item ⇒ Get alerts here get severity
Trigger prototypes: “Alert [{#TYPE}]: Alert has “{#SEVERITY}” severity” here we get important information for each Alert in Operational data.
Problem: I need to output the name of the castomer in the Operational data field in Trigger prototype, but this information is not available in the Acronis response from the “Get alerts” item.
After studying the API documentation I found an endpoint with the name of the castomer “https://dev-cloud.acronis.com/api/al...lerts_count” under the condition Query fields id ⇒ {#ALERT_ID}.
Created another one
Item prototypes: “Alert {#SEVERITY} [{#TYPE}]: Customer Name” HTTP agent type with URL ‘https://dev-cloud.acronis.com/api/al...lerts_count’ which retrieves the Name of the castomer (in Latest data the value comes correctly).
Problem: In Trigger prototype in Operational data field: “STATUS: {ITEM.LASTVALUE1} Name {ITEM.LASTVALUE2}” As a result {ITEM.LASTVALUE1} is displayed correctly, but {ITEM.LASTVALUE2} writes *UNKNOWN*. I tried {ITEM.LASTVALUE3-9} and the answer is the same *UNKNOWN*.
Please advise a beginner, what is what for, where to look, what to do
Thank you in advance for your time
Comment