Check_ifoperstatus or Check_snmp_disk --> Can't locate Net/SNMP.pm ??

Brian E. Seppanen seppy at chartermi.net
Thu Jan 8 13:36:03 CET 2004


On Thu, 8 Jan 2004, Thomas Jens Lauritsen wrote:

> Dear List,
> 
> 
> Have anybody seen this before?
> 
> [root at localhost libexec]# perl ./check_ifoperstatus
> Can't locate Net/SNMP.pm in @INC (@INC contains: /usr/local/nagios/libexec
> /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0
> /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
> /usr/lib/perl5/site_perl .) at ./check_ifoperstatus line 40.
> BEGIN failed--compilation aborted at ./check_ifoperstatus line 40.
> 
> I have a SNMP.pm in /usr/local/nagios/libexec ....

Modify check_ifoperstatus as follows

#!/usr/bin/perl -I/usr/local/nagios/libexec

that will include /usr/local/nagios/libexec in perls include path

Perhaps a better move would be to install SNMP.pm in Perl's standard 
search path, a lot of things could probably use Net::SNMP, but maybe 
that's just me.

easy way to install it system wide (if your system includes cpan)

perl -MCPAN -e shell
cpan> install Net::SNMP


> 
> 
> Any hints?
> 
> Thanks for your time
> 
> Thomas
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Perforce Software.
> Perforce is the Fast Software Configuration Management System offering
> advanced branching capabilities and atomic changes on 50+ platforms.
> Free Eval! http://www.perforce.com/perforce/loadprog.html
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
> 

Brian Seppanen
seppy at chartermi.net
906-475-0107 ext 1040


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list