From ce1507efa7c619e25a3e44ef43be1c3e6213e8b5 Mon Sep 17 00:00:00 2001 From: vpalluel Date: Mon, 9 Feb 2015 11:21:38 +0100 Subject: [PATCH] modif config-path --- apps/centreon/local/mode/retentionbroker.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/centreon/local/mode/retentionbroker.pm b/apps/centreon/local/mode/retentionbroker.pm index bc57ec1f3..4e6fb0c69 100644 --- a/apps/centreon/local/mode/retentionbroker.pm +++ b/apps/centreon/local/mode/retentionbroker.pm @@ -40,6 +40,7 @@ use base qw(centreon::plugins::mode); use strict; use warnings; use XML::LibXML; +use Data::Dumper; sub new { my ($class, %options) = @_; @@ -51,7 +52,7 @@ sub new { { "rrd-config-file:s" => { name => 'rrd_config_file', default => 'central-rrd.xml' }, "sql-config-file:s" => { name => 'sql_config_file', default => 'central-broker.xml' }, - "config-path" => { name => 'config_path', default => '/etc/centreon-broker/' }, + "config-path:s" => { name => 'config_path', default => '/etc/centreon-broker/' }, }); return $self; } @@ -59,6 +60,8 @@ sub new { sub check_options { my ($self, %options) = @_; $self->SUPER::init(%options); + print $self->{option_results}->{config_path}; + print Dumper(\$self); if ($self->{option_results}->{config_path} !~ /\/$/) { $self->{output}->add_option_msg(short_msg => "Please set the last / the path to your config-path option"); $self->{output}->option_exit();