From 8adb9e7a211ee9f9a97730e04d36aa00e5cd30a4 Mon Sep 17 00:00:00 2001 From: raven Date: Wed, 13 Sep 2023 09:51:56 +0200 Subject: [PATCH 1/2] Add pass-extension template Based on extend template. --- templates/etc/snmp/snmpd.conf.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/etc/snmp/snmpd.conf.j2 b/templates/etc/snmp/snmpd.conf.j2 index 341b471..8ebe0cc 100644 --- a/templates/etc/snmp/snmpd.conf.j2 +++ b/templates/etc/snmp/snmpd.conf.j2 @@ -39,4 +39,8 @@ linkUpDownNotifications {{ 'yes' if snmpd_link_up_down_notifications else 'no' } extend {{ snmpd_extension.name }} {{ snmpd_extension.prog }} {{ snmpd_extension.args | default([]) | join(' ') }} {% endfor %} +{% for snmpd_pass in snmpd_passes | default([]) %} +pass {{ snmpd_pass.name }} {{ snmpd_pass.prog }} +{% endfor %} + master agentx From ca7f46abc70e355d7785b06545411de77bfd2960 Mon Sep 17 00:00:00 2001 From: raven Date: Wed, 13 Sep 2023 09:55:13 +0200 Subject: [PATCH 2/2] Extend README to include pass extension statements --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 0361a0e..06834b3 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,10 @@ on **Ubuntu** this package is in **multiverse**. See the *"Recommended"* section * `snmpd_extensions.{n}.name`: [required]: An identifying string for the extension * `snmpd_extensions.{n}.prog`: [required]: The program to run * `snmpd_extensions.{n}.args`: [default: `[]`]: The arguments to give the program + +* `snmpd_passes`: [default: `[]`]: Pass MIB declaration(s) +* `snmpd_passes.{n}.name`: [required]: An identifying string for the extension (OID) +* `snmpd_passes.{n}.prog`: [required]: The program to run ## Dependencies