Page 2 of 2

Re: errno is 2: No such file or directory.. check_mysql

Posted: Mon Jun 09, 2014 9:34 am
by tmcdonald
127 generally means that the nagios daemon either cannot access it or it does not have execute rights. So I would first suggest listing the permissions on that check

Code: Select all

ls -lva /usr/local/nagios/libexec/check_mysql
Then also su to the nagios user and attempt to execute it.

Code: Select all

su nagios
cd /usr/local/nagios/libexec
check_mysql

Re: errno is 2: No such file or directory.. check_mysql

Posted: Mon Jun 09, 2014 9:37 am
by eloyd
su nagios
I always recommend "su - nagios" over "su nagios" since that gives you the full login experience as nagios.

Re: errno is 2: No such file or directory.. check_mysql

Posted: Mon Jun 09, 2014 11:09 am
by Stuart Watts
Also, "yum provides */libmysqlclient.so" says that this library is provided by the mysql-devel package, so if you're still seeing the problem after reinstalling the plugin, try manually installing mysql-devel ("yum install mysql-devel")

Re: errno is 2: No such file or directory.. check_mysql

Posted: Mon Jun 09, 2014 4:52 pm
by tmcdonald
shailendra, let us know if any of this helps.