FlowMon Installation instructions ================================= 1. Edit the config.py file to your liking: PORTNO = Listening Port of the flow-collector SPOOLDIR = Temporary spooldirectory of collected data before it is written into the database LOGFILE_ = Location of the logfiles written by each tool DATABASE = 'mysql' or 'postgresql', choose one. Note: Right now, MySQL is better tested DB_ = Database credentials routers = Python Dictionary of routers we accept flows from. Syntax is: "'ip.add.re.ss' : 'flowprotocol'," 2. Create a Database e.g. flowstorage: mysqladmin create flowstorage 3. Grant access to the user specified in config.py: echo "GRANT ALL ON flowstorage.* TO 'flowmon'@'localhost' IDENTIFIED BY 'flowmon';" | mysql 4. Create the DB schema: cat mysql.sql | mysql flowstorage 5. Edit the initscripts and set the correct path in the $exec variable. 6. Copy the initscripts to your initrd-dir and add them to the system-startup if so desired. 7. Create the Spooldir, e.g. /var/spool/flowmon 7. Copy the flowmon-web directory to your webroot, make sure tmp/ is writable by your apache. 8. Edit config.inc.php to contain the correct database credentials. 9. Configure your router to export to the installed flow-collector 10. Edit crontab to run the cleanup.sh script at least once a day: "30 0 0 0 0 cleanup.sh" 11. Hopefully done.