Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: updated package list for debian

...

 

Code Block
su root # or sudo sh
apt-get install autoconf automake gcc make \
libcairo2 libcairo2-dev libglib2.0-dev libpango1.0-dev libxml2 libxml2-dev libgd-gd2-perl \
libnet-ssleay-perl libcrypt-ssleay-perl apache2 fping \
snmp snmpd libnet-snmp-perl \
libjson-xs-perl libnet-dns-perl libio-socket-ssl-perl libwww-perl libnet-smtp-ssl-perl \
libcrypt-unixcrypt-perl libsoap-lite-perl libdata-uuid-perl \
libproc-processtable-perl libnet-ldap-perl libnet-snpp-perl libdbi-perl libtime-modules-perl

 

RRDTool Installation

We now need to get RRDtool, by Tobi Oetiker. The NMIS development team suggests that you download the latest stable RRDtool and compile it yourself - however, for normal NMIS deployments the distribution-provided RRDtool is generally sufficient.  

If you want to skip the build step and use packaged versions, simply install the following packages and then skip to the next step.

Debian/Ubuntu:

Code Block
apt-get install rrdtool librrds-perl

CentOS/Red Hat:

There are suitably recent RRDTool packages for CentOS, but they are not part of the 'default' repositories (these don't contain anything or very outdated versions). To work around this you need to enable the RepoForge repository first to gain access.

Code Block
# adding repoforge for centos 6:
yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
# centos 6 ships an ancient rrdtool, repoforge-extras has what we're after
yum -y --enablerepo=rpmforge-extras install rrdtool rrdtool-perl 

Compiling your own RRDtool:

The latest version of RRD is available at http://oss.oetiker.ch/rrdtool/.

Unpack the RRDtool tarball.   NMIS8 has been testing using v1.4.7 and for this example. To build and install a “GNU” make based system, you run ./configure, then make, then make install, for RRDTool for NMIS we need a configure option setup.

 

Code Block
tar -xvf rrdtool-1.4.8.tar.gz
[local]# cd rrdtool-1.4.8 
[rrdtool-1.4.8]# 
./configure --enable-shared --prefix=/usr/local/rrdtool

 

When this step is finished, you should see something like this:

 

Code Block
ordering CD from http://tobi.oetiker.ch/wish .... just kidding ;-)


----------------------------------------------------------------
Config is DONE!


 With MMAP IO: yes
 Build rrd_getopt: no
 Static programs: no
 Perl Modules: perl_piped perl_shared
 Perl Binary: /usr/bin/perl
 Perl Version: 5.8.8
 Perl Options: PREFIX=/usr/local/rrdtool LIB=/usr/local/rrdtool/lib/perl/5.8.8
 Ruby Modules:
 Ruby Binary: no
 Ruby Options: sitedir=/usr/local/rrdtool/lib/ruby
 Build Lua Bindings: no
 Build Tcl Bindings: no
 Build Python Bindings: no
 Build rrdcgi: yes
 Build librrd MT: yes
 Use gettext: yes
 With libDBI: no


 Libraries: -lxml2 -lcairo -lcairo -lcairo -lm -lcairo -lpng12 -lglib-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0


Type 'make' to compile the software and use 'make install' to
install everything to: /usr/local/rrdtool.


 ... that wishlist is NO JOKE. If you find RRDtool useful
make me happy. Go to http://tobi.oetiker.ch/wish and
place an order.


 -- Tobi Oetiker <tobi@oetiker.ch>
----------------------------------------------------------------

 

So far, so good. You have all the things RRDtool needs to compile. Let's keep going.

 

Code Block
make && make install

Now, rrdtool should be installed the way NMIS likes it.

NMIS8 Installation

And speaking of NMIS, if you haven't already downloaded it, the latest version (v8.5G at time of this writing) is available at http://opmantek.com

 

Code Block
cd ~
tar -xvzf nmis8.5g.tar.gz
The unpacking of the tarball in the previous step created a directory called nmis8.5g, which can be installed manually or semi-automatically.

Automatic Installation

 
The easiest method for installing NMIS 8.5g (or upgrading to this version) is to use the semi-automatic installation and upgrade script, install.pl.
Simply run the commands shown below and the remaining steps of the installation procedure will be taken care for you:

 

Code Block
cd nmis8.5g
./install.pl -h
...shows the list of options for the install script
./install.pl listdeps=true
...shows what perl modules are missing, and how to get them
/install.pl
...simply follow the on-screen prompts to perform the actual installation.

 

The installer will likely tell you that a number of required CPAN modules are missing and should have to be installed; , but  the on-screen prompts will guide you through that process.

 

That's all there is to it, NMIS should now be installed and working.

Manual Installation

...