Symptoms
Messages with the following characteristics are received every 5 minutes from Munin (munin@server.hostname.tld).
Subject:
Cron <munin@hostname> /usr/local/cpanel/3rdparty/perl/532/bin/munin-cron
Body:
Magic number checking on storable file failed at /usr/local/cpanel/3rdparty/perl/532/lib/perl5/532/x86_64-linux-64int/Storable.pm line 436, at /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Munin/Master/Utils.pm line 279.
Magic number checking on storable file failed at /usr/local/cpanel/3rdparty/perl/532/lib/perl5/532/x86_64-linux-64int/Storable.pm line 436, at /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Munin/Master/Utils.pm line 279.
Description
These notifications indicate an issue with the Munin installation. Specifically, there are likely 0-byte files that Munin requires to function correctly.
Workaround
To correct this issue, check for 0-byte files, back them up, and reinstall Munin.
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Run the following command to locate and backup 0-byte files in the
/var/lib/munin
folder.[root@server ~]cPs# find /var/lib/munin -size 0 -exec mv -v {}{,.$(date +%s)} \;
renamed '/var/lib/munin/plugin-state/yum.state' -> '/var/lib/munin/plugin-state/yum.state.1691587504'
renamed '/var/lib/munin/datafile.storable' -> '/var/lib/munin/datafile.storable.1691587504'
renamed '/var/lib/munin/htmlconf.storable' -> '/var/lib/munin/htmlconf.storable.1691587504'
renamed '/var/lib/munin/munin-update.stats.tmp' -> '/var/lib/munin/munin-update.stats.tmp.1691587504'
[root@server ~]cPs# - Use the RPM command to identify the Munin package.
[root@server ~]cPs# rpm -qa|grep munin
cpanel-munin-2.0.30-2.cp108~el8.x86_64
[root@server ~]cPs# - Use the
rpm
command with the-e
and--nodeps
options to remove the Munin package.[root@server ~]cPs# rpm -e --nodeps cpanel-munin-2.0.30-2.cp108~el8.x86_64
- uninstalling munin
Removed /etc/systemd/system/multi-user.target.wants/munin-node.service.
munin_addon unregistered
[root@server ~]cPs# - Use the check_cpanel_pkgs to reinstall the Munin package.
/scripts/check_cpanel_pkgs
Comments
0 comments
Article is closed for comments.