Skip to main content.

Installation

Requirements

NDMon is written in C, which is why you need a C compiler. During the implementation, we used GCC version 4.1. Besides the classic system libraries, other additional libraries are required:

Make sure you have these libraries and the assiciated headers installed.

With the Source Code

Build and Install

First of all, if you are experiencing troubles with the configure script, do not hesitate to regenerate it with the command:

# autoconf

To compile and install NDPMon, simply use the command:

# ./configure && make && make install

To enable the plugins, you have to specify it when executing the configure script with the option --enable-PLUGIN. By default, they are not activated. The plugins available are:

The configure script automatically check the environment variable OSTYPE to determine the OS on which you are building NDPMon and generates the according Makefile.

All installation paths are derived from the --prefix from the configure script. By default, it uses the path /usr/local, but feel free to modify it as you wish. Please note that paths to the configuration and cache XML and DTD files are automatically derived from the prefix variable in the files ndpmon_defs.h, config_ndpmon.xml and neighbor_list.xml. If you modify manually the variables sysconfdir, datadir..., remember to modify these files before compiling NDPMon to avoid troubles at execution (File not found errors...).

The configure script is also responsible of modifying the paths to the configuration file and the neighbor cache:

Uninstallation

To uninstall it, use:

# make uninstall

Note that the install and uninstall targets require root privileges.

FreeBSD Ports

NDPMon is available under FreeBSD via the ports system. The package is maintained by Janos Mohacsi. To install it, we recommend you to use the portsnap system. The procedure to follow is simple:

# portsnap fetch			Download a snapshot of the available ports
# portsnap extract			Extracts this copy into /usr/ports
# portsnap fetch update			Update the list
# cd /usr/ports/net-mgmt/ndpmon/	Go to the subdirectory of ndpmon
# make && make install			Build and install the port

Running NDPMon

Make sure you edited the configuration file before running the tool.

To run NDPMon under Linux, use as root:

# /etc/init.d/ndpmon start

To stop NDPMon, use as root:

# /etc/init.d/ndpmon stop

Under other OS, the tool must be run manually with root priviledges:

# ndpmon

Do not hesitate to take a look at the help:

# ndpmon -h