Root access is available.
scp
or sftp
or similar. Make a record of where you put the tarball (likely root
's home directory).Become root and unpack the tarball:
# become root sudo sh # if the tarball was saved in a different location, adjust the following command cd /tmp ./opTrend-Linux-x86_64-1.6.2.run |
Start the interactive installer and follow its instructions
/usr/local/omk
, and the default configuration files are in /usr/local/omk/conf
, ready for your initial config adjustments./usr/local/omk/install.log
, and subsequent upgrades or installations of other Opmantek products will add to that logfile.For detailed information about the interactive installer please check the Opmantek Installer page.
If the seds collection is capped it will need to be "uncapped" which is not a simple task.
# first get into the mongo shell mongo -u opUserRW -p op42flow42 optrend // in the shell check if capped: db.seds.stats().capped true |
Collections in opTrend are no longer capped, each entry is set to expire after 21 days. This value is configurable, adjust opCommon: 'optrend_seds_expire_after_seconds'
Set expire_at value on existing documents, be sure to change the date to a date that makes sense for you:
# first get into the mongo shell mongo -u opUserRW -p op42flow42 optrend // then run these to commands to update, CHANGE THE DATE IN THEM FIRST!!! db.getCollection('seds').update( { expire_at: {$exists: false}}, { $set: { expire_at: Date("2017-06-20T01:01:01")}}, { multi: true } ); db.getCollection('seds_ev').update( { expire_at: {$exists: false}}, { $set: { expire_at: Date("2017-06-20T01:01:01")}}, { multi: true } ); |
opTrend documents for the current week need to be replaced with the newer format, to do this force an update which will replace them:
/usr/local/omk/bin/optrend.pl act=update force=1 |