...
Code Block | ||
---|---|---|
| ||
/usr/local/opmantek/bin/opflow_setup.pl setup=cron ###################################################### # opFlow Cronfig ###################################################### # Run the DNS resolution every 15 minutes */15 * * * * /usr/local/opmantek/bin/opflowd.pl type=endpoints # Purge the old Flows every 24 hours 0 0 * * * /usr/local/opmantek/bin/opflowd.pl type=purge ###################################################### # Check to rotate the logs 4:05AM every day 5 4 * * * /usr/sbin/logrotate /usr/local/opmantek/conf/oplogrotate.conf #################################################### # opFlow Reports # daily - every day at 1am 0 1 * * * /usr/local/opmantek/bin/opFlowReports-daily.sh # weekly - every sunday at 1am 0 1 * * 0 /usr/local/opmantek/bin/opFlowReports-weekly.sh crontab -e Insert the above text, then save and quit. |
...
Ensure mongod is not running with the --auth switch, if you are using the mongod.init.d script included in opFlow run
Code Block /etc/init.d/mongod stop; /etc/init.d/mongod start_no_auth;
Create the user, currently the opFlow user requires access to both the admin database and it's own. Start up the mongo shell and type these commands:
Code Block use admin; db.addUser('opUserRW', 'op42flow42'); // these are the defaults, change them as well as your opFlow.nmis file use nmis; // again this is a default, it doesn't need to be changed db.addUser('opUserRW', 'op42flow42'); // these are the defaults, change them as well as your opFlow.nmis file, it should match the above user command
Restart the mongo server with authentication, --auth
Code Block /etc/init.d/mongod stop; /etc/init.d/mongod start;
...
Any authentication challenges will be the same as to login to your NMIS8 system.
Updating opFlow from earlier versions
If you are updating opFlow from an earlier version you will need to update the configuration files with some new optional goodness. Run the following commands to do that.
Code Block | ||
---|---|---|
| ||
/usr/local/opmantek/bin/opupdateconfig.pl /usr/local/opmantek/install/opFlow.nmis /usr/local/opmantek/conf/opFlow.nmis
/usr/local/opmantek/bin/opupdateconfig.pl /usr/local/opmantek/install/opCommon.nmis /usr/local/opmantek/conf/opCommon.nmis |