Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Monitorix with apache webserver and vhost

Discussion in 'General Discussion' started by Thorsten H., Jan 27, 2017.

  1. Thorsten H.

    Thorsten H. Active Member

    Jul 13, 2016
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    I use monitorix to monitor the parameter of my server. It uses its own buildin webserver but I also can use to normal apache webserver to show the graphs. There is a documentation on how to include the apache but I don't know how to integrate it into my centos 7 with cpanel/whm server.

    This is the monitorix-apache.conf
    # Monitorix is a lightweight system monitoring tool
    Alias /monitorix /var/lib/monitorix/www
    ScriptAlias /monitorix-cgi /var/lib/monitorix/www/cgi
    <Directory /var/lib/monitorix/www/>
        <IfModule mod_authz_core.c>
            # Apache 2.4
            Require all denied
            Require ip,
        <IfModule !mod_authz_core.c>
            # Apache 2.2
            Order deny,allow
            Deny from all
            Allow from
    <Directory /var/lib/monitorix/www/cgi/>
            DirectoryIndex monitorix.cgi
            Options ExecCGI
    # Apache rules to restrict access to Monitorix:
    # Don't forget to add <username> in .htpasswd with the 'htpasswd' command.
    #<Directory "/var/lib/monitorix/www">
    #    Options Indexes Includes FollowSymLinks
    #    <IfModule mod_authz_core.c>
    #       # Apache 2.4
    #       Require all denied
    #       Require ip
    #    </IfModule>
    #    <IfModule !mod_authz_core.c>
    #       # Apache 2.2
    #       Order deny,allow
    #       Deny from all
    #       Allow from
    #    </IfModule>
    #    AllowOverride None
    #    AuthUserFile  /etc/httpd/conf/.htpasswd
    #    AuthGroupFile /dev/null
    #    AuthName      "Monitorix: Restricted access, sorry."
    #    AuthType      Basic
    #    Require user  <username>
    #    Satisfy Any
    And here I found a documentation on how to integrate it on a normal webserver:
    Monitorix System Monitoring

    But that documentation is not compatible to cpanel/whm. So, is there someone outside who can explain me how to get it running?

  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

    Is there a specific type of data you are looking for? We might be able to provide you with some alternatives that work more easily with cPanel. Otherwise, you may need to consult with a qualified system administrator for help with this custom integration. We provide a list of third-party system administration providers at:

    System Administration Services | cPanel Forums

    Additionally, the following URL is useful for understanding how to add custom modules in EasyApache 4:

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice