NAME

RackMan::Format::Cacti - Create Cacti graphs for the given RackObject

SYNOPSIS

    use RackMan::Format::Cacti;

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

DESCRIPTION

This module declares the given RackObject within Cacti and creates a few associated graphs or graph templates.

METHODS

write

Do the work.

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:cacti] section of the main rack.conf, with the following parameters:

path

Path of the directory where the Cacti command line programs are located.

php

Path of the PHP interpreter. Default to /usr/bin/php

sudo_as

Specify an optional user account to execute the Cacti programs under, using sudo(8).

AUTHOR

Sebastien Aperghis-Tramoni