summaryrefslogtreecommitdiff
path: root/manifests/register/snmp.pp
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@humppa.nl>2014-08-13 10:34:21 +0200
committerJasper Lievisse Adriaanse <jasper@humppa.nl>2014-08-13 10:34:21 +0200
commit145f35c188b088890049557be6f203272f0d266c (patch)
tree469f252e545e63d4dfd41d0be6ae6fb97bcd4d68 /manifests/register/snmp.pp
parent8bdbe524904ce078c0c76e69fab7bf437ceeca18 (diff)
Unbreak registring snmp hosts; Exec{} needs a path
Diffstat (limited to 'manifests/register/snmp.pp')
-rw-r--r--manifests/register/snmp.pp1
1 files changed, 1 insertions, 0 deletions
diff --git a/manifests/register/snmp.pp b/manifests/register/snmp.pp
index 06bb00b..1c375ec 100644
--- a/manifests/register/snmp.pp
+++ b/manifests/register/snmp.pp
@@ -12,6 +12,7 @@ define munin::register::snmp (
exec { "munin_register_snmp_${fhost}":
command => "munin-node-configure --snmp ${fhost} --snmpcommunity ${community} --shell | sh",
unless => "ls /etc/munin/plugins/snmp_${fhost}_* &> /dev/null",
+ path => ['/bin','/sbin','/usr/bin','/usr/sbin','/usr/local/bin','/usr/local/sbin'],
}
@@concat::fragment{ "munin_snmp_${fhost}":