4.1.6. export

Description

Exports information for use in other programs.

Usage

bw export FORMAT FILE [DEFINES]

  • FORMAT is the export format. Current formats include 'nagios' and 'monit'.
  • FILE is the export file.
  • DEFINES are optional arguments used by the exporter. The format is: -Dname=value

Ant Usage

<bw.export format="${format}" file="${file}">
   <define name="..." value="..." />
   <define name="..." value="..." />
</bw.export>

Examples

# Export all deployments in nagios service definition format.
bw export nagios nagios.cfg
# Export deployments within the dev environment for monitoring by monit.
bw export monit processes.cfg -Denv.dir=/local/dev

Notes

  • Currently, exporters are available for 'nagios' and 'monit', two open source monitoring programs.
  • Custom exporters can be written as BundleWorks plugins.
  • The reference section Exporters lists all exporters and their defines.