Discussion:
[Netdisco] New user - trying v2 - some problems
Andy Ruhl
2014-09-24 17:42:39 UTC
Permalink
I'm trying to get Netdisco v2 up and running.

I was using an install document on Oliver Gorwits's site, but I can't
find it anymore. Also, it appears the front page of www.netdisco.com
doesn't have v2 info anymore, it's a link to documentation for v1?

Does anyone know what happened?

The current problem I'm having is this:

[***@tucf ~]$ netdisco-daemon start
config watcher: watching /home/netdisco/environments for updates.
Netdisco Daemon [Started]
[***@tucf ~]$ netdisco-web start
config watcher: watching /home/netdisco/environments for updates.
Netdisco Web [Started]
[***@tucf ~]$ netdisco-do --help
Can't locate NetSNMP/default_store.pm in @INC (@INC contains:
/home/netdisco/perl5/lib/perl5/auto/share/dist/App-Netdisco/lib
/home/netdisco/perl5/lib /home/netdisco/perl5/bin/lib
/home/netdisco/perl5/lib/perl5/x86_64-linux-thread-multi
/home/netdisco/perl5/lib/perl5 /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
/home/netdisco/perl5/lib/perl5/x86_64-linux-thread-multi/SNMP.pm line
19.
BEGIN failed--compilation aborted at
/home/netdisco/perl5/lib/perl5/x86_64-linux-thread-multi/SNMP.pm line
19.
Compilation failed in require at
/home/netdisco/perl5/lib/perl5/SNMP/Info.pm line 16.
BEGIN failed--compilation aborted at
/home/netdisco/perl5/lib/perl5/SNMP/Info.pm line 16.
Compilation failed in require at
/home/netdisco/perl5/lib/perl5/App/Netdisco/Util/SNMP.pm line 7.
BEGIN failed--compilation aborted at
/home/netdisco/perl5/lib/perl5/App/Netdisco/Util/SNMP.pm line 7.
Compilation failed in require at /home/netdisco/bin/netdisco-do line 115.
BEGIN failed--compilation aborted at /home/netdisco/bin/netdisco-do line 115.

I can't find default_store.pm anywhere on the machine (RHEL7).

Any help would be appreciated.

Andy
Oliver Gorwits
2014-09-24 18:45:23 UTC
Permalink
Hi Andy,

This is probably the site you're looking for:

https://metacpan.org/pod/App::Netdisco

regards,
oliver.


On 2014-09-24 18:42, Andy Ruhl wrote:
> I'm trying to get Netdisco v2 up and running.
>
> I was using an install document on Oliver Gorwits's site, but I can't
> find it anymore. Also, it appears the front page of www.netdisco.com
> doesn't have v2 info anymore, it's a link to documentation for v1?
>
> Does anyone know what happened?
>
> The current problem I'm having is this:
>
> [***@tucf ~]$ netdisco-daemon start
> config watcher: watching /home/netdisco/environments for updates.
> Netdisco Daemon
> [Started]
> [***@tucf ~]$ netdisco-web start
> config watcher: watching /home/netdisco/environments for updates.
> Netdisco Web
> [Started]
> [***@tucf ~]$ netdisco-do --help
> Can't locate NetSNMP/default_store.pm in @INC (@INC contains:
> /home/netdisco/perl5/lib/perl5/auto/share/dist/App-Netdisco/lib
> /home/netdisco/perl5/lib /home/netdisco/perl5/bin/lib
> /home/netdisco/perl5/lib/perl5/x86_64-linux-thread-multi
> /home/netdisco/perl5/lib/perl5 /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
> /home/netdisco/perl5/lib/perl5/x86_64-linux-thread-multi/SNMP.pm line
> 19.
> BEGIN failed--compilation aborted at
> /home/netdisco/perl5/lib/perl5/x86_64-linux-thread-multi/SNMP.pm line
> 19.
> Compilation failed in require at
> /home/netdisco/perl5/lib/perl5/SNMP/Info.pm line 16.
> BEGIN failed--compilation aborted at
> /home/netdisco/perl5/lib/perl5/SNMP/Info.pm line 16.
> Compilation failed in require at
> /home/netdisco/perl5/lib/perl5/App/Netdisco/Util/SNMP.pm line 7.
> BEGIN failed--compilation aborted at
> /home/netdisco/perl5/lib/perl5/App/Netdisco/Util/SNMP.pm line 7.
> Compilation failed in require at /home/netdisco/bin/netdisco-do line
> 115.
> BEGIN failed--compilation aborted at /home/netdisco/bin/netdisco-do
> line 115.
>
> I can't find default_store.pm anywhere on the machine (RHEL7).
>
> Any help would be appreciated.
>
> Andy
>
>
> ------------------------------------------------------------------------------
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS
> Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
> _______________________________________________
> Netdisco mailing list
> netdisco-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/netdisco-users
Andy Ruhl
2014-09-24 19:32:54 UTC
Permalink
On Wed, Sep 24, 2014 at 11:45 AM, Oliver Gorwits <***@cpan.org> wrote:
> Hi Andy,
>
> This is probably the site you're looking for:
>
> https://metacpan.org/pod/App::Netdisco
>
> regards,
> oliver.

