monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to monit mariadb


From: SZÉPE Viktor
Subject: Re: How to monit mariadb
Date: Wed, 20 Mar 2019 22:54:23 +0100
User-agent: Horde Application Framework 5

Idézem/Quoting Tino Hendricks <address@hidden>:

Dear list,

I upgraded one (gentoo) server from mysql-5.7.24 to mariadb-10.1.37 and since then I’m not able to check it's running.

monit 5.25.3 Config is unchanged:
check process mysqld with pidfile /run/mysqld/mysql.pid
        group database
        start program = "/etc/init.d/mysql restart" with timeout 30 seconds
        stop program = "/etc/init.d/mysql stop"
if failed host localhost port 3306 protocol mysql for 3 times within 5 cycles then alert
        if cpu > 7% for 2 cycles then alert


Port is open:
~ # netstat -ln | grep 3306
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN

Process is running:
 ~ # ps aux | grep mysql
mysql 11281 1.6 0.1 2610924 456172 ? Ssl 12:53 9:25 /usr/sbin/mysqld --defaults-file=/etc/mysql/my.cnf root 14224 0.0 0.0 11192 968 pts/3 S+ 22:37 0:00 grep --colour=auto mysql

I am out of ideas and grateful for a little hint.

Maybe you've just missed to mention what is the problem. Is there an error message in Monit's log?

ps. instead of directly calling the init script try to use your init system's command, SysVinit's is /usr/sbin/service


SZÉPE Viktor, webes alkalmazás üzemeltetés / Running your application
https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md
~~~
ügyelet/hotline: +36-20-4242498  address@hidden  skype: szepe.viktor
Budapest, III. kerület








reply via email to

[Prev in Thread] Current Thread [Next in Thread]