Clusters creator main page, fix pandoradb - #1748
This commit is contained in:
parent
749bc20018
commit
cce92cc961
|
@ -1489,10 +1489,10 @@ UPDATE tsnmp_filter tsf,(SELECT @max:= @max) m SET tsf.unified_filters_id = @max
|
|||
|
||||
create table IF NOT EXISTS `tcluster`(
|
||||
`id` int unsigned not null auto_increment,
|
||||
`name` tinytext unsigned not null,
|
||||
`cluster_type` enum('AA','AP') default 'AA' unsigned not null,
|
||||
`description` text unsigned not null,
|
||||
`group` integer unsigned not null,
|
||||
`name` tinytext not null default '',
|
||||
`cluster_type` enum('AA','AP') not null default 'AA',
|
||||
`description` text not null default '',
|
||||
`group` mediumint(4) unsigned,
|
||||
PRIMARY KEY (`id`),
|
||||
FOREIGN KEY (`group`) REFERENCES tgrupo(`id_grupo`)
|
||||
ON DELETE SET NULL ON UPDATE CASCADE
|
||||
|
@ -1504,10 +1504,10 @@ create table IF NOT EXISTS `tcluster`(
|
|||
|
||||
create table IF NOT EXISTS `tcluster_item`(
|
||||
`id_cluster` int unsigned not null auto_increment,
|
||||
`name` tinytext unsigned not null,
|
||||
`item_type` enum('AA','AP') default 'AA' unsigned not null,
|
||||
`critical_limit` INTEGER unsigned NOT NULL default '0',
|
||||
`warning_limit` INTEGER unsigned NOT NULL default '0',
|
||||
`name` tinytext not null default '',
|
||||
`item_type` enum('AA','AP') not null default 'AA',
|
||||
`critical_limit` int unsigned NOT NULL default '0',
|
||||
`warning_limit` int unsigned NOT NULL default '0',
|
||||
`is_critical` tinyint(2) unsigned NOT NULL default '0',
|
||||
PRIMARY KEY (`id_cluster`)
|
||||
) engine=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
@ -1518,7 +1518,7 @@ create table IF NOT EXISTS `tcluster_item`(
|
|||
|
||||
create table IF NOT EXISTS `tcluster_agent`(
|
||||
`id_cluster` int unsigned not null auto_increment,
|
||||
`id_agent` int unsigned not null,
|
||||
`id_agent` int unsigned,
|
||||
PRIMARY KEY (`id_cluster`),
|
||||
FOREIGN KEY (`id_agent`) REFERENCES tagente(`id_agente`)
|
||||
ON DELETE SET NULL ON UPDATE CASCADE
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
<?php
|
||||
|
||||
// Pandora FMS - http://pandorafms.com
|
||||
// ==================================================
|
||||
// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
|
||||
// Please see http://pandorafms.org for full contribution list
|
||||
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; version 2
|
||||
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
|
||||
global $config;
|
||||
check_login ();
|
||||
ui_require_css_file ('firts_task');
|
||||
?>
|
||||
<?php
|
||||
|
||||
ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no clusters defined yet.') ) );
|
||||
?>
|
||||
|
||||
<div class="new_task">
|
||||
<div class="image_task">
|
||||
<?php echo html_print_image('images/firts_task/icono_grande_custom_reporting.png', true, array("title" => __('Clusters')));?>
|
||||
</div>
|
||||
<div class="text_task">
|
||||
<h3> <?php echo __('Create Cluster'); ?></h3>
|
||||
<p id="description_task"> <?php
|
||||
|
||||
echo __('A cluster is a group of devices that provide the same service in high availability.').'<br><br>';
|
||||
|
||||
echo __('Depending on how they provide that service, we can find two types:').'<br><br>';
|
||||
|
||||
echo __('<b>Clusters to balance the service load</b>: these are active - active (A/A) mode clusters. It means that all the nodes (or machines that compose it) are working. They must be working because if one stops working, it will overload the others.').'<br><br>';
|
||||
|
||||
echo __('<b>Clusters to guarantee service</b>: these are active - passive (A/P) mode clusters. It means that one of the nodes (or machines that make up the cluster) will be running (primary) and another won\'t (secondary). When the primary goes down, the secondary must take over and give the service instead. Although many of the elements of this cluster are active-passive, it will also have active elements in both of them that indicate that the passive node is "online", so that in the case of a service failure in the master, the active node collects this information.');
|
||||
|
||||
?></p>
|
||||
<form action="index.php?sec=reporting&sec2=godmode/reporting/graph_builder" method="post">
|
||||
<input type="submit" class="button_task" value="<?php echo __('Create Cluster'); ?>" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
|
@ -3035,10 +3035,10 @@ CREATE TABLE IF NOT EXISTS `treset_pass` (
|
|||
|
||||
create table IF NOT EXISTS `tcluster`(
|
||||
`id` int unsigned not null auto_increment,
|
||||
`name` tinytext unsigned not null,
|
||||
`cluster_type` enum('AA','AP') default 'AA' unsigned not null,
|
||||
`description` text unsigned not null,
|
||||
`group` integer unsigned not null,
|
||||
`name` tinytext not null default '',
|
||||
`cluster_type` enum('AA','AP') not null default 'AA',
|
||||
`description` text not null default '',
|
||||
`group` mediumint(4) unsigned,
|
||||
PRIMARY KEY (`id`),
|
||||
FOREIGN KEY (`group`) REFERENCES tgrupo(`id_grupo`)
|
||||
ON DELETE SET NULL ON UPDATE CASCADE
|
||||
|
@ -3050,10 +3050,10 @@ create table IF NOT EXISTS `tcluster`(
|
|||
|
||||
create table IF NOT EXISTS `tcluster_item`(
|
||||
`id_cluster` int unsigned not null auto_increment,
|
||||
`name` tinytext unsigned not null,
|
||||
`item_type` enum('AA','AP') default 'AA' unsigned not null,
|
||||
`critical_limit` INTEGER unsigned NOT NULL default '0',
|
||||
`warning_limit` INTEGER unsigned NOT NULL default '0',
|
||||
`name` tinytext not null default '',
|
||||
`item_type` enum('AA','AP') not null default 'AA',
|
||||
`critical_limit` int unsigned NOT NULL default '0',
|
||||
`warning_limit` int unsigned NOT NULL default '0',
|
||||
`is_critical` tinyint(2) unsigned NOT NULL default '0',
|
||||
PRIMARY KEY (`id_cluster`)
|
||||
) engine=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
@ -3064,8 +3064,9 @@ create table IF NOT EXISTS `tcluster_item`(
|
|||
|
||||
create table IF NOT EXISTS `tcluster_agent`(
|
||||
`id_cluster` int unsigned not null auto_increment,
|
||||
`id_agent` int unsigned not null,
|
||||
`id_agent` int unsigned,
|
||||
PRIMARY KEY (`id_cluster`),
|
||||
FOREIGN KEY (`id_agent`) REFERENCES tagente(`id_agente`)
|
||||
ON DELETE SET NULL ON UPDATE CASCADE
|
||||
) engine=InnoDB DEFAULT CHARSET=utf8;
|
||||
) engine=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
|
Loading…
Reference in New Issue