-->

DEVOPSZONES

  • Recent blogs

    Can't locate utils.pm in @INC

    Error:
    [root@example ~]# /usr/lib64/nagios/plugins/check_ro_mounts
    Can't locate utils.pm in @INC (@INC contains: /usr/lib/nagios/plugins /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/lib64/nagios/plugins/check_ro_mounts line 27.
    BEGIN failed--compilation aborted at /usr/lib64/nagios/plugins/check_ro_mounts line 27.
    [root@example ~]#
    Solution:
    1.  echo "export PERL5LIB=$PERL5LIB:/usr/lib64/nagios/plugins/" >> /etc/profile.d/nagiosplugins.sh
    2.   chmod a+x /etc/profile.d/nagiosplugins.sh
    3.  source /etc/profile
     [root@example nagios]# cp -pr /usr/lib64/nagios/plugins/utils.pm /usr/lib/perl5/5.8.8/
    [root@example nagios]#
    OR
    cp -pr /usr/lib64/nagios/plugins/utils.pm /usr/lib64/perl5/
    [root@example nagios]# service nrpe restart
    Shutting down nrpe:                                        [  OK  ]
    Starting nrpe:                                             [  OK  ]
    [root@example nagios]#

    No comments