• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

watchdog and mysql

E

Expert

Guest
Hi

Watchdog in my plesk every minute get state of mysql server.
And every minute in log I see: Database server connection has established

it is normally?
 
Check setting for mysql in watchdog configuration file /usr/local/psa/etc/modules/watchdog/monitrc
Also documentation about watchdog can be useful.
 
Check setting for mysql in watchdog configuration file /usr/local/psa/etc/modules/watchdog/monitrc
Also documentation about watchdog can be useful.

I can't find something wrong...

MySql work correctly. Plesk is UP, sites work...
but in log every minute: Database server connection has established

Look at my config files

/usr/local/psa/etc/modules/watchdog/monitrc
# MySQL
check process mysql
with pidfile "/var/run/mysqld/mysqld.pid"
start = "/etc/init.d/mysql start"
stop = "/etc/init.d/mysql stop"
if failed unixsocket /var/run/mysqld/mysqld.sock with timeout 60 seconds then restart
if 1000 restarts within 1000 cycles then timeout
every 1 cycles
mode active

/etc/mysql/my.cnf
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0

[mysqld]
set-variable=local-infile=0
#
# * Basic Settings
#

#
# * IMPORTANT
# If you make changes to these settings and your system uses apparmor, you may
# also need to also adjust /etc/apparmor.d/usr.sbin.mysqld.
#

user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp_mysql
language = /usr/share/mysql/english
wait_timeout = 36000
skip-external-locking

#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
# bind-address = 127.0.0.1

[mysqldump]
quick
quote-names
max_allowed_packet = 16M

[mysql]
#no-auto-rehash # faster start of mysql but no tab completition

[isamchk]
key_buffer = 32M
 
Back
Top