help message for migrate tool

This commit is contained in:
fbsanchez 2017-09-07 10:19:38 +02:00
parent 06ff6d85ee
commit bb41da5ed4

View File

@ -18,6 +18,15 @@ use IO::Socket::INET;
use File::Copy; use File::Copy;
my $HELP=<<EO_HELP;
Pandora FMS log migration tool (c) Artica ST
Usage $0 /etc/pandora/pandora_server.conf
EO_HELP
######################################################################## ########################################################################
# Migrate log data # Migrate log data
######################################################################## ########################################################################
@ -111,6 +120,12 @@ sub recursive_file_apply {
my %pa_config; my %pa_config;
if ($#ARGV < 0) {
print STDERR $HELP;
exit 1;
}
pandora_init(\%pa_config, 'Pandora FMS log migration tool'); pandora_init(\%pa_config, 'Pandora FMS log migration tool');
pandora_load_config (\%pa_config); pandora_load_config (\%pa_config);