Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


nfsen

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
nfsen [2014/06/16 13:33] – [Installation] adminnfsen [2021/10/09 15:14] (current) – external edit 127.0.0.1
Line 1: Line 1:
 {{tag>[nfsen network centos netflow]}} {{tag>[nfsen network centos netflow]}}
-~~TOC~~ 
  
 =====NfSen - CentOS6===== =====NfSen - CentOS6=====
Line 18: Line 17:
   * Install rrdtool. <code>sudo yum install rrdtool rrdtool-devel</code>   * Install rrdtool. <code>sudo yum install rrdtool rrdtool-devel</code>
   * Install Apache, php and perl modules. <code>sudo yum install apache php perl-MailTools rrdtool-perl perl-Socket6</code>   * Install Apache, php and perl modules. <code>sudo yum install apache php perl-MailTools rrdtool-perl perl-Socket6</code>
 +  * Edit **/etc/php.ini**. Confgure date.timezone.
   * Create user netflow. <code>useradd netflow</code>   * Create user netflow. <code>useradd netflow</code>
   * Add user netflow to apache group. <code>sudo usermod -G apache netflow</code>   * Add user netflow to apache group. <code>sudo usermod -G apache netflow</code>
Line 34: Line 34:
   $WWWUSER  = "apache";   $WWWUSER  = "apache";
   $WWWGROUP = "apache";   $WWWGROUP = "apache";
 +
 +  $MAIL_FROM   = 'nfsen@yourdomain.tld';
 +  $SMTP_SERVER = 'fqdn.mail.server';
 +  
   %sources = (   %sources = (
       'source1' => { 'port' => '9995', 'col' => '#0000ff', 'type' => 'netflow' },       'source1' => { 'port' => '9995', 'col' => '#0000ff', 'type' => 'netflow' },
Line 69: Line 73:
   * Start nfsen. <code>sudo /opt/nfsen/bin/nfsen start</code>   * Start nfsen. <code>sudo /opt/nfsen/bin/nfsen start</code>
   * To start NfSen at boot, add the start script to **/etc/rc.local**. Or create a nice start/stop init script.   * To start NfSen at boot, add the start script to **/etc/rc.local**. Or create a nice start/stop init script.
 +  * Access NfSen at http://server/nfsen/nfsen.php.
nfsen.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1