Skip to content

Commit

Permalink
Merge pull request #26 from ravench/patch-1
Browse files Browse the repository at this point in the history
Add pass-extension template
  • Loading branch information
tersmitten authored Sep 13, 2023
2 parents 415c6a6 + ca7f46a commit 04ce91f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions templates/etc/snmp/snmpd.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 04ce91f

Please sign in to comment.