Skip to content

Commit

Permalink
Merge pull request #20 from rasschaert/master
Browse files Browse the repository at this point in the history
Added support for arbitrary extension commands
  • Loading branch information
tersmitten authored Nov 29, 2018
2 parents 1e91f6d + 73575e5 commit b338fec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ on **Ubuntu** this package is in **multiverse**. See the *"Recommended"* section

* `snmpd_default_monitors` [default: `true`]:
* `snmpd_link_up_down_notifications` [default: `true`]:
* `snmpd_extensions`: [default: `[]`]: List of extension names and commands

## 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 @@ -32,4 +32,8 @@ disk {{ snmpd_disk.path }} {{ snmpd_disk.threshold }}
defaultMonitors {{ 'yes' if snmpd_default_monitors else 'no' }}
linkUpDownNotifications {{ 'yes' if snmpd_link_up_down_notifications else 'no' }}

{% for snmpd_extension in snmpd_extensions | default([]) %}
extend {{ snmpd_extension.name }} {{ snmpd_extension.command }}
{% endfor %}

master agentx

0 comments on commit b338fec

Please sign in to comment.