diff options
author | varac <varacanero@zeromail.org> | 2012-09-10 18:16:13 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2012-09-10 18:16:13 +0200 |
commit | 8dbc37cc1e1797d9339f99687108375a1bd53324 (patch) | |
tree | cd23df1244f12828ef06e619a11275c147b8c603 | |
parent | 3ed7a58cc923d52c8664776b534b123d43f8fe5d (diff) |
exec calls: path to binary is needed
-rw-r--r-- | manifests/munin.pp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/manifests/munin.pp b/manifests/munin.pp index 92a389f..490b016 100644 --- a/manifests/munin.pp +++ b/manifests/munin.pp @@ -17,12 +17,12 @@ class nagios::munin inherits munin::plugins::base { exec { 'munin_nagios2stats_link': command => 'ln -s /usr/sbin/nagios2stats /usr/local/sbin/nagiostats', - onlyif => ["test ! -e /usr/local/sbin/nagiostats", "test -e /usr/sbin/nagios2stats"], + onlyif => ["/usr/bin/test ! -e /usr/local/sbin/nagiostats", "/usr/bin/test -e /usr/sbin/nagios2stats"], } exec { 'munin_nagios3stats_link': command => 'ln -s /usr/sbin/nagios3stats /usr/local/sbin/nagiostats', - onlyif => ["test ! -e /usr/local/sbin/nagiostats", "test -e /usr/sbin/nagios3stats"], + onlyif => ["/usr/bin/test ! -e /usr/local/sbin/nagiostats", "/usr/bin/test -e /usr/sbin/nagios3stats"], } } |