Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql service example #8

Open
planetahuevo opened this issue Mar 26, 2023 · 2 comments
Open

mysql service example #8

planetahuevo opened this issue Mar 26, 2023 · 2 comments

Comments

@planetahuevo
Copy link

Hi
Thank you for building this.
I was looking at the go version and I was not sure if this can be used to monitor a mysql service on a server and how to configure it.

Can you provide an example?
I wanted to monitor the MySQL service and try to restart when it has been 10 minutes down. (Not before if possible).
Also
Is this ready to be used on production servers?

Thanks!

@IamTheFij
Copy link
Owner

Though there is nothing known to be wrong with this version, you should be using the Go version as I haven't been maintaining this one.

What exactly do you want to monitor with MySQL? minitor executes any shell commands you have installed, so if you have a command that you run in a terminal to manually check or restart today, you can use those in your configuration and it should be sufficient.

@angelfplaza
Copy link

angelfplaza commented Apr 22, 2023

For start I was thinking to just check if the service is running.
So depending on the server, could be something like
ps uxa | grep mysqld Or
systemctl status mysqld.service Or variants of those
I found the go after sending this message, I suppose it will work the same, right?

My question is, how do minitor knows if the command is working or not? Does it need to reply something specific?
How we define what answer is correct or not for any command?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants