So it was installed the Opmantek NMIS in this article, I continue to install the opFlow.
For more information's official site reference, but, installation of MongoDB and setting of Flowd, supplemental part is often necessary.
opFlow Installation Guide - opFlow - Opmantek Community WIKI
- OpFlow tar file deployment
- Install the Flowd (NetFlow Daemon)
- Install the MongoDB
- Opmantek Setup for Flowd
- Opmantek Setup for MongoDB
- Install the opFlow License
- opFlowd Setup and Start
- Trouble Shooting
OpFlow tar file deployment
Office to place the tar file that you downloaded from the official site and expand to /usr/local.
Restart service to copy the various files to the appropriate folder.
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
Install the Flowd (NetFlow Daemon)
To install the prerequisite packages.
yum install byacc
Compile the flowd.
cd / usr / local / opmantek / source tar xvf flowd-0.9.1.tar.gz cd flowd-0.9.1 ./configure make make install cd ../../
Install the MongoDB
Installation instructions for MongoDB was easy to understand is this page.(Sorry in JP)
Create the MongoDB repository.
[mongodb] name=MongoDB Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/ gpgcheck=0 enabled=1
Install the MongoDB by yum.
yum install -y mongodb-org
These will be installed.
Start-up set and start service.
chkconfig mongod on serivice mongod start
Opmantek Setup for Flowd
Tuning the setting of Flowd for Opmantek.
adduser _flowd \cp /usr/local/opmantek/install/flowd.conf /usr/local/etc/flowd.conf cp /usr/local/opmantek/install/flowd.init.d /etc/init.d/flowd mkdir /usr/local/var mkdir /usr/local/var/run mkdir /var/opflow/ chkconfig flowd on service flowd start
Flowd startup error ( fail )
It might be occurred following error ( failure ) when you try to start the service of Flowd.
service flowd start
Starting flow daemon flowdsocket: Address family not supported by protocol
Listener setup of [::]:12345 failed
[ Failure ]already started[ OK ]
Because this in the Listen port configuration error for IPv6, modify the boot setting.
# $Id: flowd.conf,v 1.15 2005/05/14 06:04:48 djm Exp $ # Specify where flowd should store its flow records logfile "/var/opflow/flowd" # Specify what addresses/ports flowd should listen on. # Multiple addresses may be specified #listen on 127.0.0.1:12345 #listen on [::1]:12345 listen on 0.0.0.0:12345 #listen on [::]:12345 <- Comment Out this line ### disable ipv6
Now that you have started without error Flowd.
Opmantek Setup for MongoDB
Tuning the setting of MongoDB for Opmantek.
cp /usr/local/opmantek/install/mongod.init.d /etc/init.d/mongod
It is overwritten, but for the time being OK.
Install the opFlow License
When the pull-down on the NMIS to select the "opFlow", it rises screen of opFlow.
Since the license is required, to obtain a license from the official in the "Get a Free Trial License ...", to enter.
opFlowd Setup and Start
After you install the license to perform the setting of the final opFlow.
/usr/local/opmantek/bin/opfixperms.pl /usr/local/opmantek/bin/opflow_setup.pl setup=all /usr/local/opmantek/bin/opflow_setup.pl setup=cron
Settings when you are finished service to start.
cp /usr/local/opmantek/install/opflowd.init.d /etc/init.d/opflowd chkconfig opflowd on service opflowd start
The service is started, the screen of the opFlow is displayed. Because you have not yet received the Flow Record (Flow Records), nothing is displayed.
Trouble at the time of reference here.
Since the warning is also displayed on the top screen, so that the appropriate response while watching it. Service of Flowd is not raised, such as the services of opFlowd it is not up is displayed on the Web screen.
I add a module of opFlow to Opmantek NMIS8.
Other than IPv6 error of Flowd was able to install without any particular problem.