Confuse to check ping or mysql

Asked by Nguyen Quang Tho

Hi everyone,

I would like to ask some question. Hope you can help me.
In the following link:
http://mysql-mmm.org/mmm1:configuration-examples

# Ping checker
check ping
    check_period 1
    trap_period 5
    timeout 2

# Mysql checker
check mysql
    check_period 1
    trap_period 2
    timeout 2

We have the ping checker and mysql checker. Can you show me what is the difference between check ping and check mysql? And what is trap_period mean. I've already read the description of trap period
(Check is considered as failed if it doesn't succeed for at least trap_period seconds.)
, but still not find out what is this, what's difference trap_period and timeout. Could you please give me an example about them.

Thank you so much!

Question information

Language:
English Edit question
Status:
Expired
For:
mysql-mmm Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Arjen Lentz (arjen-lentz) said :
#1

Hi

Ping is just to see whether the machine is alive. It might not even accept TCP connections. It's a very basic check.

The MySQL check actually connects to the MySQL or MariaDB server.

Regards,
Arjen.

Nguyen Quang Tho <email address hidden> schreef op 16 augustus 2016 11:37:18 GMT+10:00:
>New question #346126 on mysql-mmm:
>https://answers.launchpad.net/mysql-mmm/+question/346126
>
>Hi everyone,
>
>I would like to ask some question. Hope you can help me.
>In the following link:
>http://mysql-mmm.org/mmm1:configuration-examples
>
># Ping checker
>check ping
> check_period 1
> trap_period 5
> timeout 2
>
># Mysql checker
>check mysql
> check_period 1
> trap_period 2
> timeout 2
>
>We have the ping checker and mysql checker. Can you show me what is the
>difference check ping and check mysql? And what is trap_period mean.
>I've already read the description of trap period
>(Check is considered as failed if it doesn't succeed for at least
>trap_period seconds.)
>, but still not find out what is this, what's difference trap_period
>and timeout. Could you please give me an example about them.
>
>Thank you so much!
>
>--
>You received this question notification because your team
>mysql-mmm-core
>is an answer contact for mysql-mmm.

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Revision history for this message
Nguyen Quang Tho (quangtho2910) said :
#2

Hi Arjen Lentz,

Thank you for your reply. How about the trap_period and timeout?

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.