1 define munin::register::snmp (
3 $description = 'absent',
7 $munin_host_real = $::fqdn
9 $config = [ 'use_node_name no' ]
11 $munin_port_real = $port ? {
12 'absent' => hiera('munin_port','4949'),
16 exec { "munin_register_snmp_${fhost}":
17 command => "munin-node-configure --snmp ${fhost} --snmpcommunity ${community} --shell | sh",
18 unless => "ls /etc/munin/plugins/snmp_${fhost}_* &> /dev/null",
21 @@concat::fragment{ "munin_snmp_${fhost}":
22 target => '/etc/munin/munin.conf',
23 content => template("munin/client.erb"),