Skip to content

Commit

Permalink
Trigger expresion fix and minor fixes.
Browse files Browse the repository at this point in the history
Better graph colors.
Trigger expresion fixed.
One macro removed, increasing accessibility.
  • Loading branch information
PatxiAndueza authored Jun 1, 2022
1 parent ba9d3dc commit 0b744d3
Showing 1 changed file with 19 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
zabbix_export:
version: '5.4'
date: '2022-05-26T13:54:19Z'
date: '2022-06-01T07:55:55Z'
groups:
-
uuid: 7df96b18c230490a9a0a9e2307226338
name: Templates
-
uuid: 3f77f3c6c2f94049b5004c80a5de964f
name: 'Templates/Web scenarios'
templates:
-
uuid: 22bd2ae920484b5b985faa9125ecce12
uuid: 2340b092a0d147f2b56faffd2424052a
template: 'Generic webpage by Web scenarios'
name: 'Generic webpage by Web scenarios'
description: |
Expand All @@ -20,9 +23,11 @@ zabbix_export:
groups:
-
name: Templates
-
name: 'Templates/Web scenarios'
httptests:
-
uuid: 7cf20f1d150c4300b4a498e995421c9f
uuid: be1eb3dd769c48ac829c58914e1540d9
name: 'Webpage availability'
delay: '{$UPDATE.INTERVAL}'
steps:
Expand All @@ -31,57 +36,54 @@ zabbix_export:
url: '{$URL}'
status_codes: '200'
macros:
-
macro: '{$TRIES.UNTIL.TRIGGER}'
value: '2'
description: 'Attempts until the trigger is fired. (Minimum value 1, so that it is triggered immediately).'
-
macro: '{$UPDATE.INTERVAL}'
value: 1m
description: 'Every so often a request is made to the website.'
-
macro: '{$URL}'
value: '<Put the page URL here>'
description: 'Full URL of the page to monitor. (For example : https://mywebpage.com/)'
description: 'Full URL of the page to monitor. (For example : https://mywebpage.com)'
triggers:
-
uuid: 76132502af0c4f4e8adad4a3caa8833a
expression: 'last(/Generic webpage by Web scenarios/web.test.fail[Webpage availability],{$TRIES.UNTIL.TRIGGER})<>0'
uuid: 928d292ad06d40939647b961cf67b6f3
expression: 'min(/Generic webpage by Web scenarios/web.test.fail[Webpage availability],#2)<>0'
name: 'Webpage not available'
priority: HIGH
description: 'The website has failed to return the status code 200 (OK) on {$TRIES.UNTIL.TRIGGER} occasions.'
description: 'The website has failed to return the status code 200 (OK) on two occasions.'
graphs:
-
uuid: 8819615d93824951936b43f72328009a
uuid: d19b452236724ac7ad7c2cfe7ffe6a63
name: 'Response time'
graph_items:
-
sortorder: '1'
drawtype: FILLED_REGION
color: 0097A7
color: 00BCD4
item:
host: 'Generic webpage by Web scenarios'
key: 'web.test.time[Webpage availability,Webpage availability,resp]'
-
sortorder: '2'
color: D32F2F
color: F44336
yaxisside: RIGHT
item:
host: 'Generic webpage by Web scenarios'
key: 'web.test.fail[Webpage availability]'
-
uuid: 5b33f9f5696349abbd7a04fa8c65eb10
uuid: 5eab502f3d1744c3989ec0aab5b29b08
name: Speed
graph_items:
-
sortorder: '1'
drawtype: FILLED_REGION
color: 689F38
color: 4CAF50
item:
host: 'Generic webpage by Web scenarios'
key: 'web.test.in[Webpage availability,,bps]'
-
sortorder: '2'
color: D32F2F
color: F44336
yaxisside: RIGHT
item:
host: 'Generic webpage by Web scenarios'
Expand Down

0 comments on commit 0b744d3

Please sign in to comment.