[Munin]Servers in clone, only 1 munin works

Discussion in 'General' started by Tuumke, Mar 23, 2017.

  1. Tuumke

    Tuumke Member

    1 have a 3 server setup:
    Server1 - All services
    Server2 - All services, cloned from Server1 as per tutorial
    Server3 - Secondary DNS
    I thought everything was working fine. But then i noticed that Munin isn't working correctly on Server1.
    server1.example.com/munin redirects to the regular website www.example.com (https).
    server2.example.com/munin shows login screen and then munin after login.
    server3.example.com/munin shows login screen and then munin after login.
    Code:
    [email protected]:/etc/munin# ls -ahlp /etc/apache2/conf-enabled/
    lrwxrwxrwx 1 root root  28 Jan 20 12:05 munin.conf -> ../conf-available/munin.conf
    [email protected]:/etc/munin# ls -ahlp /etc/apache2/conf-available/
    lrwxrwxrwx 1 root root  25 Jan 20 12:05 munin.conf -> ../../munin/apache24.conf
    [email protected]:~# readlink -f /etc/apache2/conf-available/munin.conf
    /etc/munin/apache24.conf
    [email protected]:~# cat /etc/munin/apache24.conf
    Alias /munin /var/cache/munin/www
    <Directory /var/cache/munin/www>
    # Require local
    #Require all granted
    AuthUserFile /etc/munin/munin-htpasswd
    AuthName "Munin"
    AuthType Basic
    Require valid-user
    Options FollowSymLinks SymLinksIfOwnerMatch
    Options None
    </Directory>
    
    ScriptAlias /munin-cgi/munin-cgi-graph /usr/lib/munin/cgi/munin-cgi-graph
    <Location /munin-cgi/munin-cgi-graph>
    # Require local
    #Require all granted
    AuthUserFile /etc/munin/munin-htpasswd
    AuthName "Munin"
    AuthType Basic
    Require valid-user
    Options FollowSymLinks SymLinksIfOwnerMatch
    <IfModule mod_fcgid.c>
    SetHandler fcgid-script
    </IfModule>
    <IfModule !mod_fcgid.c>
    SetHandler cgi-script
    </IfModule>
    </Location>
    
    [email protected]:/etc/apache2/conf-enabled# ls -alph /var/cache/munin/www/
    total 364K
    drwxr-xr-x 4 munin munin 4.0K Jan 20 12:10 ./
    drwxr-xr-x 3 root  root  4.0K Jan 20 12:05 ../
    -rw-rw-r-- 1 munin munin 5.6K Mar 23 07:40 apache-day.html
    -rw-rw-r-- 1 munin munin 5.6K Mar 23 07:40 apache-month.html
    -rw-rw-r-- 1 munin munin 5.6K Mar 23 07:40 apache-week.html
    -rw-rw-r-- 1 munin munin 5.6K Mar 23 07:40 apache-year.html
    -rw-rw-r-- 1 munin munin  11K Mar 23 07:40 disk-day.html
    -rw-rw-r-- 1 munin munin  11K Mar 23 07:40 disk-month.html
    -rw-rw-r-- 1 munin munin  11K Mar 23 07:40 disk-week.html
    -rw-rw-r-- 1 munin munin  11K Mar 23 07:40 disk-year.html
    -rw-rw-r-- 1 munin munin 4.8K Mar 23 07:40 index.html
    -rw-rw-r-- 1 munin munin 4.3K Mar 23 07:40 munin-day.html
    -rw-rw-r-- 1 munin munin 4.3K Mar 23 07:40 munin-month.html
    -rw-rw-r-- 1 munin munin 4.3K Mar 23 07:40 munin-week.html
    -rw-rw-r-- 1 munin munin 4.3K Mar 23 07:40 munin-year.html
    -rw-rw-r-- 1 munin munin 6.3K Mar 23 07:40 mysql-day.html
    -rw-rw-r-- 1 munin munin 6.3K Mar 23 07:40 mysql-month.html
    -rw-rw-r-- 1 munin munin 6.3K Mar 23 07:40 mysql-week.html
    -rw-rw-r-- 1 munin munin 6.3K Mar 23 07:40 mysql-year.html
    -rw-rw-r-- 1 munin munin 7.6K Mar 23 07:40 network-day.html
    -rw-rw-r-- 1 munin munin 7.6K Mar 23 07:40 network-month.html
    -rw-rw-r-- 1 munin munin 7.6K Mar 23 07:40 network-week.html
    -rw-rw-r-- 1 munin munin 7.6K Mar 23 07:40 network-year.html
    -rw-rw-r-- 1 munin munin 5.0K Mar 23 07:40 postfix-day.html
    -rw-rw-r-- 1 munin munin 5.0K Mar 23 07:40 postfix-month.html
    -rw-rw-r-- 1 munin munin 5.0K Mar 23 07:40 postfix-week.html
    -rw-rw-r-- 1 munin munin 5.0K Mar 23 07:40 postfix-year.html
    -rw-rw-r-- 1 munin munin 3.9K Mar 23 07:40 problems.html
    -rw-rw-r-- 1 munin munin 6.8K Mar 23 07:40 processes-day.html
    -rw-rw-r-- 1 munin munin 6.8K Mar 23 07:40 processes-month.html
    -rw-rw-r-- 1 munin munin 6.8K Mar 23 07:40 processes-week.html
    -rw-rw-r-- 1 munin munin 6.8K Mar 23 07:40 processes-year.html
    drwxr-xr-x 2 munin munin 4.0K Jan 20 12:10 static/
    -rw-rw-r-- 1 munin munin  11K Mar 23 07:40 system-day.html
    -rw-rw-r-- 1 munin munin  11K Mar 23 07:40 system-month.html
    -rw-rw-r-- 1 munin munin  11K Mar 23 07:40 system-week.html
    -rw-rw-r-- 1 munin munin  11K Mar 23 07:40 system-year.html
    -rw-rw-r-- 1 munin munin  12K Mar 23 07:40 time-day.html
    -rw-rw-r-- 1 munin munin  12K Mar 23 07:40 time-month.html
    -rw-rw-r-- 1 munin munin  12K Mar 23 07:40 time-week.html
    -rw-rw-r-- 1 munin munin  12K Mar 23 07:40 time-year.html
    drwxr-xr-x 3 munin munin 4.0K Jan 20 12:10 example.com/
    
    
     
    Last edited: Mar 23, 2017

Share This Page