Page 1 of 1

Nagios plugin: Check Rubrik

Posted: Thu May 02, 2019 9:13 pm
by shanmanthu
Can someone help me with this issue

(No output on stdout) stderr: Can't locate REST/Client.pm
/usr/local/nagios/libexec/check_rubrik line 11.

line 8: use strict;
line 9: use warnings;
line 10: use vars qw($PROGNAME $VERSION $output $values $result);
line 11: use REST::Client;
line 12: use File::Basename;
line 13: use Nagios::Plugin;
line 14: use Data::Dumper;
line 15: use MIME::Base64;
line 16: use JSON::XS;

Re: Nagios plugin: Check Rubrik

Posted: Fri May 03, 2019 10:55 am
by mcapra
Which plugin are you using? Can you provide a link or reference to the specific code being executed?

Simply put, your Perl runtime is looking for a dependency that doesn't exist. Install that dependency via cpan/yum.

Code: Select all

yum install perl-REST-Client
If that doesn't work, please share the output of the above command as well as this one:

Code: Select all

perl -MFile::Find=find -MFile::Spec::Functions -Tlwe 'find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC'

Re: Nagios plugin: Check Rubrik

Posted: Fri May 03, 2019 1:13 pm
by benjaminsmith
Thanks @mcapra!

Let us know if you get the missing packages installed and working, otherwise, please post the output from above.

Thanks.