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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Monitorix with apache webserver and vhost

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

  1. Thorsten H.

    Thorsten H. Active Member

    Joined:
    Jul 13, 2016
    Messages:
    40
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Germany
    cPanel Access Level:
    Root Administrator
    Hello,
    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
    Code:
    #
    # 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 127.0.0.1, 93.226.209.73
        </IfModule>
        <IfModule !mod_authz_core.c>
            # Apache 2.2
            Order deny,allow
            Deny from all
            Allow from 127.0.0.1
        </IfModule>
    </Directory>
    
    <Directory /var/lib/monitorix/www/cgi/>
            DirectoryIndex monitorix.cgi
            Options ExecCGI
    </Directory>
    
    # 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 127.0.0.1
    #    </IfModule>
    #    <IfModule !mod_authz_core.c>
    #       # Apache 2.2
    #       Order deny,allow
    #       Deny from all
    #       Allow from 127.0.0.1
    #    </IfModule>
    #    AllowOverride None
    #    AuthUserFile  /etc/httpd/conf/.htpasswd
    #    AuthGroupFile /dev/null
    #    AuthName      "Monitorix: Restricted access, sorry."
    #    AuthType      Basic
    #    Require user  <username>
    #    Satisfy Any
    #</Directory>
    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?

    Regards
    Thorsten
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    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:

    ea4.ninja

    Thank you.
     
Loading...

Share This Page