Yeah, thanks, I found it again.

Unfortunately, my problem still exists, netdisco-do doesn't work,
can't find default_store.pm.

I'm new to cpanm as well, so I'm struggling to find out how it is
supposed to install whatever plugin or piece that includes
default_store.pm.

Andy
Oliver Gorwits
2014-09-24 19:54:23 UTC
Permalink
On 2014-09-24 20:32, Andy Ruhl wrote:
> I'm new to cpanm as well, so I'm struggling to find out how it is
> supposed to install whatever plugin or piece that includes
> default_store.pm.

Ah, hang on, have you installed the system packages requested in the
docs, particularly the net-snmp package? This is not Perl via CPAN, it's
an RPM or .deb (if you're on Linux):

On Ubuntu/Debian:
root:~# apt-get install libdbd-pg-perl libsnmp-perl build-essential

On Fedora/Red-Hat:
root:~# yum install perl-core perl-DBD-Pg net-snmp-perl make automake
gcc

regards,
oliver.
Andy Ruhl
2014-09-24 19:59:33 UTC
Permalink
On Wed, Sep 24, 2014 at 12:54 PM, Oliver Gorwits <***@cpan.org> wrote:
> On 2014-09-24 20:32, Andy Ruhl wrote:
>> I'm new to cpanm as well, so I'm struggling to find out how it is
>> supposed to install whatever plugin or piece that includes
>> default_store.pm.
>
> Ah, hang on, have you installed the system packages requested in the
> docs, particularly the net-snmp package? This is not Perl via CPAN, it's
> an RPM or .deb (if you're on Linux):
>
> On Ubuntu/Debian:
> root:~# apt-get install libdbd-pg-perl libsnmp-perl build-essential
>
> On Fedora/Red-Hat:
> root:~# yum install perl-core perl-DBD-Pg net-snmp-perl make automake
> gcc

Yeah, I did that.

On my particular system (RHEL7) I had to yum install net-snmp-devel as
well in order to get the net-snmp-config command.

Probably you should add that to your documentation.

Andy
Jim Glassford
2014-10-03 15:03:37 UTC
Permalink
Greetings,

Trying to get Netdisco 2.007000_001 setup on RedHat SELinux
2.6.18-398.el5 running in a VM.
Had a Linux admin that setup version 1.1, just about the time version 2
started. Since then, the admin had left for greener pastures and I just
waited a while, planned to go to version 2. So I have limited knowledge
on the Linux so please forgive my ignorance.

# netdisco -v
n e t d i s c o
--------------------------------------------------
Netdisco Version : 1.1
SNMP::Info Version : 2.09
Net-SNMP Version : 5.03022
Perl Version : 5.8.8


Following instructions at:
<http://search.cpan.org/~oliver/App-Netdisco-2.007000_001/lib/App/Netdisco.pm#Installation>


~~ I tried to start at the Upgrading section but had perl issue reported

Removing previously used
/usr/share/netdisco/.cpan/build/App-Netdisco-2.029009
CPAN.pm: Going to build O/OL/OLIVER/App-Netdisco-2.029009.tar.gz
*ERROR:* perl: Version 5.008008 is installed, but we need version >=
5.010 at inc/Module/Install/Makefile.pm line 208.
Running make test
Make had some problems, maybe interrupted? Won't test
-sh-3.2$


~~ So I moved up the page to the install but got the below warnings:

# su- netdisco
# curl-Lhttp://cpanmin.us/ <http://cpanmin.us/> | perl - --notest --verbose --local-lib ~/perl5 App::Netdisco


~~ All seems ok above here but got the Warning below?

Using included version of ExtUtils::Command (1.16) as it is newer than
the installed version (1.09).
Using included version of File::Copy::Recursive (0.38) because it is not
already installed.
Using included version of File::Temp (0.22) as it is newer than the
installed version (0.16).
Checking if your kit is complete...
*Warning: the following files are missing in your kit:*
't/liblist/win32/di
't/liblist/win32/space
Please inform the author.
Generating a Unix-style Makefile
Writing Makefile for ExtUtils::MakeMaker
Writing MYMETA.yml and MYMETA.json
OK
Checking dependencies from MYMETA.json ...
Finding PREREQ from Makefile ...
Checking if you have Pod::Man 0 ... Version '2.28' from
/usr/lib/perl5/5.8.8/Pod/Man.pm does not appear to be valid:
BEGIN { my $dummy = q# Hide from _packages_inside()
#; package Module::Metadata::_version::p4;
use version;
no strict;
no warnings;

$vsub = sub {
local $VERSION;
$VERSION=undef;
$VERSION = '2.28';;
$VERSION
};
}
The fatal error was: Can't call method "thischar" without a package or
object reference at - line 471, <$handle> line 39.
at - line 130
at - line 130
-sh-3.2$


Not sure on these, any input appreciated and thanks in advanced!
jim
Oliver Gorwits
2014-10-05 12:42:50 UTC
Permalink
Hi,

Sorry for the confusion about where to start in the docs, this will be
more clear in the next release.

For now I suggest you delete everything in your Netdisco user's home
area and then start from the instructions at the very top (including
installing needed RPMs):

https://metacpan.org/pod/App::Netdisco

regards,
oliver,

On 2014-10-03 16:03, Jim Glassford wrote:
> Greetings,
>
> Trying to get Netdisco 2.007000_001 setup on RedHat SELinux
> 2.6.18-398.el5 running in a VM.
> Had a Linux admin that setup version 1.1, just about the time
> version
> 2 started. Since then, the admin had left for greener pastures and I
> just waited a while, planned to go to version 2. So I have limited
> knowledge on the Linux so please forgive my ignorance.
>
> # netdisco -v
> n e t d i s c o
> --------------------------------------------------
> Netdisco Version : 1.1
> SNMP::Info Version : 2.09
> Net-SNMP Version : 5.03022
> Perl Version : 5.8.8
>
> Following instructions at:
>
>
> <http://search.cpan.org/~oliver/App-Netdisco-2.007000_001/lib/App/Netdisco.pm#Installation>
> [1]
>
> ~~ I tried to start at the Upgrading section but had perl issue
> reported
>
> Removing previously used
> /usr/share/netdisco/.cpan/build/App-Netdisco-2.029009
> CPAN.pm: Going to build O/OL/OLIVER/App-Netdisco-2.029009.tar.gz
> ERROR: perl: Version 5.008008 is installed, but we need version >=
> 5.010 at inc/Module/Install/Makefile.pm line 208.
> Running make test
> Make had some problems, maybe interrupted? Won't test
> -sh-3.2$
>
> ~~ So I moved up the page to the install but got the below warnings:
>
> # su - netdisco
> # curl -L http://cpanmin.us/ | perl - --notest --verbose --local-lib
> ~/perl5 App::Netdisco
>
> ~~ All seems ok above here but got the Warning below?
>
> Using included version of ExtUtils::Command (1.16) as it is newer
> than the installed version (1.09).
> Using included version of File::Copy::Recursive (0.38) because it is
> not already installed.
> Using included version of File::Temp (0.22) as it is newer than the
> installed version (0.16).
> Checking if your kit is complete...
> WARNING: THE FOLLOWING FILES ARE MISSING IN YOUR KIT:
> 't/liblist/win32/di
> 't/liblist/win32/space
> Please inform the author.
> Generating a Unix-style Makefile
> Writing Makefile for ExtUtils::MakeMaker
> Writing MYMETA.yml and MYMETA.json
> OK
> Checking dependencies from MYMETA.json ...
> Finding PREREQ from Makefile ...
> Checking if you have Pod::Man 0 ... Version '2.28' from
> /usr/lib/perl5/5.8.8/Pod/Man.pm does not appear to be valid:
> BEGIN { my $dummy = q# Hide from _packages_inside()
> #; package Module::Metadata::_version::p4;
> use version;
> no strict;
> no warnings;
>
> $vsub = sub {
> local $VERSION;
> $VERSION=undef;
> $VERSION = '2.28';;
> $VERSION
> };
> }
> The fatal error was: Can't call method "thischar" without a package
> or object reference at - line 471, <$handle> line 39.
> at - line 130
> at - line 130
> -sh-3.2$
>
> Not sure on these, any input appreciated and thanks in advanced!
> jim
>
>
>
> Links:
> ------
> [1]
>
> http://search.cpan.org/~oliver/App-Netdisco-2.007000_001/lib/App/Netdisco.pm#Installation
Loading...