-
Notifications
You must be signed in to change notification settings - Fork 15
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
Error connecting when use socket #14
Comments
Can you show how you used the plugin on the cmd line please? |
/usr/local/nagios/libexec/check_mysql_slavestatus.sh -Hlocalhost -unagios -p"password" -S"/database/mysql/mysql.sock" -C channel-db -w 900 -c 1800 |
Thanks for showing the full command. You must either use
But the plugin should inform about this. Will do a code change for this. |
To success conection i had to add "passoword" variable in "ConnectionResult"; in the socket section. Like this:
ConnectionResult=$(mysql ${optfile} ${socket} ${user} -p"${password}" -e "SHOW SLAVE ${connection} STATUS ${channel}\G" 2>&1)
The text was updated successfully, but these errors were encountered: