Error due to run datadomain plugin

I am using this plugin

but while run that on redhat 7 show follow error:

-bash: ./ /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.


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


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 is located)

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

[root@NG ~]# /usr/local/nagios/libexec/
Can’t locate Net/ 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/ line 30.
BEGIN failed–compilation aborted at /usr/local/nagios/libexec/ line 30. (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