diff options
author | mh <mh@immerda.ch> | 2014-09-13 05:18:19 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2014-09-13 05:18:19 +0200 |
commit | cdfa777898bbf9bc13a99d8842ca99930b1b883b (patch) | |
tree | 79b49031fb33d17e17dc29120774280d4c3e7b27 | |
parent | ec4e2ba4f6f90116927ead35fca8c525a64a9e57 (diff) | |
parent | 3b113bd7f8be9f766f5a15933ff5574f6b124163 (diff) |
Merge branch 'jasperla-snmp'
-rw-r--r-- | manifests/register/snmp.pp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/manifests/register/snmp.pp b/manifests/register/snmp.pp index 06bb00b..8d7ea56 100644 --- a/manifests/register/snmp.pp +++ b/manifests/register/snmp.pp @@ -1,16 +1,18 @@ # Register a munin node with snmp enabled define munin::register::snmp ( - $community = 'public', + $community = 'public', $description = 'absent', - $port = '4949', - $host = $::fqdn + $port = '4949', + $host = $::fqdn, + $group = 'absent', + $version = '2', ) { $fhost = $name $client_type = 'snmp' $config = [ 'use_node_name no' ] exec { "munin_register_snmp_${fhost}": - command => "munin-node-configure --snmp ${fhost} --snmpcommunity ${community} --shell | sh", + command => "munin-node-configure --snmp ${fhost} --snmpcommunity ${community} --snmpversion ${version} --shell | sh", unless => "ls /etc/munin/plugins/snmp_${fhost}_* &> /dev/null", } |