...
When trying to add the _flowd user, you will get the following error message:
adduser: Please enter a username matching the regular expression configured
via the NAME_REGEX[_SYSTEM] configuration variable. Use the `--force-badname'
option to relax this check or reconfigure NAME_REGEX.
Code Block |
---|
adduser --force _flowd |
Debian/Ubuntu follow the LSB (Linux Standard Base) specification, init script functions be available at /lib/lsb/init-functions.
Edit /etc/init.d/flowd
Code Block |
---|
#change this line:
. /etc/init.d/functions
#to this:
. /lib/lsb/init-functions |
The start flowd
Code Block |
---|
sysv-rc-conf flowd on
service flowd start |
...
Code Block |
---|
|
cp /usr/local/opmantek/install/mongod.init.d /etc/init.d/mongod
chkconfig mongod on
service mongod start |
Debian/Ubuntu
Edit /etc/init.d/mongod
Code Block |
---|
#change this line:
. /etc/init.d/functions
#to this:
. /lib/lsb/init-functions |
The start mongod
Code Block |
---|
sysv-rc-conf mongod on
service mongod start |
...
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
30 0 * * * /usr/local/opmantek/bin/opflow_purge_raw_files.sh /var/opflow 7
######################################################
# Check to rotate the logs 4:05AM every day
5 4 * * * /usr/sbin/logrotate /usr/local/opmantek/conf/oplogrotate.conf
####################################################
# opFlow Reports
# hourly - every hour 3 minutes after the hour
3 * * * * /usr/local/opmantek/bin/opFlowReports-hourly.sh
# daily - every day at 1am
0 1 * * * /usr/local/opmantek/bin/opFlowReports-daily.sh
crontab -e
Insert the above text, then save and quit. |
...
Code Block |
---|
|
cp /usr/local/opmantek/install/opflowd.init.d /etc/init.d/opflowd
chkconfig opflowd on
service opflowd start |
Debian/Ubuntu
Edit /etc/init.d/opflowd
Code Block |
---|
#change this line:
. /etc/init.d/functions
#to this:
. /lib/lsb/init-functions |
The start opflowd
Code Block |
---|
sysv-rc-conf opflowd on
service opflowd start |
...
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
cp /usr/local/opmantek/install/mongod.init.d /etc/init.d/mongod
/usr/local/opmantek/bin/opflow_setup.pl setup=all |
Debian/Ubuntu
Verify/Edit /etc/init.d/flowd, /etc/init.d/mongod and /etc/init.d/opflowd
Code Block |
---|
#change this line:
. /etc/init.d/functions
#to this:
. /lib/lsb/init-functions |