Bobcares

Munin for cPanel – Quick way to install and fix the related errors

by | Nov 12, 2019

Plugins like Munin for cPanel comes handy for monitoring server resources.

However, customers may get errors due to improper installation or because of insufficient user permission on the server.

One of such error is HTTP error 401 cgi/addon_munin.cgi
WHM is configured to disallow execution of unregistered applications when logged in as root or a reseller with the “all” ACL.

At Bobcares, we often get requests from our customers to install Munin for cPanel as part of our Server Management Services.

Today, let’s get into the details on how our Support Engineers fix the related errors.

 

How we install Munin plugin for WHM

Munin is a Server Monitor plugin that used to monitor server resources such as Apache, Disk Usage, Exim, MySQL, Network, Processes. Also, it provides detailed reports on it.

Here, let’s see how our Support Engineers install Munin for cPanel.

1. Initially, we login to WHM.

2. We go to Home >> cPanel >> Manage Plugins.

3. Then, we click on Install “Munin for cPanel” button to install the Munin plugin.

 

4. Once the installation is completed, we will get a Process Complete message at the bottom of the screen.

That’s it. Now we have successfully installed the Munin plugin in WHM.

 

How we fixed the errors while installing Munin for cPanel

At Bobcares, where we have more than a decade of expertise in managing servers, we see many customers face problems while installing Munin for cPanel server.

Now, let’s see the major reasons for installation errors and how our Support Engineers fix this error.

 

1. Installation problems

Recently, one of our customers had a problem while installing the Munin plugin on the cPanel server. He could not install the Munin plugin and received an error like,

HTTP error 401 cgi/addon_munin.cgi
WHM is configured to disallow execution of unregistered applications when logged in as root or a reseller with the "all" ACL.

Usually, unregistered plugins throw up the above error. As a result, users may find problems when attempting to install Munin.

To fix this error we need to register the plugin first. So, our Support Engineers follow these steps.i

1. Firstly, we login to the server with SSH as a root user.

2. Then, we create the following folder if it doesn’t exist. Also, we set up the correct permission for the folder.

mkdir /var/cpanel/apps
chmod 755 /var/cpanel/apps

3. After that, we create a configuration file for the Munin plugin.

vi /var/cpanel/apps/addon_munin.conf

We add the following data too.

# name name=addon_munin
# Service that will serve this app service=whostmgr
# Physical path: /usr/local/cpanel/3rdparty/Foo.php
# Literal URL path: $server:$port/$cpsession/3rdparty/Foo.php url=/cgi/addon_munin.cgi
# System user to run process as user=root
# Required acls acls=any
# Display name as show in the service ui displayname=addon_munin

4. At last, we register the plugin with WHM by running the following command.

/usr/local/cpanel/bin/register_appconfig addon_munin.conf

To display all the currently registered plugins, we run the following command and verify that the Munin plugin is installed properly or not.

/usr/local/cpanel/bin/show_appconfig

This is how we fixed the error.

 

2. Insufficient permission

Similarly, another customer had a problem with the working of Munin.  He installed a new cPanel server on Cloudlinux. Since that time, the Munin plugin did not have full access to the system and showed variations in the Munin graphs values.

For example, the processes graph showed 10-32 active processes instead of 170 processes.

On checking, our Support Engineers found that Cloudlinux was restricting Munin from accessing the server to collect the information.

The virtualized filesystem was set up to prevent users from looking at the other users /proc/ processes. Since the user ‘munin‘ was a regular user, we checked and found that it could not see /proc/ for the root user.

To fix the problem, we had to add the gid of the munin user as the fs.proc_super_gid in /etc/sysctl.conf.  Further, we ran the command sysctl -p, the munin process was able to see all processes and threads on the system.

Finally, we restarted munin and the graphs started working again.

 

[Need assistance to fix plugin errors? We’ll help you.]

 

Conclusion

In short, Munin for cPanel is a very useful plugin for monitoring server resources. Sometimes, it may not work as we expect due to improper installation or because of insufficient user permission on the server. Today, we saw how our Support Engineers assisted our customers to solve this error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF