Hi,
Let's suppose I have 3 hosts :
For each host I have created a Web Scenario. Each web scenario have the same name "General Web Tests". This scenario only have 1 step which is to get the homepage of the "host" and expect to get a 200 response code. Pretty simple for now.
From there, FOR EACH HOST, I have create a trigger that verify if the "General Web Tests" have any error.
Which mean :
First question : Is it possible to have ONE general trigger for each host ?
Something like :
Second question : Is it possible to have ONE action that send an email if any web scenario failed which INCLUDE the last HTML error and the download speed of the last request ?
Something like :
My goal here is not to have to create 1 custom action for each host which would look like :
Let's suppose I have 3 hosts :
For each host I have created a Web Scenario. Each web scenario have the same name "General Web Tests". This scenario only have 1 step which is to get the homepage of the "host" and expect to get a 200 response code. Pretty simple for now.
From there, FOR EACH HOST, I have create a trigger that verify if the "General Web Tests" have any error.
Which mean :
- www.host1.com have a custom trigger which looks like this : {www.host1.com:web.test.fail[General Web Tests].last()}<>0
- www.host2.com have a custom trigger which looks like this : {www.host2.com:web.test.fail[General Web Tests].last()}<>0
- www.host3.com have a custom trigger which looks like this : {www.host3.com:web.test.fail[General Web Tests].last()}<>0
First question : Is it possible to have ONE general trigger for each host ?
Something like :
Code:
[INDENT]{{HOST.NAME}:web.test.fail[General Web Tests].[B]last([/B][B])[/B]}<>0[/INDENT]
Something like :
Code:
[INDENT]Subject :
Problem : {TRIGGER.STATUS} {HOST.NAME1} - {TRIGGER.NAME}
Message :
Problem started at {EVENT.TIME} on {EVENT.DATE}
Problem name: {TRIGGER.NAME}
Host: {HOST.NAME}
Severity: {TRIGGER.SEVERITY}
Original problem ID: {EVENT.ID}
{TRIGGER.URL}
Additionnal info :
Last HTML error : {{HOST.NAME}:web.test.fail[General Web Tests].last(0)}
Downlaod speed of the last HTML request : {{HOST.NAME}:web.test.in[General Web Tests,,bps].last(0)}[/INDENT]
Code:
[INDENT]#1
Last HTML error : {www.host1.com:web.test.fail[General Web Tests].last(0)}
Downlaod speed of the last HTML request : {www.host1.com:web.test.in[General Web Tests,,bps].last(0)}
#2
Last HTML error : {www.host2.com:web.test.fail[General Web Tests].last(0)}
Downlaod speed of the last HTML request : {www.host2.com:web.test.in[General Web Tests,,bps].last(0)}
#3
Last HTML error : {www.host3.com:web.test.fail[General Web Tests].last(0)}
Downlaod speed of the last HTML request : {www.host3.com:web.test.in[General Web Tests,,bps].last(0)}[/INDENT]
Comment