Exports information for use in other programs.
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
<bw.export format="${format}" file="${file}">
<define name="..." value="..." />
<define name="..." value="..." />
</bw.export>
# 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
- 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.