Description of problem: When $section_map{$sec}->() does not exists, munin mysql_ plugin fails with errors: Use of uninitialized value in subroutine entry at /etc/munin/plugins/mysql_qcache_mem line 1105. Can't use string ("") as a subroutine ref while "strict refs" in use at /etc/munin/plugins/mysql_qcache_mem line 1105. Fix is to remove line 1105 with: $section_map{$sec}->(); As the case before that line does what's expected - use the value only if it exists. Version-Release number of selected component (if applicable): munin-node-2.0.30-5.el7.noarch.rpm How reproducible: always Steps to Reproduce: 1. Install munin-node and mysql 2. Configure some mysql_ plugin e.g. ln -sf /usr/share/munin/plugins/mysql_ /etc/munin/plugins/mysql_qcache_mem 3. munin-run mysql_qcache_mem Actual results: # munin-run mysql_qcache_mem Use of uninitialized value in subroutine entry at /etc/munin/plugins/mysql_qcache_mem line 1105. Use of uninitialized value in subroutine entry at /etc/munin/plugins/mysql_qcache_mem line 1105. Can't use string ("") as a subroutine ref while "strict refs" in use at /etc/munin/plugins/mysql_qcache_mem line 1105. Expected results: # munin-run mysql_qcache_mem query_cache_size.value 4194304 Qcache_free_memory.value 941184
I also have this problem and i backtracked it to the patch file mariadb-show-status.patch which backports the munin github commit: e5f12ef57c75d37aa2e3444cc448598f3c32b0ea but what seems missing the follow-up commit: -------------------------------------------------------------------------------- commit 4b9d5ff71f9d13b498b7930a7a364c4e42287f46 Author: Daniel Black <daniel.black> Date: Wed Jun 25 13:10:47 2014 +1000 remove calling $section_map{$sec}->(); twice diff --git a/plugins/node.d/mysql_.in b/plugins/node.d/mysql_.in index 1d83115f..bf573705 100644 --- a/plugins/node.d/mysql_.in +++ b/plugins/node.d/mysql_.in @@ -1108,8 +1108,6 @@ sub parse_innodb_status { #warn "Unknown section: $1"; skip(); } - - $section_map{$sec}->(); } } --------------------------------------------------------------------------------
munin-2.0.40-2.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-60e7ab00eb
munin-2.0.40-2.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-e42294dd9f
munin-2.0.40-2.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-d7fccd52d3
munin-2.0.40-2.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-60e7ab00eb
munin-2.0.40-2.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-d7fccd52d3
munin-2.0.40-2.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-e42294dd9f
munin-2.0.40-2.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.
munin-2.0.40-2.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
munin-2.0.40-2.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.