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 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
pi@dns1:~ $ ls -la /bin/bash
-rwxr-xr-x 1 root root 863400 Oct 18  2014 /bin/bash
pi@dns1:~ $ which 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:

As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

ALL of my Projects on the Nagios Exchange

Check out my Nagios website
User avatar
Too Basu
Posts: 4758
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.
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!
Former Nagios Employee
Posts: 6576
Joined: Mon Oct 05, 2015 11:45 am


Return to Nagios Plugin Development

Who is online

Users browsing this forum: No registered users and 3 guests