Yes, I think a guide like this would be helpful to a lot of potential 
users of NFSEN.
NFSEN is a fantastic tool (kudos to Peter), but some people may be a bit 
daunted by the installation process.
When I first installed NFSEN back in early 2005, it took some effort to 
make things work. Not so much NFSEN itself,
but the things-on-the-side that are needed.
Like you, I wrote my own guide, so I'll add some bits out of it here, as 
my 2cents.
This is based on a recent install on a Ubuntu 6.06 box.

SNMP (great for SNMP walking to get interface information):
apt-get install snmp
==========================================================================================
WEBSERVER STUFF:
Note: When doing a LAMP server install, this includes Apache, MySQL and 
Perl/PHP (Maybe do that for next time)
Change directory paths, etc to suit your own setup.
Install Apache2:
apt-get install apache2
Apache runs with the “www-data” user and group.
Config file is “/etc/apache2.conf”
Virtual site config (incl document root) is in 
“/etc/apache2/sites-available/default”
Change document root to “/var/www/nfsen” Create “/var/www/nfsen” and 
CHOWN and CHGRP to www-data.

Restart Apache, “/etc/init.d/apache2 restart”
Disable directory browsing in the /sites-available/default” file with 
“-Indexing” option (+Indexing to enable).

Install Perl:
apt-get install perl (installs Perl 5.8.7)

Install PHP:
sudo apt-get install php5
sudo apt-get install libapache2-mod-php5

Install the Perl Mail::Header and Mail::Internet modules through CPAN:
perl -MCPAN -e shell
install Mail::Header
install Mail::Internet (may already be there)
==========================================================================================
NFSEN:
NFDump + NFSEN:
Install NFDump as per INSTALL file instructions.
Don't forget the “–enable-nfprofile” and 
“–with-rrdpath=/usr/local/rrdtool” options.

Create the “/data/nfsen” directory, CHOWN and CHGRP for www-data. This 
is an important
step or you won't get any data+graphs.

Edit the nfsen.conf as per requirements.
Needed to install “apt-get install librrds-perl” package. This installs 
a whole bunch of dependencies, including libpng, freetype and other rrd 
stuff.
Needed to install this or the NFSEN install script would not run. Did 
not seem to cause any harm.

Nfsen startup scripts:
Copy the “/data/nfsen/bin/nfsen” script to “/etc/init.d/”
Create symbolic link to /etc/init.d/nfsen” script in "/etc/rc3.d" as 
"S93nfsen" (S"93" is an example only, appropriate
in my situation)
Add to other run-levels as required.

Nfsen Icons:
The default path for the Apache icons directory needs to be changed in 
/etc/apache2/apache.conf.
Under “Let's have some Icons, shall we?”, change the path to 
“/var/www/nfsen/icons/”.
Alternatively, you could off course copy the icon files to the default 
Apache icon path, especially if running other virtual servers,
not the case in my situation.
Without the icons, the details page doesn't look so good :-)

Nfsen WHOIS lookups:
Nfsen supports IP lookups using the cyberwhois.org WHOIS database.
WHOIS requires TCP43 outgoing, so this needs to be allowed through the 
firewall if outgoing access is controlled.

That's about it.
Hope this helps with building up an installation document.

Lambert



Tor Inge Skaar wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I've noticed that some of the mails on the list asks "how to I get
> started" and "graphs don't display properly". As to the latter, I
> suspect people screw up when installing rrdtool. Although there are
> great documentation on both the nfsen and nfdump homepages, the
> installation description for nfsen could be too sparse for some. Which
> may also explain the former question.
>
> Below I've shared my own step-by-step guide getting nfsen up and
> running, it's nothing fancy or anything, and I bet there are ways to
> improve it, so please do comment if you spot something "funky".
>
> http://www.honeynor.no/sharewiki/index.php/Nfsen
>
> - -Tor
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFImL2c6kzbtNj+3wMRAmceAJ9jAVNukqFH185cu1iJUone0bPw+wCgi0US
> UgLOjECiIku9VBFSj2K3D+U=
> =zIUi
> -----END PGP SIGNATURE-----
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Nfsen-discuss mailing list
> Nfsen-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nfsen-discuss
>
>   


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nfsen-discuss mailing list
Nfsen-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss

Reply via email to