New to Zabbix
I have a need to setup the following:
1. Monitor www.mysite.com
2. If I don't get a 200 back send an alert to slack
- the message should include the URL that failed
- the message should include the response code received
- the message should include the response body received
- the message should include basic expected meta-data (response time, date UTC etc)
3. This message should be sent 1x and then 1x again when the site is back online returning 200's
So far I have the following
- Slack alert script installed and configured
- One host (my zabbix server)
- This host has ONE webscenario named "test1"
- This Webscenario has ONE step named "step1" that calls my URL and expects a 200
- This host has ONE trigger, named "test1trigger"
- problem expression = "{myhost:web.test.fail[test1].last()}<>0"
- recovery expression = "{myhost:web.test.fail[test1].last()}=0"
- the trigger URL is set equal to the URL I already declared in the webscenario step
- This host has ONE action, named "test1-action"
- TYPE of condition = AND
- "A maintenance status not in maintenance"
- "B trigger name like test1trigger"
- Under OPERATIONS this message configuration screen appears, the below is in the message body
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}
When the message goes to slack, only line 1 is populated with "Failed step of scenario "test1". (myhost:web.test.fail[test1]): 1" which is pretty useless.
Lines 2 & 3 just say UNKNOWN for everything.
I have zero clue what this ITEM.X, HOST.X syntax even means and am having trouble relating it to what I see in the docs
How do I configured this message template to show the URL configured in the step, the HTTP RESPONSE CODE, the HTTP RESPONSE body, the request time etc?
This syntax is confusing to me
I have a need to setup the following:
1. Monitor www.mysite.com
2. If I don't get a 200 back send an alert to slack
- the message should include the URL that failed
- the message should include the response code received
- the message should include the response body received
- the message should include basic expected meta-data (response time, date UTC etc)
3. This message should be sent 1x and then 1x again when the site is back online returning 200's
So far I have the following
- Slack alert script installed and configured
- One host (my zabbix server)
- This host has ONE webscenario named "test1"
- This Webscenario has ONE step named "step1" that calls my URL and expects a 200
- This host has ONE trigger, named "test1trigger"
- problem expression = "{myhost:web.test.fail[test1].last()}<>0"
- recovery expression = "{myhost:web.test.fail[test1].last()}=0"
- the trigger URL is set equal to the URL I already declared in the webscenario step
- This host has ONE action, named "test1-action"
- TYPE of condition = AND
- "A maintenance status not in maintenance"
- "B trigger name like test1trigger"
- Under OPERATIONS this message configuration screen appears, the below is in the message body
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}
When the message goes to slack, only line 1 is populated with "Failed step of scenario "test1". (myhost:web.test.fail[test1]): 1" which is pretty useless.
Lines 2 & 3 just say UNKNOWN for everything.
I have zero clue what this ITEM.X, HOST.X syntax even means and am having trouble relating it to what I see in the docs
How do I configured this message template to show the URL configured in the step, the HTTP RESPONSE CODE, the HTTP RESPONSE body, the request time etc?
This syntax is confusing to me