Page 1 of 1

mysql monitoring throwing stderr: /bin/sh errror

Posted: Mon Mar 05, 2018 3:46 pm
by nskbalu
Hello Guys

tried to configure the hosts for mysql server monitoring. I found the following error for each monitoring says stderr: /bin/sh errror

(No output on stdout) stderr: /bin/sh: -c: line 0: unexpected EOF while looking for matching `"'

Please do help me to fix this error.

Re: mysql monitoring throwing stderr: /bin/sh errror

Posted: Mon Mar 05, 2018 3:50 pm
by scottwilkerson
Can you share your configuration and plugin used?

That error is typical of a plugin that has windows line endings. this could be resolved by installing the following package

Code: Select all

yum install dos2unix -y
Then running the following for the plugin you are using (changing YOUR_PLUGIN to the actual plugin name)

Code: Select all

dos2unix /usr/local/nagios/libexec/YOUR_PLUGIN.sh