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
transline
Posts: 3
Joined: Tue Mar 06, 2018 4:05 am

mysql monitoring throwing stderr: /bin/sh errror

Post by transline »

Moderator Edit: This thread has been split from another - https://support.nagios.com/forum/viewto ... =6&t=47771

In the future, please create a new thread and link to the old one instead of adding on.


Hello there,

ive got the same problem, i wanted to monitor a mssql server and got the same error.
So i tried your solution but it didn't work :(

Maybe i've done something wrong.
I installed dos2unix like u said, then i tried:

Code: Select all

dos2unix /usr/local/nagios/libexec/ceck_mssql_server.py
don't know if this is the right plugin or not. I've only got the NagiosXi standard plugins, so have i really to convert this one?

Sorry im a completely beginner here, many thanks for help :)
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

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

Post by cdienger »

Not sure if it was just a typo here but it looks like there was a typo in command. Try:

Code: Select all

dos2unix /usr/local/nagios/libexec/check_mssql_server.py
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
transline
Posts: 3
Joined: Tue Mar 06, 2018 4:05 am

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

Post by transline »

Hello,

yes it was a typo in my comment, the command was executet succesfully but it didn't help

what else could i do?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

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

Post by cdienger »

I've attached a good copy here in case the one you have still has problems. Replace the one on the system with this one and make sure the permissions/owernship is set:

chmod 775 /usr/local/nagios/libexec/check_mssql_server.py
chown apache:nagios /usr/local/nagios/libexec/check_mssql_server.py
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
transline
Posts: 3
Joined: Tue Mar 06, 2018 4:05 am

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

Post by transline »

Hello,

i got it. My failure was a "!" in the userpassword, changed it, now its working :)
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post by tmcdonald »

Glad to hear it! I'll be closing this up now, but feel free to open another thread if you need anything in the future!
Former Nagios employee
Locked