Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: fixed some typos

...

  • Make sure the opCharts logs are rotated
    If your system runsĀ  logrotate daily and automatically (i.e. Debian/Ubuntu or recent CentOS), simply copy conf/omk-rotate.conf to /etc/logrotate.d/.

    Code Block
    themeEmacs
    # on Debian/Ubuntu, as root:
    cp /usr/local/omk/confinstall/omk-rotate.conf /etc/logrotate.d/

    On other systems systems without a readily available /etc/logrotate.d/ you will have to create a suitable cron job:

    Code Block
    # as root: crontab -e#e
    # insert the following lines, then save and quit 
    # Check to rotate the logs 02:05 every day
    2 5 * * * /usr/sbin/logrotate /usr/local/omk/conf/omk-rotate.conf
  • Integrate opCharts with the web server
    becomeĀ root and run the following commands:

    Code Block
    # as root
    # non-debian:
    cp /usr/local/omk/confinstall/04omk-proxy.conf /etc/httpd/conf.d/
    apachectl restart
    # debian/ubuntu:
    cp /usr/local/omk/confinstall/04omk-proxy.conf /etc/apache2/conf.d/
    /etc/init.d/apache2 restart

    Note: If this step is not taken, then the opCharts web GUI will only be available on port 8042 and you'll need to adjust your web browser accordingly.

...