mysql monitoring throwing stderr: /bin/sh errror

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nskbalu
Posts: 1
Joined: Mon Mar 05, 2018 1:15 pm

mysql monitoring throwing stderr: /bin/sh errror

Post 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.
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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked