...
Installation Steps
- Download opTrend from the Opmantek website.
Copy the opTrend tarball to the server in question, usingscp
orsftp
or similar. Make a record of where you put the tarball (likelyroot
's home directory). Become root and unpack the tarball:
Code Block # as root cd /usr/local # if the tarball was saved in a different location, adjust the ~ in the following command tar xzf ~/opTrend-Linux-x86_64-1.0.0.tgz cd /usr/local/omk cp install/opCommon.nmis conf/ cp -r install/trend conf cp install/users.dat conf/
- opTrend is now unpacked into
/usr/local/omk
, and the default configuration files are in/usr/local/omk/conf
, ready for your initial config adjustments. Integrate opTrend with the web server
becomeroot
and run the following commands:Code Block # as root # non-debian: cp /usr/local/omk/conf/04omk-proxy.conf /etc/httpd/conf.d/ apachectl restart # debian/ubuntu: cp /usr/local/omk/conf/04omk-proxy.conf /etc/apache2/conf.d/ /etc/init.d/apache2 restart
Note: If this step is not taken, then the opTrend web GUI will only be available on port 8042 and you'll need to adjust your web browser accordingly.
Adjust NMIS Access list to include opTrend
Code Block cd /usr/local/omk/ perl ./install/optrend_setup.pl setup=all
Make the opTrend service daemons start automatically with the system
becomeroot
, then run the following commands:Code Block # as root cd /usr/local/omk/install cp omkd.init.d /etc/init.d/omkd # non-debian: chkconfig omkd on # debian/ubuntu: update-rc.d omkd defaults
Start the opTrend service daemons
becomeroot
, then run the following commands:Code Block service omkd start
Setup the cron jobs to run data collections, create a file /etc/cron.d/optrend
Code Block # opTrend "collect" */5 * * * * root sleep 60;/usr/local/omk/bin/optrend.exe act=collect; 0 0 * * 0 root /usr/local/omk/bin/optrend.exe act=update
- Test opTrend
open up a web browser, and point it to "http://<yourserverip>/omk/opTrend"
; you will have to enter your license first, then you will see opTrend main dashboard.