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.
mysql monitoring throwing stderr: /bin/sh errror
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: mysql monitoring throwing stderr: /bin/sh errror
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
Then running the following for the plugin you are using (changing YOUR_PLUGIN to the actual plugin name)
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 -yCode: Select all
dos2unix /usr/local/nagios/libexec/YOUR_PLUGIN.sh