Skip to content

Commit

Permalink
feat(templates): Add Netgear GS network device template (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare authored Dec 15, 2024
1 parent 1c0a901 commit 422ce21
Show file tree
Hide file tree
Showing 7 changed files with 201 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
zabbix_export:
version: '7.0'
template_groups:
- uuid: 36bff6c29af64692839d077febfc7079
name: 'Templates/Network devices'
templates:
- uuid: f7287d068a7d4691867a0cb9f13d0c28
template: 'Netgear GS by SNMP'
name: 'Netgear GS by SNMP'
description: |
Grabs additional data that is currently not available from the Zabbix-out-of-the-box template.
Deactivates cpu0's triggers since they are not too meaningful out of the box.
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: 'Netgear Fastpath by SNMP'
- name: 'Zabbix unsupported items'
groups:
- name: 'Templates/Network devices'
items:
- uuid: 9e2e8706b8e4496e80d15bc420401b97
name: 'GS Hardware serial number'
type: SNMP_AGENT
# the upstream template uses the oid 1.3.6.1.4.1.4526.10.1.1.1.4.0
# the following line is the main reason to add a GS template on top
snmp_oid: 1.3.6.1.4.1.4526.11.1.1.1.4.0
key: rabe.system.hw.serialnumber
delay: 1h
history: 7d
value_type: CHAR
trends: '0'
description: |
MIB: FASTPATH-SWITCHING-MIB
Serial number of the switch
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
- tag: component
value: system
triggers:
- uuid: 9b30371ec844436ab1456ba571ca74d0
expression: 'last(/Netgear GS by SNMP/rabe.system.hw.serialnumber,#1)<>last(/Netgear GS by SNMP/rabe.system.hw.serialnumber,#2) and length(last(/Netgear GS by SNMP/rabe.system.hw.serialnumber))>0'
name: 'GS Device has been replaced'
event_name: 'GS Device has been replaced (new serial number received)'
priority: INFO
description: 'Device serial number has changed. Acknowledge to close the problem manually.'
manual_close: 'YES'
tags:
- tag: scope
value: notice
tags:
- tag: class
value: network
- tag: target
value: netgear
macros:
- macro: '{$IFCONTROL:"cpu"}'
value: '0'
description: 'Ignore state for cpu interface'
80 changes: 80 additions & 0 deletions Templates/Network_devices/Netgear_GS_by_SNMP/7.0/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions Templates/Network_devices/Netgear_GS_by_SNMP/7.0/mkdocs.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions catalog-info.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion hack/plays/manage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
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: "APC Smart-UPS 3000 Stack"
- template_name: "auditd"
- template_name: "candlepin-rhsmcertd"
- template_name: "certmonger"
Expand All @@ -20,6 +20,7 @@
- template_name: "EL9 Stack"
- template_name: "firewalld"
- template_name: "gssproxy"
- template_name: "Netgear GS by SNMP"
- template_name: "Nginx with TLS by HTTP Stack"
- template_name: "qemu-ga"
- template_name: "rsyslog"
Expand Down

0 comments on commit 422ce21

Please sign in to comment.