Netdot
De Linuxmemo.
(Différences entre les versions)
(→Installation) |
(→Installation) |
||
Ligne 6 : | Ligne 6 : | ||
==Installation== | ==Installation== | ||
- | + | # apt-get install apache2 apache2-dev libapache2-mod-perl2 libapache2-mod-perl2-dev build-essential libapreq2 libapache2-request-perl librrds-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) | (voir [[Perl]] pour utilisation avec serveur proxy) | ||
Ligne 20 : | Ligne 20 : | ||
>install Apache2::SiteControl | >install Apache2::SiteControl | ||
- | make testdeps | + | #make testdeps |
pour teste que toute les dépendance necessaire sont bien installées | 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 | où bien avec les flags: DB_TYPE=mysql DB_HOST=localhost DB_NETDOT_USER=netdot DB_NETDOT_PASS=netdot | ||
Version du 5 novembre 2012 à 21:48
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 # 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
erreur:
apache2ctl configtest Syntax error on line 34 of /etc/apache2/sites-enabled/netdot: Attempt to reload Netdot/Model/Device.pm aborted.\nCompilation failed in require at (eval 296) line 2.\n\t...propagated at /usr/share/perl/5.14/base.pm line 93.\nBEGIN ailed-- compilation aborted at (eval 295) line 1.\nBEGIN failed--compilation aborted at /usr/local/netdot/lib/Netdot/Model.pm line 418.\nCompilation failed in require at /usr/local/netdot/lib/Netdot/UI.pm line 5.\nBEGIN failed--compilation aborted at /usr/local/netdot/lib/Netdot/UI.pm line 5.\nCompilation failed in require at /usr/local/netdot/lib/Netdot /Mason.pm line 21.\nBEGIN failed--compilation aborted at /usr/local/netdot/lib/Netdot/Mason.pm line 21.\nCompilation failed in require at /etc/apache2/sites-enabled/netdot line 36.\nBEGIN failed--compilation aborted Action 'configtest' failed.
Commande
Automatisation
Astuces
Demo vmware
mdp netdot:netdot