Error due to run datadomain plugin

I am using this plugin

https://exchange.icinga.com/exchange/Check%20EMC%20DataDomain

but while run that on redhat 7 show follow error:

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

Hi @baber,

the plugin expects the perl package (interpreter) and the libs at /usr/local/groundwork/bin/ and I guess this path does simply not exist on your system.

You have to fix the path on all occurences of that path. For the first line, something like #!/usr/bin/env perl should determine the correct path automatically.

Best,
Marcel

Thanks
but could not understand your means is that your mean just create follow path on my server?

/usr/local/groundwork/bin/

What @winem said is:
Change line 1 of the script to #!/usr/bin/env perl

Also change line 28 to use lib "/usr/local/nagios/libexec"; (or wherever the file utils.pm is located)

I change that script such as attach but show follow error due running

[root@NG ~]# /usr/local/nagios/libexec/check_dd.pl
Can’t locate Net/SNMP.pm in @INC (@INC contains: /usr/local/nagios/libexec /root/perl5/lib/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/nagios/libexec/check_dd.pl line 30.
BEGIN failed–compilation aborted at /usr/local/nagios/libexec/check_dd.pl line 30.
check_dd.zip (3.2 KB)

Install the perl net snmp package with your distributions package manager.
You can search with these package managers for strings, e.g. apt search perl net snmp or yum search perl net snmp

1 Like