check_dd.pl error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
hillhealthcenter
Posts: 174
Joined: Fri Sep 21, 2012 7:45 am
Location: New Haven, CT

check_dd.pl error

Post 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
Thanks so much,
Tom
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_dd.pl error

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
hillhealthcenter
Posts: 174
Joined: Fri Sep 21, 2012 7:45 am
Location: New Haven, CT

Re: check_dd.pl error

Post by hillhealthcenter »

Awesome! That worked! :D
Thanks so much,
Tom
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_dd.pl error

Post by lmiltchev »

I am glad I could help! :) Is it ok to lock this topic?
Be sure to check out our Knowledgebase for helpful articles and solutions!
hillhealthcenter
Posts: 174
Joined: Fri Sep 21, 2012 7:45 am
Location: New Haven, CT

Re: check_dd.pl error

Post by hillhealthcenter »

Yes.
Thanks so much,
Tom
Locked