RackMan::Format::Nagios - Generate the Nagios config for a given RackObject
use RackMan::Format::Nagios; RackMan::Format::Nagios->write({ rackdev => $rackdev, # a RackMan::Device instance rackman => $rackman, # a RackMan instance });
This module generates the Nagios configuration file for a given RackObject.
Generate the file.
Arguments
Arguments are expected as a hashref with the following keys:
rackdev - (mandatory) a RackMan::Device instance
rackdev
rackman - (mandatory) a RackMan instance
rackman
verbose - (optional) boolean, set to true to be verbose
verbose
This module gets its configuration from the [format:nagios] section of the main rack.conf, with the following parameters:
[format:nagios]
Path of the directory to store the generated files.
Specify the SCM tool to use for versionning generated files.
Sebastien Aperghis-Tramoni
To install RackMan, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RackMan
CPAN shell
perl -MCPAN -e shell install RackMan
For more information on module installation, please visit the detailed CPAN module installation guide.