env.host not taking affect
this happens to me with all plugins when setting the env variables, vut I'll describe it for phpfpmsts.
I'm trying to change the host & path for the fpm plugin and I've set: env.host myhost.com env.monpath fpm-status
and then:
munin-nun php_fpm_connection
ERROR: Exception('Retrieval of URL failed.\n url: http://127.0.0.1:80/fpm_status.php\n Error: <urlopen error [Errno 111] Connection refused>',)
Traceback (most recent call last):
File "/etc/munin/plugins/php_fpm_connections", line 9, in
when I change env.host to host I get:
munin-run php_fpm_connections
Failed to parse line: host myhost.com. Should it have been 'env.host myhost.com'? at /usr/share/perl5/vendor_perl/Munin/Node/Service.pm line 110 at /etc/munin/plugin-conf.d/fpm line 2. Skipping the rest of the file at /usr/share/perl5/vendor_perl/Munin/Node/Service.pm line 110
so it reads the conf file and sees the error, but it seems like all the plugins use self variable instead of the env variable.
same for APC plugin:
#munin-run --debug php_apc_memory Processing plugin configuration from /etc/munin/plugin-conf.d/apc Setting /rgid/ruid/ to /99/99/ Setting /egid/euid/ to /99 99/99/ Setting up environment Environment url = http://DOMAIN.COM/apcinfo.php About to run '/etc/munin/plugins/php_apc_memory'