Mk_mysql plugin bug

CMK version: 2.4.0p22 raw
OS version: Debian Stable

Error message:

Output of “cmk-agent-ctl dump”: (If it is a problem with checks or plugins)

<<<mysql_ping>>>
[[/var/run/mysqld/mysqld2.sock]]
mariadb-admin: connect to server at 'localhost' failed
error: 'Can't connect to local server through socket '/var/run/mysqld/mysqld2.sock' (2)'
Check that mariadbd is running and that the socket: '/var/run/mysqld/mysqld2.sock' exists!
<<<mysql_ping>>>
[[/var/run/mysqld/mysqld3.sock]]
mariadb-admin: connect to server at 'localhost' failed
error: 'Can't connect to local server through socket '/var/run/mysqld/mysqld3.sock' (2)'
Check that mariadbd is running and that the socket: '/var/run/mysqld/mysqld3.sock' exists!

I found where these mysql2 and mysql3 sockets came from.

But the plugin example config file does include:

The grep in mk_mysql should NEVER match a commented line.

looking at github, the grep was introduced in werk 15336 by @BenediktSeidl

2 Likes

Hi @professional_prutser !
Thank you for reporting,
We were able to confirm this and I will create a ticket for a bug.

In the meantime, a colleague who helped me with confirming this, suggested to use sed -ne 's/[\w]*socket=\([^ ]*\).*/\1/p') as a workaround.

Thanks again!

2 Likes

Not fixed in 2.4.0p23 :confused:

Unfortunately, even though it has been reported, we cannot give any promises on when this will be fixed.
Please consider using the workaround in the meantime.

Is not about the workaround. It’s about open source / community.

I put in time and effort to make CheckMK better. Why would i bother if checkmk can’t even fix this tiny, handed on a silver plate, bug? I would think a “community manager” would understand.

Or, in other words, why would i pay for checkmk, if this is how you handle free help? It works in two ways

Hello @professional_prutser ,

To keep the product stable, we don’t make changes without testing them thoroughly first. We have a set process to ensure that new updates don’t break other parts of the system.

We have logged your bug report and will review it alongside our other tasks. As the maintainers, we are ultimately responsible for the project’s quality and all final decisions.