From 0ca0e5855b34a4b3a43e61a6cbc9284bb22908e2 Mon Sep 17 00:00:00 2001 From: Lucas Date: Sun, 15 Dec 2024 15:01:12 +0100 Subject: [PATCH] feat(stacks): Add APX 3000 Stack --- README.md | 6 +++++ .../7.0/APC_Smart-UPS_3000_Stack.yaml | 26 ++++++++++++++++++ .../APC_Smart-UPS_3000_Stack/7.0/README.md | 26 ++++++++++++++++++ .../7.0/docs/gen_ref_pages.py | 6 +++++ .../APC_Smart-UPS_3000_Stack/7.0/mkdocs.yaml | 17 ++++++++++++ catalog-info.yaml | 27 +++++++++++++++++++ hack/plays/manage.yml | 1 + 7 files changed, 109 insertions(+) create mode 100644 Stacks/Systems/APC_Smart-UPS_3000_Stack/7.0/APC_Smart-UPS_3000_Stack.yaml create mode 100644 Stacks/Systems/APC_Smart-UPS_3000_Stack/7.0/README.md create mode 100644 Stacks/Systems/APC_Smart-UPS_3000_Stack/7.0/docs/gen_ref_pages.py create mode 100644 Stacks/Systems/APC_Smart-UPS_3000_Stack/7.0/mkdocs.yaml diff --git a/README.md b/README.md index 336cc4aa..54d815a7 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,12 @@ inheritance problems. | EL8 KVM VM Stack | | [✅](./Stacks/Servers/EL8_KVM_VM_Stack/6.4) | [✅](./Stacks/Servers/EL8_KVM_VM_Stack/7.0) | | EL9 KVM VM Stack | | [✅](./Stacks/Servers/EL9_KVM_VM_Stack/6.4) | [✅](./Stacks/Servers/EL9_KVM_VM_Stack/7.0) | +### Stacks: Systems + +| Name | 3.0 | 6.4 | 7.0 | +| ---- | --- | --- | --- | +| APC Smart-UPS 3000 Stack | | | [✅](./Stacks/Systems/APC_Smart-UPS_3000_Stack/7.0) | + ## Templates ### Templates: Applications diff --git a/Stacks/Systems/APC_Smart-UPS_3000_Stack/7.0/APC_Smart-UPS_3000_Stack.yaml b/Stacks/Systems/APC_Smart-UPS_3000_Stack/7.0/APC_Smart-UPS_3000_Stack.yaml new file mode 100644 index 00000000..c149b497 --- /dev/null +++ b/Stacks/Systems/APC_Smart-UPS_3000_Stack/7.0/APC_Smart-UPS_3000_Stack.yaml @@ -0,0 +1,26 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: b27969ed1a7d41819c1c25a98d7521dc + name: Stacks/Systems + templates: + - uuid: d85c812b96c24d61a5f69d360e1e538c + template: 'APC Smart-UPS 3000 Stack' + name: 'APC Smart-UPS 3000 Stack' + description: | + Stack for APC UPS 3000 LXM devices. + + This template is part of [RaBe's Zabbix template and helpers + collection](https://github.com/radiorabe/rabe-zabbix). + vendor: + name: RaBe + version: '7.0' + templates: + - name: 'APC Smart-UPS 3000 XLM by SNMP' + - name: 'ICMP Ping' + - name: 'Zabbix unsupported items' + groups: + - name: Stacks/Systems + tags: + - tag: class + value: stack diff --git a/Stacks/Systems/APC_Smart-UPS_3000_Stack/7.0/README.md b/Stacks/Systems/APC_Smart-UPS_3000_Stack/7.0/README.md new file mode 100644 index 00000000..f4aab4d5 --- /dev/null +++ b/Stacks/Systems/APC_Smart-UPS_3000_Stack/7.0/README.md @@ -0,0 +1,26 @@ +# Zabbix Template: APC Smart-UPS 3000 Stack + +![class: stack](https://img.shields.io/badge/class-stack-00c9bf) ![vendor: RaBe](https://img.shields.io/badge/vendor-RaBe-00c9bf) ![version: 7.0](https://img.shields.io/badge/version-7.0-00c9bf) + +Stack for APC UPS 3000 LXM devices. + +This template is part of [RaBe's Zabbix template and helpers +collection](https://github.com/radiorabe/rabe-zabbix). + +## Linked Templates + +This Zabbix template depends on the following templates. + +* APC Smart-UPS 3000 XLM by SNMP +* ICMP Ping +* Zabbix unsupported items + +## 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 - 2024 [Radio Bern RaBe](http://www.rabe.ch) diff --git a/Stacks/Systems/APC_Smart-UPS_3000_Stack/7.0/docs/gen_ref_pages.py b/Stacks/Systems/APC_Smart-UPS_3000_Stack/7.0/docs/gen_ref_pages.py new file mode 100644 index 00000000..bd02be1b --- /dev/null +++ b/Stacks/Systems/APC_Smart-UPS_3000_Stack/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/Stacks/Systems/APC_Smart-UPS_3000_Stack/7.0/mkdocs.yaml b/Stacks/Systems/APC_Smart-UPS_3000_Stack/7.0/mkdocs.yaml new file mode 100644 index 00000000..4deed4ef --- /dev/null +++ b/Stacks/Systems/APC_Smart-UPS_3000_Stack/7.0/mkdocs.yaml @@ -0,0 +1,17 @@ +site_name: "Zabbix Template: APC Smart-UPS 3000 Stack" +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 71b31cdd..cf689543 100644 --- a/catalog-info.yaml +++ b/catalog-info.yaml @@ -291,6 +291,33 @@ spec: system: rabe-zabbix subcomponentOf: rabe-zabbix-templates --- +# Stacks/Systems/APC_Smart-UPS_3000_Stack/7.0/APC_Smart-UPS_3000_Stack.yaml +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: zabbix-template-APC_Smart-UPS_3000_Stack + title: "Zabbix Template: APC Smart-UPS 3000 Stack" + description: | + Stack for APC UPS 3000 LXM devices. + + This template is part of [RaBe's Zabbix template and helpers + collection](https://github.com/radiorabe/rabe-zabbix). + + annotations: + backstage.io/techdocs-ref: dir:./Stacks/Systems/APC_Smart-UPS_3000_Stack/7.0 + github.com/project-slug: radiorabe/rabe-zabbix + links: + - url: https://github.com/radiorabe/rabe-zabbix/tree/develop/Stacks/Systems/APC_Smart-UPS_3000_Stack/7.0 + title: GitHub + icon: github + tags: [stack] +spec: + type: zabbix-template + lifecycle: experimental + owner: it-reaktion + system: rabe-zabbix + subcomponentOf: rabe-zabbix-templates +--- # Templates/Applications/auditd/7.0/auditd.yaml apiVersion: backstage.io/v1alpha1 kind: Component diff --git a/hack/plays/manage.yml b/hack/plays/manage.yml index ee19be79..f3fad94d 100644 --- a/hack/plays/manage.yml +++ b/hack/plays/manage.yml @@ -5,6 +5,7 @@ vars: target_version: '7.0' rabe_zabbix_templates: + - template_name: "APC Smart-UPS 3000 Stack" - template_name: "Apache with TLS by HTTP Stack" - template_name: "auditd" - template_name: "candlepin-rhsmcertd"