I have a mysql master master replication on 2 servers and it is working fine. Now I need to monitor it with nagios plugin. I downloaded the check_replication.sh
from the nagios website and added it as a plugin in agent server. when I run the check_replication.sh
locally it shows the replication is fine. But when I run the same command from the nagios server it is displayed as failed.
/usr/local/nagios/libexec/check_nrpe -H remoteserver -c check_repl
I have also added the user nagios to the sudoers to run the mysql command. Any idea what might be the issue?
Use check_mysql_slavestatus.sh
check_mysql_slavestatus.sh
}