Page 1 of 1

check_dd.pl error

Posted: Tue Feb 13, 2018 12:30 pm
by hillhealthcenter
I uploaded the Check DataDomain plugin (check-dd.pl) from the exchange. I get this error when I try to test from the command line.

-bash: ./check_dd.pl: /usr/local/groundwork/bin/perl: bad interpreter: No such file or directory

Re: check_dd.pl error

Posted: Tue Feb 13, 2018 1:07 pm
by lmiltchev
This is not one of the "official" nagios plugins, and I am not familiar with it, but looking at the error, I would assume that you will need to modify the plugin. Try opening the plugin in a text editor, e.g. "vi", and change these two lines:

Code: Select all

#!/usr/local/groundwork/bin/perl -w
use lib "/usr/local/groundwork/nagios/libexec";
to these:

Code: Select all

#!/usr/bin/perl -w
use lib "/usr/local/nagios/libexec";
Save, exit, and try the plugin, e.g. see if you can view the usage (help menu):

Code: Select all

/usr/local/nagios/libexec/check_dd.pl --help

Re: check_dd.pl error

Posted: Tue Feb 13, 2018 1:15 pm
by hillhealthcenter
Awesome! That worked! :D

Re: check_dd.pl error

Posted: Tue Feb 13, 2018 1:21 pm
by lmiltchev
I am glad I could help! :) Is it ok to lock this topic?

Re: check_dd.pl error

Posted: Tue Feb 13, 2018 2:25 pm
by hillhealthcenter
Yes.