Assistance with finishing up a plugin

This forum is intended for the discussion of Nagios plugin development. Feature requests, patches, bug fixes, and all types of development-related discussions are welcome!

NOTE: The SourceForge.net nagiosplug-devel mailing list has been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Re: Assistance with finishing up a plugin

Postby Box293 » Sun Sep 18, 2016 8:20 pm

Your script starts with #!/bin/bash
Whereas sh is not always bash.

For example, on my Pi box:
Code: Select all
pi@dns1:~ $ which bash
/bin/bash
pi@dns1:~ $ ls -la /bin/bash
-rwxr-xr-x 1 root root 863400 Oct 18  2014 /bin/bash
pi@dns1:~ $ which sh
/bin/sh
pi@dns1:~ $ ls -la /bin/sh
lrwxrwxrwx 1 root root 4 Jan  1  1970 /bin/sh -> dash

You can see that sh redirects to dash (which is different to bash).

Perpahs change the first line of your script to:

#!/bin/sh
User avatar
Box293
Too Basu
 
Posts: 4739
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia

Re: Assistance with finishing up a plugin

Postby derekb » Sun Sep 18, 2016 8:29 pm

We paid a Dev to completely rewrite the plugin and allow the multi line long output to work with NRDS.

Might share it on the Exchange sooner or later.

Go ahead and lock this.
derekb
 
Posts: 177
Joined: Wed Jun 10, 2015 1:54 pm

Re: Assistance with finishing up a plugin

Postby rkennedy » Mon Sep 19, 2016 9:50 am

Awesome - feel free to add it to the Exchange, we do always enjoy seeing new items / updates posted!
rkennedy
 
Posts: 6562
Joined: Mon Oct 05, 2015 11:45 am

Previous

Return to Nagios Plugin Development

Who is online

Users browsing this forum: No registered users and 1 guest