MySQL plugin: add socket detection by using ss and mysqld

1 votes

Please enhance the finding part of the plugin to find the socket file by using netstat and mysqld:

ss -ln | grep mysql
unix 2 [ ACC ] STREAM LISTENING 38377 /tmp/mysql1.sock

mysqld --verbose --help | grep ^socket
socket /var/lib/mysql/mysql.sock

ss -ln | grep -o -m 1 -E '\S*mysqld?\.sock'
/var/lib/mysql/mysql.sock

Under consideration Checks&Agents Suggested by: JPH Upvoted: 13 Jul Comments: 0

Comments: 0