NAME

RackMan::Format::Nagios - Generate the Nagios config for a given RackObject

SYNOPSIS

use RackMan::Format::Nagios;

RackMan::Format::Nagios->write({
    rackdev => $rackdev,  # a RackMan::Device instance
    rackman => $rackman,  # a RackMan instance
});

DESCRIPTION

This module generates the Nagios configuration file for a given RackObject.

METHODS

write

Generate the file.

Arguments

Arguments are expected as a hashref with the following keys:

  • rackdev - (mandatory) a RackMan::Device instance

  • rackman - (mandatory) a RackMan instance

  • verbose - (optional) boolean, set to true to be verbose

CONFIGURATION

This module gets its configuration from the [format:nagios] section of the main rack.conf, with the following parameters:

path

Path of the directory to store the generated files.

scm

Specify the SCM tool to use for versionning generated files.

AUTHOR

Sebastien Aperghis-Tramoni