No. Amikor fentebb írtam, hogy a munin-run nem megy, az igaz is volt, meg nem is. Root-ként tényleg nem megy, munin userként viszont igen.
Ami fura, hogy most egy másik gépre felraktam egy munin-t (debian 11.4), és ott is ez a hiba van. Ez afféle digitalocean-os előtelepített debian.
Ami megy:
1) @munin /etc/munin/plugins/test_plugin
2) @munin /usr/sbin/munin-run test_plugin
Ami nem megy:
1) @root /usr/sbin/munin-run test_plugin
Can't exec "/etc/munin/plugins/test_plugin": Permission denied at /usr/share/perl5/Munin/Node/Service.pm line 268.
# FATAL: Failed to exec.
Warning: the execution of 'munin-run' via 'systemd-run' returned an error. This may either be caused by a problem with the plugin to be executed or a failure of the 'systemd-run' wrapper. Details of the latter can be found via 'journalctl'.2) @munin munin-cron
2022/07/29-18:15:34 CONNECT TCP Peer: "[::ffff:127.0.0.1]:41584" Local: "[::ffff:127.0.0.1]:4949"
2022/07/29-18:15:35 [4058739] Error output from test_plugin:
2022/07/29-18:15:35 [4058739] Can't exec "/etc/munin/plugins/test_plugin": Permission denied at /usr/share/perl5/Munin/Node/Service.pm line 268, <STDIN> line 25.
2022/07/29-18:15:35 [4058739] Service 'test_plugin' exited with status 42/0.
2022/07/29-18:15:35 [4058739] Error output from test_plugin:
2022/07/29-18:15:35 [4058739] Can't exec "/etc/munin/plugins/test_plugin": Permission denied at /usr/share/perl5/Munin/Node/Service.pm line 268, <STDIN> line 26.
2022/07/29-18:15:35 [4058739] Service 'test_plugin' exited with status 42/0.