Assistance with finishing up a plugin

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Assistance with finishing up a plugin

Post by Box293 »

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
derekb
Posts: 177
Joined: Wed Jun 10, 2015 1:54 pm

Re: Assistance with finishing up a plugin

Post by derekb »

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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Assistance with finishing up a plugin

Post by rkennedy »

Awesome - feel free to add it to the Exchange, we do always enjoy seeing new items / updates posted!
Former Nagios Employee
Locked