I am trying to setup two different service checks. When trying to run the scripts I get the following error messages. I have come across this before, but I for the life of me remember how to resolve this situation.
[root@nagiosxi libexec]# ./box293_check_vmware.pl --help
Can't locate Time/Piece.pm in @INC (@INC contains: /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 ./box293_check_vmware.pl line 448.
BEGIN failed--compilation aborted at ./box293_check_vmware.pl line 448.
[root@nagiosxi libexec]# ./check_hnas_health --help
Can't locate SNMP/Simple.pm in @INC (@INC contains: /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_hnas_health line 25.
BEGIN failed--compilation aborted at ./check_hnas_health line 25.
Do you know a different resolution in running that I get the following, I even get it when doing a "yum update". When I did a search for SNMP-Simple.pm I did find results on the system for it.
# yum provides perl-Time-Piece perl-SNMP-Simple
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.sanctuaryhost.com
* epel: mirror.steadfast.net
* extras: mirrors.cmich.edu
* rpmforge: mirror.team-cymru.org
* updates: mirror.netdepot.com
perl-Time-Piece-1.15-136.el6.x86_64 : Time objects from localtime and gmtime
Repo : base
Matched from:
perl-Time-Piece-1.15-136.el6_6.1.x86_64 : Time objects from localtime and gmtime
Repo : updates
Matched from:
perl-SNMP-Simple-0.02-2.el6.noarch : Shortcuts for SNMP
Repo : epel
Matched from:
perl-SNMP-Simple-0.02-1.2.el6.rf.noarch : Shortcuts for SNMP
Repo : rpmforge
Matched from:
perl-Time-Piece-1.15-136.el6_6.1.x86_64 : Time objects from localtime and gmtime
Repo : installed
Matched from:
Other : Provides-match: perl-Time-Piece
perl-SNMP-Simple-0.02-2.el6.noarch : Shortcuts for SNMP
Repo : installed
Matched from:
Other : Provides-match: perl-SNMP-Simple
Be sure to check out our Knowledgebase for helpful articles and solutions!