Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions www/modules/Discovery/include/results.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ function getListHost() {
// Ajout macros
}
$tmpConf["host"]["host_snmp_version"] = $hostInfos["snmp_version"];
$tmpConf["host"]["host_register"]["host_register"] = "1";
$tmpConf["host"]["host_activate"]["host_activate"] = "1";
$tmpConf["host"]["host_register"] = "1";
$tmpConf["host"]["host_activate"] = "1";
$tmpConf["host"]["host_template_model_htm_id"] = $_POST["select_template".$host];
if ($_POST["select_group".$host]!= -1)
{
Expand Down Expand Up @@ -478,4 +478,4 @@ function setScanValues(){

<script type="text/javascript">
updateNameBox('ALL');
</script>
</script>
12 changes: 6 additions & 6 deletions www/modules/Discovery/sql/install.sql
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
--
-- Insertion des pages du module Centreon Discovery
INSERT INTO `topology` (`topology_id`, `topology_name`, `topology_icone`, `topology_parent`, `topology_page`, `topology_order`, `topology_group`, `topology_url`, `topology_url_opt`, `topology_popup`, `topology_modules`, `topology_show`)
VALUES ('', 'Centreon Discovery', NULL, 6, 612, 100, 1, './modules/Discovery/include/ips.php', NULL, '0', '1', '1') ,
('', 'IP addresses', './img/icones/16x16/client_network.gif', 612, 61201, 1, 1, './modules/Discovery/include/ips.php', NULL, '0', '1', '1') ,
('', 'Results', './img/icones/16x16/column.gif', 612, 61202, 101, 1, './modules/Discovery/include/results.php', NULL, '0', '1', '1') ,
('', 'Configuration', './img/icones/16x16/gear.gif', 612, 61203, 102, 1, './modules/Discovery/include/configuration.php', NULL, '0', '1', '1') ,
('', 'About', './img/icones/16x16/about.gif', 612, 61204, 103, 1, './modules/Discovery/include/informations.php', NULL, '0', '1', '1');
VALUES (NULL, 'Centreon Discovery', NULL, 6, 612, 100, 1, './modules/Discovery/include/ips.php', NULL, '0', '1', '1') ,
(NULL, 'IP addresses', 612, 61201, 1, 1, './modules/Discovery/include/ips.php', NULL, '0', '1', '1') ,
(NULL, 'Results', 612, 61202, 101, 1, './modules/Discovery/include/results.php', NULL, '0', '1', '1') ,
(NUL, 'Configuration', 612, 61203, 102, 1, './modules/Discovery/include/configuration.php', NULL, '0', '1', '1') ,
(NULL, 'About', 612, 61204, 103, 1, './modules/Discovery/include/informations.php', NULL, '0', '1', '1');


-- DATABASE : @DB_NAME_CENTREON@
Expand Down Expand Up @@ -128,4 +128,4 @@ CREATE TABLE IF NOT EXISTS `mod_discovery_config` (
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

INSERT INTO `@DB_NAME_CENTREON@`.`mod_discovery_config` (`host_exists_color`, `ip_exists_color`, `host_missing_color`, `consider_fqdn`) VALUES
('#008000', '#ffa500', '#ff0000', '1');
('#008000', '#ffa500', '#ff0000', '1');