Netdot

De Linuxmemo.

Network Documentation Tool project

sources: https://osl.uoregon.edu/redmine/

Sommaire

Installation

# apt-get install apache2 apache2-dev libapache2-mod-perl2 libapache2-mod-perl2-dev build-essential libapreq2 libapache2-request-perl librrds-perl libsql-translator-perl
# apt-get install rrdtool mysql-client mysql-server
Choose a mysql 'root' admin password and remember it

# cd /path/to/netdot-1.0.2
# make install APACHEUSER=www-data APACHEGROUP=www-data

# make installdeps
(voir Perl pour utilisation avec serveur proxy)

(Modules Perl supplémentaire)
#perl -MCPAN -e shell;
>install Apache2::SiteControl

#make testdeps
pour teste que toute les dépendance necessaire sont bien installées
# vim etc/Default.conf
# sudo make installdb
où bien avec les flags: DB_TYPE=mysql DB_HOST=localhost DB_NETDOT_USER=netdot DB_NETDOT_PASS=netdot

Configuration

  • netdot
$cd /usr/local/netdot/etc
$cp Default.conf Site.conf
$vim Site.conf
  • apache2
$ a2enmod perl
# cd /etc/apache2
# ln -s /usr/local/netdot/etc/netdot_apache2_local.conf sites-available/netdot
# a2ensite netdot

Erreurs d'install

Perl deps

# make testdeps
Testing for required Perl modules
/usr/bin/perl bin/perldeps.pl test
RRDs..............................................ok
GraphViz..........................................ok
Module::Build.....................................ok
CGI...............................................ok
Class::DBI........................................ok
Class::DBI::AbstractSearch........................ok
Apache2::Request..................................ok
HTML::Mason.......................................ok
Apache::Session...................................ok
URI::Escape.......................................ok
SQL::Translator...................................ok
SNMP::Info 2.06...................................ok
NetAddr::IP.......................................ok
Apache2::AuthCookie...............................ok
Apache2::SiteControl..............................ok
Log::Dispatch.....................................ok
Log::Log4perl.....................................ok
Parallel::ForkManager.............................ok
Net::Patricia 1.19_01.............................ok
Authen::Radius....................................ok
Test::Simple......................................ok
Net::IRR..........................................MISSING
Time::Local.......................................ok
File::Spec........................................ok
Net::Appliance::Session...........................ok
BIND::Config::Parser..............................ok
Net::DNS..........................................ok
Text::ParseWords..................................ok
Carp::Assert......................................ok
Digest::SHA.......................................ok
Net::DNS::ZoneFile::Fast..........................ok
Socket6...........................................ok
XML::Simple.......................................ok
# apt-get install libnet-irr-perl
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
E: Impossible de trouver le paquet libnet-irr-perl

Sous Ubuntu 12.04.1 LTS le paquet n'existe pas :(

via CPAM

cpan[1]> install Net::IRR
Going to read '/root/.cpan/Metadata'
Database was generated on Tue, 06 Nov 2012 15:43:03 GMT
Running install for module 'Net::IRR'
Running make for T/TC/TCAINE/Net-IRR-0.08.tar.gz
Checksum for /root/.cpan/sources/authors/id/T/TC/TCAINE/Net-IRR-0.08.tar.gz ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE
CPAN.pm: Going to build T/TC/TCAINE/Net-IRR-0.08.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for Net::IRR
Writing MYMETA.yml and MYMETA.json
cp lib/Net/IRR.pm blib/lib/Net/IRR.pm
Manifying blib/man3/Net::IRR.3pm
TCAINE/Net-IRR-0.08.tar.gz
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01_methods.t .. 3/21 
#   Failed test 'connected to whois.radb.net'
#   at t/01_methods.t line 9.
#   Failed test '->can(...)'
#   at t/01_methods.t line 11.
#     can_ok() called with empty class or reference
Can't call method "get_irrd_version" on an undefined value at t/01_methods.t line 12.
# Looks like you planned 21 tests but ran 4.
# Looks like you failed 2 tests of 4 run.
# Looks like your test exited with 110 just after 4.
t/01_methods.t .. Dubious, test returned 110 (wstat 28160, 0x6e00)
Failed 19/21 subtests 
Test Summary Report
-------------------
t/01_methods.t (Wstat: 28160 Tests: 4 Failed: 2)
Failed tests:  3-4
Non-zero exit status: 110
Parse errors: Bad plan.  You planned 21 tests but ran 4.
Files=1, Tests=4, 64 wallclock secs ( 0.02 usr  0.01 sys +  0.04 cusr  0.00 csys =  0.07 CPU)
Result: FAIL
Failed 1/1 test programs. 2/4 subtests failed.
make: *** [test_dynamic] Erreur 110
TCAINE/Net-IRR-0.08.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports TCAINE/Net-IRR-0.08.tar.gz
Running make install
make test had returned bad status, won't install without force
Failed during this command:
TCAINE/Net-IRR-0.08.tar.gz                   : make_test NO

Commande

Automatisation

Astuces

Demo vmware

mdp netdot:netdot

Outils personnels