Hi,
I'm getting the error
$ tail /var/log/munin/munin-node.log
2017/02/02-10:24:30 [21429] Error output from redis_127.0.0.1_6379:
2017/02/02-10:24:30 [21429] /etc/munin/plugins/redis_127.0.0.1_6379: line 61: redis-cli: command not found
Which is weird because it's installed here:
$ type redis-cli
redis-cli is /srv/recent/12659/stack/bin/redis-cli
And my redis plugin is configured to use this path also. It's a bit noisy, but you can see /srv/recent/12659/stack/bin is listed:
$ sudo cat /etc/munin/plugin-conf.d/redis
[redis_*]
env.PATH /srv/recent/12659/api2/bin:/srv/recent/12659/core/bin:/srv/recent/12659/stack/lib/ruby/gems/2.1.0/gems/bin:/srv/recent/12659/stack/lib/ruby/gems/2.1.0/gems/ruby/2.1.0/bin:/srv/recent/12659/stack/bin:/srv/recent/12659/stack/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
At first I thought that the plugin somehow did not respect the env.PATH.
But echoing $PATH from /etc/munin/plugins/redis_127.0.0.1_6379 outputs the correct path. The PWD is / at that point, if it helps.
Somewhat desperate I symlinked my redis-cli to a more conventional place:
ln -nfs "${DM_STACK_DIR}/bin/redis-cli" /usr/bin/redis-cli
But the error remains. Any clues? All my other plugins work without issues.
Hi,
I'm getting the error
$ tail /var/log/munin/munin-node.log 2017/02/02-10:24:30 [21429] Error output from redis_127.0.0.1_6379: 2017/02/02-10:24:30 [21429] /etc/munin/plugins/redis_127.0.0.1_6379: line 61: redis-cli: command not foundWhich is weird because it's installed here:
$ type redis-cli redis-cli is /srv/recent/12659/stack/bin/redis-cliAnd my redis plugin is configured to use this path also. It's a bit noisy, but you can see
/srv/recent/12659/stack/binis listed:$ sudo cat /etc/munin/plugin-conf.d/redis [redis_*] env.PATH /srv/recent/12659/api2/bin:/srv/recent/12659/core/bin:/srv/recent/12659/stack/lib/ruby/gems/2.1.0/gems/bin:/srv/recent/12659/stack/lib/ruby/gems/2.1.0/gems/ruby/2.1.0/bin:/srv/recent/12659/stack/bin:/srv/recent/12659/stack/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbinAt first I thought that the plugin somehow did not respect the
env.PATH.But echoing
$PATHfrom/etc/munin/plugins/redis_127.0.0.1_6379outputs the correct path. The PWD is/at that point, if it helps.Somewhat desperate I symlinked my
redis-clito a more conventional place:ln -nfs "${DM_STACK_DIR}/bin/redis-cli" /usr/bin/redis-cliBut the error remains. Any clues? All my other plugins work without issues.