forked from infra/ansible
Zabbix: Add proxy file-age checks for ostree & mirrorlist cache
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
This commit is contained in:
parent
6bdcf23ac7
commit
d47a991333
1 changed files with 115 additions and 18 deletions
|
|
@ -5,8 +5,8 @@ zabbix_export:
|
|||
name: Fedora
|
||||
templates:
|
||||
- uuid: 248dc8195923413eb6fb9dd8a8e09332
|
||||
template: 'Proxy HTTPd checks'
|
||||
name: 'Proxy HTTPd checks'
|
||||
template: 'Proxy checks'
|
||||
name: 'Proxy checks'
|
||||
groups:
|
||||
- name: Fedora
|
||||
items:
|
||||
|
|
@ -16,19 +16,116 @@ zabbix_export:
|
|||
key: 'vfs.file.time[/etc/httpd/ticketkey.tkey,modify]'
|
||||
history: 1d
|
||||
trends: '0'
|
||||
units: unixtime
|
||||
description: 'Date of the ticketkey file, based on "modify" stat output'
|
||||
tags:
|
||||
- tag: application
|
||||
value: ticketkey
|
||||
triggers:
|
||||
- uuid: bfd41861a3f6448cbf0013675f8a6c74
|
||||
expression: 'now() - last(/Proxy HTTPd checks/vfs.file.time[/etc/httpd/ticketkey.tkey,modify]) > 3900'
|
||||
expression: 'now() - last(/Proxy checks/vfs.file.time[/etc/httpd/ticketkey.tkey,modify]) > 3900'
|
||||
name: 'TicketKey age is more than one hour'
|
||||
priority: WARNING
|
||||
dependencies:
|
||||
- name: 'TicketKey age is more than two hours'
|
||||
expression: 'now() - last(/Proxy checks/vfs.file.time[/etc/httpd/ticketkey.tkey,modify]) > 7200'
|
||||
tags:
|
||||
- tag: scope
|
||||
value: file_age
|
||||
- uuid: 8b004b185340490ea9fa1fce4bc92386
|
||||
expression: 'now() - last(/Proxy HTTPd checks/vfs.file.time[/etc/httpd/ticketkey.tkey,modify]) > 7200'
|
||||
expression: 'now() - last(/Proxy checks/vfs.file.time[/etc/httpd/ticketkey.tkey,modify]) > 7200'
|
||||
name: 'TicketKey age is more than two hours'
|
||||
priority: AVERAGE
|
||||
tags:
|
||||
- tag: scope
|
||||
value: file_age
|
||||
- uuid: a9a117ebdc514b08af24633b1ac40448
|
||||
name: 'Mirrorlist 1 cache timestamp'
|
||||
type: ZABBIX_ACTIVE
|
||||
key: 'vfs.file.time[/srv/mirrorlist/data/mirrorlist1/mirrorlist_cache.proto,modify]'
|
||||
history: 1d
|
||||
trends: '0'
|
||||
units: unixtime
|
||||
description: 'Date of the ticketkey file, based on "modify" stat output'
|
||||
tags:
|
||||
- tag: application
|
||||
value: ticketkey
|
||||
triggers:
|
||||
- uuid: af2a279be64f4044b9c159a565072062
|
||||
expression: 'now() - last(/Proxy checks/vfs.file.time[/srv/mirrorlist/data/mirrorlist1/mirrorlist_cache.proto,modify]) > 14400'
|
||||
name: 'Mirrorlist 1 cache age is more than 4 hours'
|
||||
priority: WARNING
|
||||
dependencies:
|
||||
- name: 'Mirrorlist 1 cache age is more than 36 hours'
|
||||
expression: 'now() - last(/Proxy checks/vfs.file.time[/srv/mirrorlist/data/mirrorlist1/mirrorlist_cache.proto,modify]) > 129600'
|
||||
tags:
|
||||
- tag: scope
|
||||
value: file_age
|
||||
- uuid: 16f086125dd04d4ca7896cefad47b3de
|
||||
expression: 'now() - last(/Proxy checks/vfs.file.time[/srv/mirrorlist/data/mirrorlist1/mirrorlist_cache.proto,modify]) > 129600'
|
||||
name: 'Mirrorlist 1 cache age is more than 36 hours'
|
||||
priority: AVERAGE
|
||||
tags:
|
||||
- tag: scope
|
||||
value: file_age
|
||||
- uuid: dc236818b1e8480097dc7ffed3d179e9
|
||||
name: 'Mirrorlist 2 cache timestamp'
|
||||
type: ZABBIX_ACTIVE
|
||||
key: 'vfs.file.time[/srv/mirrorlist/data/mirrorlist2/mirrorlist_cache.proto,modify]'
|
||||
history: 1d
|
||||
trends: '0'
|
||||
units: unixtime
|
||||
description: 'Date of the ticketkey file, based on "modify" stat output'
|
||||
tags:
|
||||
- tag: application
|
||||
value: ticketkey
|
||||
triggers:
|
||||
- uuid: 681164a1ffdb4c5ca7cd74f41c51d3d8
|
||||
expression: 'now() - last(/Proxy checks/vfs.file.time[/srv/mirrorlist/data/mirrorlist2/mirrorlist_cache.proto,modify]) > 14400'
|
||||
name: 'Mirrorlist 2 cache age is more than 4 hours'
|
||||
priority: WARNING
|
||||
dependencies:
|
||||
- name: 'Mirrorlist 2 cache age is more than 36 hours'
|
||||
expression: 'now() - last(/Proxy checks/vfs.file.time[/srv/mirrorlist/data/mirrorlist2/mirrorlist_cache.proto,modify]) > 129600'
|
||||
tags:
|
||||
- tag: scope
|
||||
value: file_age
|
||||
- uuid: 40cf9c585fdf471d855ef3da6396cfc2
|
||||
expression: 'now() - last(/Proxy checks/vfs.file.time[/srv/mirrorlist/data/mirrorlist2/mirrorlist_cache.proto,modify]) > 129600'
|
||||
name: 'Mirrorlist 2 cache age is more than 36 hours'
|
||||
priority: AVERAGE
|
||||
tags:
|
||||
- tag: scope
|
||||
value: file_age
|
||||
- uuid: 07990ae5100f44208e7dab5da438c043
|
||||
name: 'OSTree Summary file timestamp'
|
||||
type: ZABBIX_ACTIVE
|
||||
key: 'vfs.file.time[/srv/web/ostree/summary,modify]'
|
||||
history: 1d
|
||||
trends: '0'
|
||||
units: unixtime
|
||||
description: 'Date of the ticketkey file, based on "modify" stat output'
|
||||
tags:
|
||||
- tag: application
|
||||
value: ticketkey
|
||||
triggers:
|
||||
- uuid: bedc260eec06438097abdd7f0c7a6adb
|
||||
expression: 'now() - last(/Proxy checks/vfs.file.time[/srv/web/ostree/summary,modify]) > 1800'
|
||||
name: 'OSTree summary file age is more than 30 mins'
|
||||
priority: WARNING
|
||||
dependencies:
|
||||
- name: 'OSTree summary file age is more than one hour'
|
||||
expression: 'now() - last(/Proxy checks/vfs.file.time[/srv/web/ostree/summary,modify]) > 3600'
|
||||
tags:
|
||||
- tag: scope
|
||||
value: file_age
|
||||
- uuid: ea88d0ecaeff4896af3e836b4431c7ec
|
||||
expression: 'now() - last(/Proxy checks/vfs.file.time[/srv/web/ostree/summary,modify]) > 3600'
|
||||
name: 'OSTree summary file age is more than one hour'
|
||||
priority: AVERAGE
|
||||
tags:
|
||||
- tag: scope
|
||||
value: file_age
|
||||
- uuid: 9047878841c3403ebfd1352424ca96d7
|
||||
name: http-accounts
|
||||
type: ZABBIX_ACTIVE
|
||||
|
|
@ -42,7 +139,7 @@ zabbix_export:
|
|||
value: infra
|
||||
triggers:
|
||||
- uuid: 8830fee0972e42b0874bd1301c84bc58
|
||||
expression: 'last(/Proxy HTTPd checks/web.page.regexp[https://accounts.fedoraproject.org/healthz/ready,,,OK])<>"OK"'
|
||||
expression: 'last(/Proxy checks/web.page.regexp[https://accounts.fedoraproject.org/healthz/ready,,,OK])<>"OK"'
|
||||
name: 'http-accounts connection failed'
|
||||
priority: AVERAGE
|
||||
tags:
|
||||
|
|
@ -63,7 +160,7 @@ zabbix_export:
|
|||
value: infra
|
||||
triggers:
|
||||
- uuid: 777798b8704c4eb8a9a90d8b0054a900
|
||||
expression: 'last(/Proxy HTTPd checks/web.page.regexp[https://bodhi.fedoraproject.org/,,,Active Testers])<>"Active Testers"'
|
||||
expression: 'last(/Proxy checks/web.page.regexp[https://bodhi.fedoraproject.org/,,,Active Testers])<>"Active Testers"'
|
||||
name: 'http-bodhi connection failed'
|
||||
priority: AVERAGE
|
||||
tags:
|
||||
|
|
@ -84,7 +181,7 @@ zabbix_export:
|
|||
value: infra
|
||||
triggers:
|
||||
- uuid: d2111d480e404b349f14f400ff2a693a
|
||||
expression: 'last(/Proxy HTTPd checks/web.page.regexp[https://docs.fedoraproject.org/en-US/docs/index.html,,,Antora])<>"Antora"'
|
||||
expression: 'last(/Proxy checks/web.page.regexp[https://docs.fedoraproject.org/en-US/docs/index.html,,,Antora])<>"Antora"'
|
||||
name: 'http-docs.fedoraproject.org connection failed'
|
||||
priority: AVERAGE
|
||||
tags:
|
||||
|
|
@ -105,7 +202,7 @@ zabbix_export:
|
|||
value: infra
|
||||
triggers:
|
||||
- uuid: 1d55c842156c4290ac0d6f7bdcb02f13
|
||||
expression: 'last(/Proxy HTTPd checks/web.page.regexp[https://fedoraproject.org/,,,https://fedoraproject.org])<>"https://fedoraproject.org"'
|
||||
expression: 'last(/Proxy checks/web.page.regexp[https://fedoraproject.org/,,,https://fedoraproject.org])<>"https://fedoraproject.org"'
|
||||
name: 'http-fedoraproject.org connection failed'
|
||||
priority: AVERAGE
|
||||
tags:
|
||||
|
|
@ -126,7 +223,7 @@ zabbix_export:
|
|||
value: infra
|
||||
triggers:
|
||||
- uuid: bfd8143fda7b4c60bebc80086024e48b
|
||||
expression: 'last(/Proxy HTTPd checks/web.page.regexp[https://fedoraproject.org/static/hotspot.txt,,,OK])<>"OK"'
|
||||
expression: 'last(/Proxy checks/web.page.regexp[https://fedoraproject.org/static/hotspot.txt,,,OK])<>"OK"'
|
||||
name: 'http-fedoraproject.org-hotspot.txt connection failed'
|
||||
priority: AVERAGE
|
||||
tags:
|
||||
|
|
@ -147,7 +244,7 @@ zabbix_export:
|
|||
value: infra
|
||||
triggers:
|
||||
- uuid: 8efe34c0ade040d5b9d84ee06f31cc04
|
||||
expression: 'last(/Proxy HTTPd checks/web.page.regexp[https://fedoraproject.org/wiki/Fedora_Project_Wiki,,,Looking for help])<>"Looking for help"'
|
||||
expression: 'last(/Proxy checks/web.page.regexp[https://fedoraproject.org/wiki/Fedora_Project_Wiki,,,Looking for help])<>"Looking for help"'
|
||||
name: 'http-fedoraproject.org-wiki connection failed'
|
||||
priority: AVERAGE
|
||||
tags:
|
||||
|
|
@ -168,7 +265,7 @@ zabbix_export:
|
|||
value: infra
|
||||
triggers:
|
||||
- uuid: ca2817c97ef64ed08e35c08535b0bd41
|
||||
expression: 'last(/Proxy HTTPd checks/web.page.regexp[https://fedoraproject.org/wiki/Special:Version,,,MediaWiki is free software])<>"MediaWiki is free software"'
|
||||
expression: 'last(/Proxy checks/web.page.regexp[https://fedoraproject.org/wiki/Special:Version,,,MediaWiki is free software])<>"MediaWiki is free software"'
|
||||
name: 'http-fedoraproject.org-wiki-non-cached connection failed'
|
||||
priority: AVERAGE
|
||||
tags:
|
||||
|
|
@ -189,7 +286,7 @@ zabbix_export:
|
|||
value: infra
|
||||
triggers:
|
||||
- uuid: ea8cf6f662e74b04ad0b18731bf966ef
|
||||
expression: 'last(/Proxy HTTPd checks/web.page.regexp[https://greenwave-web-greenwave.apps.ocp.fedoraproject.org/api/v1.0/policies,,,bodhi_update_push_stable])<>"bodhi_update_push_stable"'
|
||||
expression: 'last(/Proxy checks/web.page.regexp[https://greenwave-web-greenwave.apps.ocp.fedoraproject.org/api/v1.0/policies,,,bodhi_update_push_stable])<>"bodhi_update_push_stable"'
|
||||
name: 'http-greenwave connection failed'
|
||||
priority: AVERAGE
|
||||
tags:
|
||||
|
|
@ -210,7 +307,7 @@ zabbix_export:
|
|||
value: infra
|
||||
triggers:
|
||||
- uuid: 928062a012a54ce2b20a215c0d35e3af
|
||||
expression: 'last(/Proxy HTTPd checks/web.page.regexp[https://id.fedoraproject.org/,,,your Fedora Account])<>"your Fedora Account"'
|
||||
expression: 'last(/Proxy checks/web.page.regexp[https://id.fedoraproject.org/,,,your Fedora Account])<>"your Fedora Account"'
|
||||
name: 'http-ipsilon connection failed'
|
||||
priority: AVERAGE
|
||||
tags:
|
||||
|
|
@ -231,7 +328,7 @@ zabbix_export:
|
|||
value: infra
|
||||
triggers:
|
||||
- uuid: ebe02ba799684a2aa1e9948d1b56bd68
|
||||
expression: 'last(/Proxy HTTPd checks/web.page.regexp[https://koschei.fedoraproject.org/,,,Package summary])<>"Package summary"'
|
||||
expression: 'last(/Proxy checks/web.page.regexp[https://koschei.fedoraproject.org/,,,Package summary])<>"Package summary"'
|
||||
name: 'http-koschei connection failed'
|
||||
priority: AVERAGE
|
||||
tags:
|
||||
|
|
@ -252,7 +349,7 @@ zabbix_export:
|
|||
value: infra
|
||||
triggers:
|
||||
- uuid: 0d99a7de0ca94563b556cfc08eb39702
|
||||
expression: 'last(/Proxy HTTPd checks/web.page.regexp[https://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=x86_64&country=global,,,development])<>"development"'
|
||||
expression: 'last(/Proxy checks/web.page.regexp[https://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=x86_64&country=global,,,development])<>"development"'
|
||||
name: 'http-mirrorlist connection failed'
|
||||
priority: AVERAGE
|
||||
tags:
|
||||
|
|
@ -273,7 +370,7 @@ zabbix_export:
|
|||
value: infra
|
||||
triggers:
|
||||
- uuid: 09fa67873d3745268a0a3f06c9c68a02
|
||||
expression: 'last(/Proxy HTTPd checks/web.page.regexp[https://registry.fedoraproject.org/v2/,,,{}])<>"{}"'
|
||||
expression: 'last(/Proxy checks/web.page.regexp[https://registry.fedoraproject.org/v2/,,,{}])<>"{}"'
|
||||
name: 'http-moby-gresitry connection failed'
|
||||
priority: AVERAGE
|
||||
tags:
|
||||
|
|
@ -294,7 +391,7 @@ zabbix_export:
|
|||
value: infra
|
||||
triggers:
|
||||
- uuid: 1861890b34894f27b1be9380f58c82b9
|
||||
expression: 'last(/Proxy HTTPd checks/web.page.regexp[https://release-monitoring.org/,,,Watch for releases of your favorite projects])<>"Watch for releases of your favorite projects"'
|
||||
expression: 'last(/Proxy checks/web.page.regexp[https://release-monitoring.org/,,,Watch for releases of your favorite projects])<>"Watch for releases of your favorite projects"'
|
||||
name: 'http-release-monitoring.org connection failed'
|
||||
priority: AVERAGE
|
||||
tags:
|
||||
|
|
@ -315,7 +412,7 @@ zabbix_export:
|
|||
value: infra
|
||||
triggers:
|
||||
- uuid: aaa3e2d4fb9d41cba1f5007c9521837d
|
||||
expression: 'last(/Proxy HTTPd checks/web.page.regexp[https://waiverdb-web-waiverdb.apps.ocp.fedoraproject.org/api/v1.0/waivers/,,,first])<>"first"'
|
||||
expression: 'last(/Proxy checks/web.page.regexp[https://waiverdb-web-waiverdb.apps.ocp.fedoraproject.org/api/v1.0/waivers/,,,first])<>"first"'
|
||||
name: 'http-waiverdb connection failed'
|
||||
priority: AVERAGE
|
||||
tags:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue