14 07 2014
Nagios: Can’t locate utils.pm in @INC
Ran into the following error while trying to use a nagios check written in perl.
Can't locate utils.pm in @INC (@INC contains: /usr/lib64/nagios/plugins /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 ./check_smartmon line 63.
The fixes I found were just about the include path (it needs to be your plugins directory), however I didn’t have the utils.pm to start with. To fix:
yum install nagios-plugins-perl
Then it will be there:
find / -name "utils.pm" -type f /usr/lib64/nagios/plugins/utils.pm