
19th October 2012, 18:20
|
|
Junior Member
|
|
Join Date: Aug 2012
Posts: 18
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
Monitor - Status of Services - How are the checks performed?
Hi
i have a multiserver installation. on the mysql-server the monitoring always shows that the mysql service is not running. how is the test performed? checking if the localhost socket exists? making a network connection? including actual login on the mysql server?
greets
KoS
|

19th October 2012, 18:49
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,908
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
|
|
Ensure that mysql listens on localhost tcp socket as described in the installation guides.
|

21st October 2012, 11:36
|
|
Junior Member
|
|
Join Date: Aug 2012
Posts: 18
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
is there a reason that it has to listen on TCP localhost? as the checks are made on the local machine, it would be fine to use the unix socket?
in my situation (and i suppose others that use the multiserver setup have the same) the mysql server listents only on the network interface of the "internal network". e.g. eth0 has a public ip, and eth1 is the internal network. the firewall rules permit only access over eth1, so yes i could let the mysql daemon listens on all interfaces, but its "cleaner" to have it explicitly listen only on the interface that is needed. and the problem with mysql is that you cannot have it listen on multiple interfaces (e.g. loopback and eth1), but only on a single interface or on ALL interfaces.
would a patch be welcome to change the check behaviour to unix socket?
|

21st October 2012, 11:43
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
According to the Perfect Server guides, you must set up MySQL to listen on TCP on all interfaces because otherwise ISPConfig will not be able to configure remote access to MySQL databases if desired.
|

21st October 2012, 21:09
|
|
Junior Member
|
|
Join Date: Aug 2012
Posts: 18
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
until now i hadn't had any problems to create databases that have remote access. as already written it is mandatory for all my users to have remote access to the database, so i would have noticed if that didn't work.
so i will loosen my firewall rules to have the monitoring right ;-)
|

22nd October 2012, 08:42
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,908
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
|
|
Quote:
|
so i will loosen my firewall rules to have the monitoring right ;-)
|
No, the monitoring is done on localhost and not the external eth0 network card, you normally never block requests on localhost by a firewall as it would not maky any sense to block IP 127.0.0.1. The ispconfig firewall does not block it, if you added manual firewall rules, then open localhost.
|

22nd October 2012, 10:10
|
|
Junior Member
|
|
Join Date: Aug 2012
Posts: 18
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by till
No, the monitoring is done on localhost and not the external eth0 network card, you normally never block requests on localhost by a firewall as it would not maky any sense to block IP 127.0.0.1. The ispconfig firewall does not block it, if you added manual firewall rules, then open localhost.
|
sorry i didn't mean loosen the firewall rules, but loosen the overall security. no i don't block anything on localhost and as you said that wouldn't make any sense. but as i already wrote, i have two network interfaces (eth0 and eth1, and obviously loopback) and with mysql it is not possible to listen on multiple network interfaces. only on ONE or ALL, so if i would like to have the mysql daemon listen on loopback too (and not only eth1) i would have to make it listen on eth0 too, which is the public interfaces.
|

22nd October 2012, 10:14
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,908
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
|
|
You can e.g. enable mysql to listen on all interfaces and then close the mysql port in the firewall for the external network card.
|

22nd October 2012, 10:40
|
|
Junior Member
|
|
Join Date: Aug 2012
Posts: 18
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by till
You can e.g. enable mysql to listen on all interfaces and then close the mysql port in the firewall for the external network card.
|
sure, but the "cleaner" way is to only make daemons listen on the interfaces that are needed, and not to have the firewall to close the wholes in the system :-)
|

22nd October 2012, 10:53
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,908
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
|
|
Then you might have to make a feature request to Oracle that the allow binding to multiple interfaces e.g. by allowing comma separated values in my.cnf file for bind address. Mysql is a bit limited in this config option.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 17:17.
|
Recent comments
17 hours 24 min ago
17 hours 29 min ago
22 hours 28 min ago
1 day 5 hours ago
1 day 5 hours ago
1 day 7 hours ago
1 day 11 hours ago
1 day 18 hours ago
1 day 22 hours ago
1 day 23 hours ago