added 'http-availability'
This commit is contained in:
parent
de9c13683e
commit
024b521c51
43
templates/components/http-availability/6.0/README.md
Executable file
43
templates/components/http-availability/6.0/README.md
Executable file
|
@ -0,0 +1,43 @@
|
||||||
|
|
||||||
|
# HTTP availability by Web scenario
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
|
This template is designed for http availability monitoring by Web scenario and doesn't require any external scripts.
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
- Zabbix version: 6.0 and higher.
|
||||||
|
|
||||||
|
## Tested versions
|
||||||
|
|
||||||
|
This template has been tested on:
|
||||||
|
|
||||||
|
- [Debian GNU/Linux 12](http://ftp.debian.org/debian/dists/bookworm/)
|
||||||
|
|
||||||
|
### Macros used
|
||||||
|
|
||||||
|
|Name|Description|Default|
|
||||||
|
|----|-----------|-------|
|
||||||
|
|{$PROXY}|define empty if proxy is not used|`http://user:pass@proxy.host.local:3128`|
|
||||||
|
|{$URL}|path to check availability|`http://target.domain.zone/service/path`|
|
||||||
|
|
||||||
|
### Items
|
||||||
|
|
||||||
|
There are no items in this template.
|
||||||
|
|
||||||
|
### Triggers
|
||||||
|
|
||||||
|
|Name|Description|Expression|Severity|Dependencies and additional info|
|
||||||
|
|----|-----------|----------|--------|--------------------------------|
|
||||||
|
|HTTP not available for 5m|-|avg(/HTTP availability by Web scenario/web.test.fail[HTTP Service availability],5m)=1|Warning|Manual close: No, Operational data: {$URL} via {$PROXY}|
|
||||||
|
|HTTP not available for 1h|-|avg(/HTTP availability by Web scenario/web.test.fail[HTTP Service availability],1h)=1|Average|Manual close: No, Operational data: {$URL} via {$PROXY}|
|
||||||
|
|HTTP not available for 1d|-|avg(/HTTP availability by Web scenario/web.test.fail[HTTP Service availability],1d)=1|High|Manual close: No, Operational data: {$URL} via {$PROXY}|
|
||||||
|
|
||||||
|
### Discovery rules
|
||||||
|
|
||||||
|
There are no discovery rules in this template.
|
||||||
|
|
||||||
|
### Item prototypes
|
||||||
|
|
||||||
|
There are no item prototypes in this template.
|
|
@ -0,0 +1,81 @@
|
||||||
|
zabbix_export:
|
||||||
|
version: '6.0'
|
||||||
|
date: '2024-06-29T00:00:00Z'
|
||||||
|
groups:
|
||||||
|
-
|
||||||
|
uuid: 57b7ae836ca64446ba2c296389c009b7
|
||||||
|
name: Templates/Modules
|
||||||
|
templates:
|
||||||
|
-
|
||||||
|
uuid: 6831042824494696b5c6d64b67aa2892
|
||||||
|
template: 'HTTP availability by Web scenario'
|
||||||
|
name: 'HTTP availability by Web scenario'
|
||||||
|
description: 'Get http availability via porxy or not using Web scenario.'
|
||||||
|
groups:
|
||||||
|
-
|
||||||
|
name: Templates/Modules
|
||||||
|
httptests:
|
||||||
|
-
|
||||||
|
uuid: bc496e30a3a441bfb2acb594d40a3d6c
|
||||||
|
name: 'HTTP Service availability'
|
||||||
|
agent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36'
|
||||||
|
http_proxy: '{$PROXY}'
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Home
|
||||||
|
url: '{$URL}'
|
||||||
|
status_codes: '200'
|
||||||
|
tags:
|
||||||
|
-
|
||||||
|
tag: http
|
||||||
|
value: availability
|
||||||
|
macros:
|
||||||
|
-
|
||||||
|
macro: '{$PROXY}'
|
||||||
|
value: 'http://user:pass@proxy.host.local:3128'
|
||||||
|
-
|
||||||
|
macro: '{$URL}'
|
||||||
|
value: 'http://target.domain.zone/service/path'
|
||||||
|
triggers:
|
||||||
|
-
|
||||||
|
uuid: ceab5d505a294d8eb4b5a7279abee282
|
||||||
|
expression: 'avg(/HTTP availability by Web scenario/web.test.fail[HTTP Service availability],1d)=1'
|
||||||
|
name: 'HTTP not available for 1d'
|
||||||
|
opdata: '{$URL} via {$PROXY}'
|
||||||
|
priority: HIGH
|
||||||
|
-
|
||||||
|
uuid: b1990a042b524163b308c64e99444736
|
||||||
|
expression: 'avg(/HTTP availability by Web scenario/web.test.fail[HTTP Service availability],1h)=1'
|
||||||
|
name: 'HTTP not available for 1h'
|
||||||
|
opdata: '{$URL} via {$PROXY}'
|
||||||
|
priority: AVERAGE
|
||||||
|
-
|
||||||
|
uuid: 68dd4398e9814a509209d7bdb8130337
|
||||||
|
expression: 'avg(/HTTP availability by Web scenario/web.test.fail[HTTP Service availability],5m)=1'
|
||||||
|
name: 'HTTP not available for 5m'
|
||||||
|
opdata: '{$URL} via {$PROXY}'
|
||||||
|
priority: WARNING
|
||||||
|
graphs:
|
||||||
|
-
|
||||||
|
uuid: 7091db8ab9a24780a2c92be707102c41
|
||||||
|
name: 'HTTP availability'
|
||||||
|
show_triggers: 'NO'
|
||||||
|
ymin_type_1: FIXED
|
||||||
|
graph_items:
|
||||||
|
-
|
||||||
|
color: 00FF00
|
||||||
|
item:
|
||||||
|
host: 'HTTP availability by Web scenario'
|
||||||
|
key: 'web.test.in[HTTP Service availability,,bps]'
|
||||||
|
-
|
||||||
|
sortorder: '1'
|
||||||
|
color: 00FFFF
|
||||||
|
item:
|
||||||
|
host: 'HTTP availability by Web scenario'
|
||||||
|
key: 'web.test.time[HTTP Service availability,Home,resp]'
|
||||||
|
-
|
||||||
|
sortorder: '2'
|
||||||
|
color: FF0000
|
||||||
|
item:
|
||||||
|
host: 'HTTP availability by Web scenario'
|
||||||
|
key: 'web.test.fail[HTTP Service availability]'
|
Loading…
Reference in New Issue
Block a user