From b3206791d919397830fa554b2c63a0e06f9e1aea Mon Sep 17 00:00:00 2001 From: enriquecd Date: Mon, 19 Dec 2016 18:37:10 +0100 Subject: [PATCH] Add create_web_module and create_policy_web_module help info about valid fields #4261 --- pandora_server/util/pandora_manage.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pandora_server/util/pandora_manage.pl b/pandora_server/util/pandora_manage.pl index d1b56c5af1..5c11b3171a 100644 --- a/pandora_server/util/pandora_manage.pl +++ b/pandora_server/util/pandora_manage.pl @@ -127,7 +127,7 @@ sub help_screen{ help_screen_line('--locate_agent', '', 'Search a agent into of nodes of metaconsole. Only Enterprise.'); print "\nMODULES:\n\n" unless $param ne ''; help_screen_line('--create_data_module', " [ \n\t \n\t \n\t \n\t \n\t ]", 'Add data server module to agent'); - help_screen_line('--create_web_module', " [ \n\t \n\t \n\t \n\t \n\t ]", 'Add web server module to agent'); + help_screen_line('--create_web_module', " [ \n\t \n\t \n\t \n\t \n\t ].\n\t The valid data types are web_data, web_proc, web_content_data or web_content_string", 'Add web server module to agent'); help_screen_line('--create_network_module', " \n\t [ \n\t \n\t \n\t \n\t \n\t ]", 'Add not snmp network module to agent'); help_screen_line('--create_snmp_module', " \n\t [ \n\t \n\t \n\t \n\t \n\t \n\t \n\t ]", 'Add snmp network module to agent'); @@ -188,7 +188,7 @@ sub help_screen{ help_screen_line('--disable_policy_alerts', '', 'Disable all the alerts of a policy'); help_screen_line('--create_policy', ' '); help_screen_line('--create_policy_data_module', " [ \n\t \n\t \n\t \n\t \n\t \n\t ]", 'Add data server module to policy'); - help_screen_line('--create_policy_web_module', " [ \n\t \n\t \n\t \n\t \n\t \n\t ]", 'Add web server module to policy'); + help_screen_line('--create_policy_web_module', " [ \n\t \n\t \n\t \n\t \n\t \n\t ].\n\t The valid data types are web_data, web_proc, web_content_data or web_content_string", 'Add web server module to policy'); help_screen_line('--create_policy_network_module', " [ \n\t \n\t \n\t \n\t \n\t \n\t ]", "Add not snmp network module to policy"); help_screen_line('--create_policy_snmp_module', " \n\t [ \n\t \n\t \n\t \n\t \n\t \n\t \n\t ]", 'Add snmp network module to policy'); @@ -5341,7 +5341,7 @@ sub cli_create_policy_data_module_from_local_component() { ############################################################################## # Create policy web module from local component. -# Related option: --create_policy_data_module_from_local_component +# Related option: --create_policy_web_module_from_local_component ############################################################################## sub cli_create_policy_web_module_from_local_component() { my ($policy_name, $component_name) = @ARGV[2..3]; @@ -5352,7 +5352,7 @@ sub cli_create_policy_web_module_from_local_component() { my $lc_id = pandora_get_local_component_id($dbh, $component_name); exist_check($lc_id,'local component',$component_name); - # Get local component data + # Get local component web my $component = get_db_single_row ($dbh, 'SELECT * FROM tlocal_component WHERE id = ?', $lc_id); enterprise_hook('pandora_create_policy_web_module_from_local_component',[$conf, $component, $policy_id, $dbh]);