I have a single host "myhost", with one webscenario "test1".
This has a single step that checks a URL for a 200
The trigger has an expressions fires when status is <> 0, and recovers when = 0
This trigger is bound to an Action with the following message:
The messages template displays this:
However the actual message looks like this
The above is pretty worthless.
I need to show the URL of the step, the response code, the time of the request at a minimum.
How can I do this?
I read both of the following pages and still feel clueless. This seems overly complex
This has a single step that checks a URL for a 200
The trigger has an expressions fires when status is <> 0, and recovers when = 0
This trigger is bound to an Action with the following message:
The messages template displays this:
Trigger: {TRIGGER.NAME}
Trigger status: {TRIGGER.STATUS}
Trigger severity: {TRIGGER.SEVERITY}
Trigger URL: {TRIGGER.URL}
Item values:
1. {ITEM.NAME1} ({HOST.NAME1}:{ITEM.KEY1}): {ITEM.VALUE1}
2. {ITEM.NAME2} ({HOST.NAME2}:{ITEM.KEY2}): {ITEM.VALUE2}
3. {ITEM.NAME3} ({HOST.NAME3}:{ITEM.KEY3}): {ITEM.VALUE3}
Original event ID: {EVENT.ID}
Trigger status: {TRIGGER.STATUS}
Trigger severity: {TRIGGER.SEVERITY}
Trigger URL: {TRIGGER.URL}
Item values:
1. {ITEM.NAME1} ({HOST.NAME1}:{ITEM.KEY1}): {ITEM.VALUE1}
2. {ITEM.NAME2} ({HOST.NAME2}:{ITEM.KEY2}): {ITEM.VALUE2}
3. {ITEM.NAME3} ({HOST.NAME3}:{ITEM.KEY3}): {ITEM.VALUE3}
Original event ID: {EVENT.ID}
However the actual message looks like this
PROBLEM: test1trigger: Trigger: test1trigger
Trigger status: PROBLEM
Trigger severity: High
Trigger URL:
Item values:
1. Failed step of scenario "test1". (myhost:web.test.fail[test1]): 1
2. *UNKNOWN* (*UNKNOWN*:*UNKNOWN*): *UNKNOWN*
3. *UNKNOWN* (*UNKNOWN*:*UNKNOWN*): *UNKNOWN*
Original event
Trigger status: PROBLEM
Trigger severity: High
Trigger URL:
Item values:
1. Failed step of scenario "test1". (myhost:web.test.fail[test1]): 1
2. *UNKNOWN* (*UNKNOWN*:*UNKNOWN*): *UNKNOWN*
3. *UNKNOWN* (*UNKNOWN*:*UNKNOWN*): *UNKNOWN*
Original event
I need to show the URL of the step, the response code, the time of the request at a minimum.
How can I do this?
I read both of the following pages and still feel clueless. This seems overly complex
Comment