Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
themeEmacs
cd /usr/local
tar xvf ~/opFlow-Linux-x86_64-<version>.tar.gz
cd opmantek/
cp install/opCommon.nmis conf/
cp install/opFlow.nmis conf/ 
bin/opfixperms.pl
cp install/01opmantek.conf /etc/httpd/conf.d/
service httpd restart

Considerations for NetFlow Data Storage

NetFlow data can get away on you, there could be several Gigabytes of NetFlow data each hour, day or month, this is all very dependant on where you are generating netflow from, the number of active users and the types of applications they are using.  A longer discussion on this will be written up, but in summary, if you are expecting large amounts of NetFlow data, then you will want to consider storing the MongoDB database and the NetFlow data into a filesystem with 50 gigabytes or more.  During development we found 20gigabytes was enough for our purposes, but caused problems with the flow files mainly.

opFlow is highly configurable and customisable, so it is easy to just have the flowd data be a seperate filesystem and update the configuration accordingly. 

If you are going to use a different directory, Modify the opFlow.nmis file and edit the <opflow_dir>
'<opflow_dir>' => '/data/opflow',
 
Edit the file /etc/init.d/mongod and change the correct directory, look for this line
mongodbpath=/data/mongodb
 
Edit the file /usr/local/etc/flowd.conf, and modify the entry for logfile.
logfile "/data/opflow/flowd" 

Alternate Installation Directory

...

Edit opFlow.nmis and opCommon.nmis and change the <omk_base> to be the new, e.g.

'<omk_base>' => '/opt/opmantek',

Edit the Apache include file, which if already copied to /etc/httpd/conf.d will be /etc/httpd/conf.d/01opmantek.conf and change the following lines to the new installation location

...

<Directory "/usr/local/opmantek/cgi-bin"> 

...

Install flowd NetFlow Daemon

...