Monitor HP Hardwares: check_hp_agents


#1

Hello,
I am new for nagios. I have downloaded nagios-hp-agents.2.2.tar.gz and decompressed by this:
…]# tar xzf nagios-hp-agents.2.2.tar.gz
…]# cd nagios-hp-agents
…]# ls
nagios-hp-agents mibs README

Then I copied to nagios directory like this:
…]# cp nagios-hp-agents /usr/local/nagios/libexec/

When I did like this:

…]# /usr/local/nagios/libexec/nagios-hp-agents

Can’t locate Net/SNMP.pm in @INC (@INC contains: /usr/local/nagios/libexec /usr/
lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl
/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-t
hread-multi /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/
perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.
8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib64/perl5/ven
dor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.7/x86_
64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-mul
ti /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/v
endor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8
.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/
5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at ./check_hp_agents lin
e 31.
BEGIN failed–compilation aborted at ./check_hp_agents line 31.

What could be the problem… How to use this plugins actually? Can anyone please suggest?