Generally, the Munin plugin fails to install because it requires the Pango, Cairo, and Pixman dependencies to install correctly.
Here at Ibmi Media, as part of our Server Management Services, we regularly help our Customers to perform related cPanel queries.
In this context, we shall look into methods to fix cPanel Installation error.
How to install Munin for cPanel ?
To proceed with this installation procedure, follow the steps given below.
1. Initially, we login to WHM.
2. Then navigate to Home >> cPanel >> Manage Plugins.
3. Here, we click on Install "Munin for cPanel" button in order to install the plugin.
4. Once the installation ends, at the bottom of the screen we will recieve a Process Complete message.
On the other hand, we can install the plugin via SSH:
i. Initially, we log in to the server via SSH as the root user.
ii. Then we use these commands to create the following folder if it does not exist already.
# mkdir /var/cpanel/apps
# chmod 755 /var/cpanel/apps
iii. We then proceed to create a configuration file for the Munin plugin and add the below data to that file.
# vi /var/cpanel/apps/addon_munin.conf
# Service that will serve this app
# Physical path: /usr/local/cpanel/3rdparty/Foo.php
# Literal URL path: $server:$port/$cpsession/3rdparty/Foo.php
# System user to run process as
# Required acls
# Display name as show in the service ui
iv. Later, we register the plugin to WHM:
# /usr/local/cpanel/bin/register_appconfig addon_munin.conf
v. Finally, we restart the apache server to enable all changes using the below command:
# service httpd restart
What to do when Munin plugin fails to install due to missing dependencies ?
However, we have come across instances where the installation fails.
Recently, we had a customer who faced the installation failure along with the error:
[2021-04-12 15:35:31 +0300] pango is needed by cpanel-rrdtool-1.5.5-2.cp1186.x86_64
[2021-04-12 15:35:31 +0300] cairo is needed by cpanel-rrdtool-1.5.5-2.cp1186.x86_64
[2021-04-12 15:35:31 +0300] pixman is needed by cpanel-rrdtool-1.5.5-2.cp1186.x86_64
The major cause can be that Munin requires the Pango, Cairo, and Pixman dependencies to install correctly.
Suppose, the system had previous RPM issues, it is likely the libraries were removed or could not automatically install.
If we run the following commands as root, it should allow the installation of Munin to complete:
yum install pango cairo pixman
/scripts/check_cpanel_rpms –targets munin
[Couldn't complete Munin Plugin installation? Contact us now. ]