Skip to end of banner
Go to start of banner

DRAFT - opReports - Save Report To Distant Server

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Overview

It may be desirable to save a report to another server.  Making the report available to users that do not have access to the OMK server is a possilbe use case.

This article will discuss two methods of saving the report to a distant server; NFS and rsync.

Directory Sharing Options

NFS

Summary Steps

  • Distant Server
    • Install NFS utilities
    • Enable service
    • Export directory
  • OMK Server
    • Install NFS utilities
    • Create directory in /mnt/nfs
    • Mount the directory

rsync

Summary Steps

  • Distant Server
    • Select user for rsync actions
    • Install the appropriate ssh public key in .ssh/authorized_keys
    • Select a directory for opReports (ensure permissions are correct)
  • OMK Server
    • Select a directory for opReports that should be placed on the distant server.
    • Create a cron job that rsync's the selected directory to the corresponding distant server directory.

Configuration

The new directory needs to be added to the opreports_output_dirs array in /usr/local/omk/conf/opCommon.nmis.  In the example below /data/reports was added.

/usr/local/omk/conf/opCommon.nmis
    'opreports_output_dirs' => [
      '<omk_reports>',
      '<omk_reports>/opflow',
      '/data/reports'
    ],

Following this change restart the omkd service and reload the browser.  When adding a new report schedule the new output directory will be available in the drop down menu.

 

 

 

  • No labels