Discovery Tasks first tasks and some minor fixes

Former-commit-id: 4a37dc99f1b1a95217e9be207526d750133a14a6
This commit is contained in:
fbsanchez 2019-02-15 18:42:44 +01:00
parent a5ad61f340
commit 912f0baace
2 changed files with 5 additions and 6 deletions

View File

@ -15,17 +15,17 @@ global $config;
check_login();
ui_require_css_file('firts_task');
?>
<?php ui_print_info_message(['no_close' => true, 'message' => __('There are no recon task defined yet.') ]); ?>
<?php ui_print_info_message(['no_close' => true, 'message' => __('There are no discovery tasks defined yet.') ]); ?>
<div class="new_task">
<div class="image_task">
<?php echo html_print_image('images/firts_task/icono_grande_reconserver.png', true, ['title' => __('Discovery server')]); ?>
</div>
<div class="text_task">
<h3> <?php echo __('Create Recon Task'); ?> <p id="description_task">
<h3> <?php echo __('Create Discovery Task'); ?><p id="description_task">
<?php
echo __(
'The Recon Task definition of Pandora FMS is used to find new elements in the network.
'Discovery Task are used to find new elements in the network.
If it detects any item, it will add that item to the monitoring, and if that item it is already being monitored, then it will
ignore it or will update its information.There are three types of detection: Based on <strong id="fuerte"> ICMP </strong>(pings),
<strong id="fuerte">SNMP</strong> (detecting the topology of networks and their interfaces), and other <strong id="fuerte"> customized </strong>
@ -33,8 +33,8 @@ ui_require_css_file('firts_task');
);
?>
</p>
<form action="index.php?sec=gservers&sec2=godmode/servers/manage_recontask_form&create" method="post">
<input type="submit" class="button_task" value="<?php echo __('Create Recon Task'); ?>" />
<form action="index.php?sec=gservers&sec2=godmode/servers/discovery" method="post">
<input type="submit" class="button_task" value="<?php echo __('Discover'); ?>" />
</form>
</div>
</div>

View File

@ -168,7 +168,6 @@ class DiscoveryTaskList extends Wizard
} else {
$recon_task = db_get_all_rows_sql('SELECT * FROM trecon_task');
if ($recon_task === false) {
ui_print_page_header(__('Recon View'), 'images/op_recon.png', false, '', false);
include_once $config['homedir'].'/general/firts_task/recon_view.php';
return false;
} else {