Server monitor incorrect reporting

Discussion in 'Installation/Configuration' started by Parsec, Feb 6, 2013.

  1. Parsec

    Parsec New Member

    I have a new ISPonfig 3.0.4 setup on a debian wheezy system that I am working through.

    However under Monitor --> Server State in the ISPConfig3 screen it shows a problem or two.... clicking through it shows this:

    Web-Server: Offline
    FTP-Server: Online
    SMTP-Server: Offline
    POP3-Server: Offline
    IMAP-Server: Offline
    DNS-Server: Online
    mySQL-Server: Offline

    Yes all these services are installed and yes they are actually all working - kinda obvious the web and mysql ones are else I wouldn't even get to the ISPConfig web panel....

    Looking at .../lib/classes/monitor_tools.inc.php - which is where I think these things are derived, it appears all the monitor is doing is checking the port of each service to see if it's up.

    So why is it not working on some of these services? Any ideas?
    This is debian wheezy btw, but checking ports, that shouldn't make a difference.
     
  2. falko

    falko Super Moderator

    What's the output of
    Code:
    netstat -tap
    ?
     
  3. Parsec

    Parsec New Member

    Well it's kinda large but.. I'll remove some of the extra lines

    Code:
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp        0      0 localhost:10024         *:*                     LISTEN      7946/amavisd-new (c
    tcp        0      0 localhost:10025         *:*                     LISTEN      18991/master    
    tcp        0      0 *:mysql                 *:*                     LISTEN      17788/mysqld    
    tcp        0      0 localhost:spamd         *:*                     LISTEN      17806/spamd.pid 
    tcp        0      0 *:sunrpc                *:*                     LISTEN      16260/rpcbind   
    tcp        0      0 *:ftp                   *:*                     LISTEN      18912/pure-ftpd (SE
    tcp        0      0 alink.i4u-host.n:domain *:*                     LISTEN      17176/named     
    tcp        0      0 223.252.26.3:domain     *:*                     LISTEN      17176/named     
    tcp        0      0 ns5.cichost.net.:domain *:*                     LISTEN      17176/named     
    tcp        0      0 alva.cichost.net:domain *:*                     LISTEN      17176/named     
    tcp        0      0 localhost:domain        *:*                     LISTEN      17176/named     
    tcp        0      0 *:ssh                   *:*                     LISTEN      17187/sshd      
    tcp        0      0 *:smtp                  *:*                     LISTEN      18991/master    
    tcp        0      0 localhost:953           *:*                     LISTEN      17176/named     
    tcp        0      0 alva.cichost.net.:44197 tinnie.arin.net:domain  TIME_WAIT   -               
    tcp        0     48 alva.cichost.net.au:ssh 220-245-105-15.st:37011 ESTABLISHED 11969/0         
    tcp        1      0 localhost:55180         localhost:mysql         CLOSE_WAIT  23228/amavisd-new (
    tcp        1      0 localhost:55171         localhost:mysql         CLOSE_WAIT  7946/amavisd-new (c
    tcp        0      0 alva.cichost.net.:49557 tinnie.arin.net:domain  TIME_WAIT   -               
    tcp6       0      0 [::]:pop3               [::]:*                  LISTEN      17218/couriertcpd
    tcp6       0      0 [::]:imap2              [::]:*                  LISTEN      17219/couriertcpd
    tcp6       0      0 [::]:sunrpc             [::]:*                  LISTEN      16260/rpcbind   
    tcp6       0      0 [::]:http-alt           [::]:*                  LISTEN      21535/apache2   
    tcp6       0      0 [::]:http               [::]:*                  LISTEN      21535/apache2   
    tcp6       0      0 [::]:tproxy             [::]:*                  LISTEN      21535/apache2   
    tcp6       0      0 [::]:munin              [::]:*                  LISTEN      18916/munin-node
    tcp6       0      0 [::]:ftp                [::]:*                  LISTEN      18912/pure-ftpd (SE
    tcp6       0      0 [::]:domain             [::]:*                  LISTEN      17176/named     
    tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      17187/sshd      
    tcp6       0      0 [::]:smtp               [::]:*                  LISTEN      18991/master    
    tcp6       0      0 localhost:953           [::]:*                  LISTEN      17176/named     
    tcp6       0      0 [::]:https              [::]:*                  LISTEN      21535/apache2   
    tcp6       0      0 [::]:imaps              [::]:*                  LISTEN      17215/couriertcpd
    tcp6       0      0 [::]:pop3s              [::]:*                  LISTEN      17216/couriertcpd
    tcp6       0      0 alva.cichost.net.a:http 202.125.32.213:58454    TIME_WAIT   -     
    
     
  4. Parsec

    Parsec New Member

    Ah ha!

    Found it myself by following the php code and doing manual tests. Seems Wheezy likes to add ::1 localhost for ipv6 configuration in /etc/hosts and this is messing with the checkTcp as it's trying on ipv6 instead of ipv4.

    Got rid of the ipv6 localhost leaving only the ipv4 localhost in /etc/hosts and now all the services are showing up just fine.

    Thanks anyway Falko.
     

Share This Page