...
- 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.
Code Block | ||
---|---|---|
| ||
'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.