Can't locate Nagios/Plugin.pm in @INC
Posted: Mon Oct 14, 2013 4:54 am
While running the one plugin i am getting the below error.
[root@CNPUDAS011 libexec]# perl check_3com_health.pl
Can't locate Nagios/Plugin.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_3com_health.pl line 27.
BEGIN failed--compilation aborted at check_3com_health.pl line 27.
You have new mail in /var/spool/mail/root
I tried to install below packages
yum install perl-Nagios-Plugin libuuid* perl-XML-LibXML -y
But when i tried to install Nagios:plugin i got below error
[root@CNPUDAS011 libexec]# yum install perl-Nagios-Plugin
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is receiving updates from Red Hat Subscription Management.
rhel-6-server-cf-tools-1-rpms | 2.8 kB 00:00
rhel-6-server-rhev-agent-rpms | 3.1 kB 00:00
rhel-6-server-rpms | 3.7 kB 00:00
Setting up Install Process
No package perl-Nagios-Plugin available.
Error: Nothing to do
Please let me know the solution for this.
[root@CNPUDAS011 libexec]# perl check_3com_health.pl
Can't locate Nagios/Plugin.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_3com_health.pl line 27.
BEGIN failed--compilation aborted at check_3com_health.pl line 27.
You have new mail in /var/spool/mail/root
I tried to install below packages
yum install perl-Nagios-Plugin libuuid* perl-XML-LibXML -y
But when i tried to install Nagios:plugin i got below error
[root@CNPUDAS011 libexec]# yum install perl-Nagios-Plugin
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is receiving updates from Red Hat Subscription Management.
rhel-6-server-cf-tools-1-rpms | 2.8 kB 00:00
rhel-6-server-rhev-agent-rpms | 3.1 kB 00:00
rhel-6-server-rpms | 3.7 kB 00:00
Setting up Install Process
No package perl-Nagios-Plugin available.
Error: Nothing to do
Please let me know the solution for this.