Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th February 2013, 04:07
Parsec Parsec is offline
Member
 
Join Date: Jan 2013
Posts: 66
Thanks: 1
Thanked 9 Times in 8 Posts
Default Server monitor incorrect reporting

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.
Reply With Quote
Sponsored Links
  #2  
Old 6th February 2013, 13:13
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

What's the output of
Code:
netstat -tap
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
Parsec (6th February 2013)
  #3  
Old 6th February 2013, 14:35
Parsec Parsec is offline
Member
 
Join Date: Jan 2013
Posts: 66
Thanks: 1
Thanked 9 Times in 8 Posts
Default

Quote:
Originally Posted by falko View Post
What's the output of
Code:
netstat -tap
?
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   -
Reply With Quote
  #4  
Old 6th February 2013, 15:25
Parsec Parsec is offline
Member
 
Join Date: Jan 2013
Posts: 66
Thanks: 1
Thanked 9 Times in 8 Posts
 
Default

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.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig 3.0.3.2 reporting FTP server offline. CSsab Installation/Configuration 2 14th January 2011 08:15
Getmail problem cante93 Installation/Configuration 6 20th September 2010 14:40
I don't recieve mail. privir Installation/Configuration 2 3rd June 2009 22:08
Rejecting outbound mail tristanlee85 General 11 20th May 2007 17:04
Webmail Relay Error palkat General 17 23rd April 2006 18:12


All times are GMT +2. The time now is 03:14.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.