Evil_TTL> show | s

Netdot Installation on Ubuntu

Category:Tools -> Monitoring
Category:Linux -> Ubuntu

This is how to set up netdot (from the University of Oregon) on Ubuntu. I’ve tested this on Ubuntu 13.04.

First of all install Apache and MySQL and Apache perl modules using the following commands.

sudo apt-get install apache2 apache2-dev mysql-server mysql-client libapache2-mod-perl2 libapache2-mod-perl2-dev build-essential 

When asked for a root password for MySQL provide one and remember it.

Download the latest version of netdot. In my case this was Netdot version 1.0.4. Extract the package to a directory of your choice.

Netdot needs a whole lot of dependencies for it to install correctly. You can check which dependencies are missing by using the command:

make testdeps 

You will get a long list of various packages needed by netdot and whether they are installed. Chances are, most of them will not be installed. You have to find and install them one by one. To install some dependencies type:

sudo make installdeps 

Run make testdeps again to see if everything is installed. You will probably see the output where some dependencies are still missing:

root@ubuntu:/usr/local/src/netdot-1.0.4# make testdeps
Testing for required Perl modules
/usr/bin/perl bin/perldeps.pl test
RRDs
..............................................MISSING
GraphViz
..........................................MISSING
Module
::Build.....................................ok
CGI
...............................................ok
Class::DBI........................................ok
Class::DBI::AbstractSearch........................ok
Apache2
::Request..................................MISSING
HTML
::Mason.......................................ok
Apache
::Session...................................ok
URI
::Escape.......................................ok
SQL
::Translator...................................ok
SNMP
::Info 2.06...................................MISSING
NetAddr
::IP.......................................ok
Apache2
::AuthCookie...............................MISSING
Apache2
::SiteControl..............................MISSING
Log
::Dispatch.....................................ok
Log
::Log4perl.....................................ok
Parallel
::ForkManager.............................ok
Net
::Patricia 1.20................................ok
Authen
::Radius....................................ok
Test
::Simple......................................ok
Net
::IRR..........................................ok
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..........................MISSING
Socket6
...........................................ok
XML
::Simple.......................................MISSING 

You may need to additionally install two more packages.

sudo apt-get install libssl-dev rrdtool 

Fixing MISSING dependencies

**********************************************
** Restricted access! For private use only! **
**********************************************

Evil_TTL> enable
Password:  

Check Netdot’s dependencies again. Make sure every single dependency has Ok status.

Make a copy of the default config file that is provided, name it as Site.conf and open it for editing.

cp etc/Default.conf etc/Site.conf 

Include your MySQL root password in DB_DBA_PASSWORD.

Install netdot using the following command.

sudo make install APACHEUSER=www-data APACHEGROUP=www-data 

If you won’t provide the user and group details, the install process will end with error chown: invalid user: ‘apache:apache’.

There is a bug in version 1.0.4 that prevents the automatic install from creating a vital table in the database that is responsible for deleting objects.

**********************************************
** Restricted access! For private use only! **
**********************************************

Evil_TTL> enable
Password:  

Now you need to tell Apache what modules to load, where to find netdot etc… Just create a sym-link to the provided configuration file inside Apache’s conf.d directory and restart Apache.

ln -/usr/local/netdot/etc/netdot_apache2_local.conf /etc/apache2/conf.d
service apache2 graceful 

Now you should be able to access the netdot web interface at http://localhost/netdot
Default user name: admin,  password: admin

If netdot isn’t able to discover devices…

**********************************************
** Restricted access! For private use only! **
**********************************************

Evil_TTL> enable
Password:  

By privilege15