Nagios SNMP error

I am talking about a error like this one :
# ./ -H -C password -m / -w 80 -c 90
Can’t locate Net/ 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 ./ line 15.

Here is what should be done :
1. Check if Perl and perl-Net-SNMP are installed
2. Check if net-SNMP is installed
3. Install module Net::SNMP (it is in no case the same as per-Net-SNMP!!) :
# perl -MCPAN -e shell
cpan[x]> o conf http_proxy
cpan[x]> o conf commit
cpan[x]> install CPAN
cpan[x]> reload cpan
cpan[x]> install Net::SNMP
This can take quite some time, and will ask about 1000 times to confirm somethings 😉
cpan[x]> quit

After this reboot!

This entry was posted in Linux and tagged , , . Bookmark the permalink.

Comments are closed.