diff --git a/README.md b/README.md index f697ad94..9247afa5 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,7 @@ inheritance problems. | rsyslog | | [✅](./Templates/Applications/rsyslog/7.0) | | | Songticker | | [✅](./Templates/Applications/Songticker/7.0) | | | sssd | | [✅](./Templates/Applications/sssd/7.0) | | +| SUISA Sendemeldung | | [✅](./Templates/Applications/SUISA_Sendemeldung/7.0) | | | systemd-journald | | [✅](./Templates/Applications/systemd-journald/7.0) | | | systemd-logind | | [✅](./Templates/Applications/systemd-logind/7.0) | | | systemd-udevd | | [✅](./Templates/Applications/systemd-udevd/7.0) | | diff --git a/Templates/Applications/SUISA_Sendemeldung/7.0/README.md b/Templates/Applications/SUISA_Sendemeldung/7.0/README.md new file mode 100644 index 00000000..b251430a --- /dev/null +++ b/Templates/Applications/SUISA_Sendemeldung/7.0/README.md @@ -0,0 +1,58 @@ +# Zabbix Template: SUISA Sendemeldung + +![target: suisa_sendemeldung](https://img.shields.io/badge/target-suisa_sendemeldung-00c9bf) ![vendor: RaBe](https://img.shields.io/badge/vendor-RaBe-00c9bf) ![version: 7.0](https://img.shields.io/badge/version-7.0-00c9bf) + +Monitoring for [SUISA Sendmeldung](https://radiorabe.github.io/suisa_sendemeldung/). + +Contains a trapper item for monitoring sucessful runs based on their +last timestamp as a well as a trigger that alerts us when the last +run is more than a month old. + +This template is part of [RaBe's Zabbix template and helpers +collection](https://github.com/radiorabe/rabe-zabbix). + +## Items + +### Item: Last Sucessful Run + +![component: service](https://img.shields.io/badge/component-service-00c9bf) + + + +```console +rabe.suisa_sendemeldung.run.success +``` + +Settings: + +| Item Setting | Value | +| ------------ | ----- | +| Type | TRAP | +| History | 90d | + +## Triggers + +### Trigger: Last run expired + +![scope: compliance](https://img.shields.io/badge/scope-compliance-00c9bf) + + +Settings: + +| Trigger Setting | Values | +| --------------- | ------ | +| Priority | WARNING | + +```console +(now() - last(/SUISA Sendemeldung/rabe.suisa_sendemeldung.run.success)) > 2592000 +``` + +## License + +This template is free software: you can redistribute it and/or modify it under +the terms of the GNU Affero General Public License as published by the Free +Software Foundation, version 3 of the License. + +## Copyright + +Copyright (c) 2017 - 2026 [Radio Bern RaBe](http://www.rabe.ch) diff --git a/Templates/Applications/SUISA_Sendemeldung/7.0/SUISA_Sendemeldung.yaml b/Templates/Applications/SUISA_Sendemeldung/7.0/SUISA_Sendemeldung.yaml new file mode 100644 index 00000000..23f173d2 --- /dev/null +++ b/Templates/Applications/SUISA_Sendemeldung/7.0/SUISA_Sendemeldung.yaml @@ -0,0 +1,45 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: d3992de5d8ca469fadc0a1345b043dc2 + template: 'SUISA Sendemeldung' + name: 'SUISA Sendemeldung' + description: | + Monitoring for [SUISA Sendmeldung](https://radiorabe.github.io/suisa_sendemeldung/). + + Contains a trapper item for monitoring sucessful runs based on their + last timestamp as a well as a trigger that alerts us when the last + run is more than a month old. + + This template is part of [RaBe's Zabbix template and helpers + collection](https://github.com/radiorabe/rabe-zabbix). + vendor: + name: RaBe + version: '7.0' + groups: + - name: Templates/Applications + items: + - uuid: 14f2ae2794e04e88ab7a3ece27e94a72 + name: 'Last Sucessful Run' + type: TRAP + key: rabe.suisa_sendemeldung.run.success + delay: '0' + history: 90d + units: unixtime + tags: + - tag: component + value: service + triggers: + - uuid: c090c4b36e024ba0ad41e3018798c11a + expression: '(now() - last(/SUISA Sendemeldung/rabe.suisa_sendemeldung.run.success)) > 2592000' + name: 'Last run expired' + priority: WARNING + tags: + - tag: scope + value: compliance + tags: + - tag: target + value: suisa_sendemeldung diff --git a/Templates/Applications/SUISA_Sendemeldung/7.0/docs/gen_ref_pages.py b/Templates/Applications/SUISA_Sendemeldung/7.0/docs/gen_ref_pages.py new file mode 100644 index 00000000..bd02be1b --- /dev/null +++ b/Templates/Applications/SUISA_Sendemeldung/7.0/docs/gen_ref_pages.py @@ -0,0 +1,6 @@ +from pathlib import Path + +import mkdocs_gen_files + +with mkdocs_gen_files.open("index.md", "w", encoding="utf-8") as index: + index.writelines(Path("README.md").open("r").read()) diff --git a/Templates/Applications/SUISA_Sendemeldung/7.0/mkdocs.yaml b/Templates/Applications/SUISA_Sendemeldung/7.0/mkdocs.yaml new file mode 100644 index 00000000..3f4ea7f5 --- /dev/null +++ b/Templates/Applications/SUISA_Sendemeldung/7.0/mkdocs.yaml @@ -0,0 +1,17 @@ +site_name: "Zabbix Template: SUISA Sendemeldung" +repo_url: https://github.com/radiorabe/rabe-zabbix +repo_name: radiorabe/rabe-zabbix +markdown_extensions: + - pymdownx.highlight: + anchor_linenums: true + - pymdownx.inlinehilite + - pymdownx.snippets + - pymdownx.superfences +plugins: + - search + - gen-files: + scripts: + - docs/gen_ref_pages.py + - literate-nav +nav: + - README: index.md diff --git a/catalog-info.yaml b/catalog-info.yaml index 97364d98..65001475 100644 --- a/catalog-info.yaml +++ b/catalog-info.yaml @@ -801,6 +801,37 @@ spec: system: rabe-zabbix subcomponentOf: rabe-zabbix-templates --- +# Templates/Applications/SUISA_Sendemeldung/7.0/SUISA_Sendemeldung.yaml +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: zabbix-template-SUISA_Sendemeldung + title: "Zabbix Template: SUISA Sendemeldung" + description: | + Monitoring for [SUISA Sendmeldung](https://radiorabe.github.io/suisa_sendemeldung/). + + Contains a trapper item for monitoring sucessful runs based on their + last timestamp as a well as a trigger that alerts us when the last + run is more than a month old. + + This template is part of [RaBe's Zabbix template and helpers + collection](https://github.com/radiorabe/rabe-zabbix). + + annotations: + backstage.io/techdocs-ref: dir:./Templates/Applications/SUISA_Sendemeldung/7.0 + github.com/project-slug: radiorabe/rabe-zabbix + links: + - url: https://github.com/radiorabe/rabe-zabbix/tree/develop/Templates/Applications/SUISA_Sendemeldung/7.0 + title: GitHub + icon: github + tags: [suisa_sendemeldung] +spec: + type: zabbix-template + lifecycle: experimental + owner: it-reaktion + system: rabe-zabbix + subcomponentOf: rabe-zabbix-templates +--- # Templates/Applications/systemd-journald/7.0/systemd-journald.yaml apiVersion: backstage.io/v1alpha1 kind: Component diff --git a/hack/playbooks/manage/manage.yaml b/hack/playbooks/manage/manage.yaml index 2b84c104..3ab47d29 100644 --- a/hack/playbooks/manage/manage.yaml +++ b/hack/playbooks/manage/manage.yaml @@ -33,6 +33,7 @@ - template_name: "Songticker" - template_name: "Songticker Stack" - template_name: "sssd" + - template_name: "SUISA Sendemeldung" - template_name: "systemd-journald" - template_name: "systemd-logind" - template_name: "systemd-udevd"