Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions agents/plugins/mk_mysql
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ alias_string=$(grep -F -h alias "$MK_CONFDIR"/mysql{.local,}.cfg | sed -ne 's/.*
if [ -z "$mysql_socket_string" ]; then
mysql_socket_string=$(ps -fww -C mysqld | grep "socket" | sed -ne 's/.*socket=\([^ ]*\).*/\1/p')
fi
if [ -z "$mysql_socket_string" ]; then
mysql_socket_string=$(find /run/mysqld -type s)
fi
if [ -z "$mysql_socket_string" ]; then
do_query "" ""
else
Expand Down
Loading