| Summary: | Mon has error in hpnp.monitor--Cannot find SNMP.pm in @INC | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Steven James <admin> |
| Component: | [OLD] Server | Assignee: | Gentoo Perl team <perl> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
I think this is a dup of bug 18665 - can you confirm before I mark it so? I don't know enough about the way Gentoo is organized to know if this is a dup of that bug...but if you are pretty sure that it is, then go ahead and mark it as a dup. |
After emerging mon I tried to set up a monitor for the HP printers on my network using hpnp.monitor. This fails and monshow -detail shows the following error. summary ------- Can't locate SNMP.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i586-linux /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i586-linux /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i586-linux /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/lib/mon/mon.d/hpnp.monitor line 30. I have searched for SNMP.pm and it exists in /usr/lib/perl5/site_perl/5.8.0/Mon/ but it appears to be the incorrect module (I have tried loading this one). I have also tried to emerge dev-perl/SNMP_Session but this also does not work because hpnp.monitor expects SNMP::Session. I'm not a perl programmer. My guess is that hpnp.monitor relies on a perl module that does not exist in the portage tree. Either this should be remedied or the hpnp.monitor should be removed from the mon package. Reproducible: Always Steps to Reproduce: 1. add a watch in mon.cf using hpnp.monitor 2. wait 10 seconds 3. monshow -details group,service Actual Results: summary ------- Can't locate SNMP.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i586-linux /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i586-linux /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i586-linux /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/lib/mon/mon.d/hpnp.monitor line 30. Expected Results: shown "OK" status Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20-openmosix-r6 i686 M II 3x Core/Bus Clock GENTOO_MIRRORS="http://gentoo.seren.com/gentoo ftp://cs.ubishops.ca/pub/gentoo http://adelie.polymtl.ca/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo ftp://ftp. ussg.iu.edu/pub/linux/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm arts avi crypt cups encode gif gpm imlib java jpeg kde libg++ libwww mikmod mmx mpeg ncurses nls oggvorbis pdflib png qt quicktime sdl spell svga truetype xml2 xmms xv zlib gdbm berkdb slang readline X tcpd pam ssl perl python opengl aalib directfb emacs fbcon flash samba snmp zeo -gtk -gnome -motif" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache fixpackages"