mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Change module data insert - #1748
This commit is contained in:
parent
1918520ede
commit
b208651bb0
@ -81,7 +81,7 @@ if ($add_cluster) {
|
||||
'prediction_module' => 5,
|
||||
'id_agente' =>$id_agent,
|
||||
'custom_integer_1' =>$id_cluster,
|
||||
'id_tipo_modulo' => 3,
|
||||
'id_tipo_modulo' => 1,
|
||||
'descripcion' => 'Cluster status information module',
|
||||
'min_warning' => 1,
|
||||
'min_critical' => 2
|
||||
@ -199,10 +199,10 @@ elseif ($step == 3) {
|
||||
'parent_module_id' => $id_parent_modulo[0]['id_agente_modulo'],
|
||||
'custom_integer_1' =>$id_cluster,
|
||||
'custom_integer_2' =>$tcluster_module,
|
||||
'id_tipo_modulo' =>$get_module_type_value,
|
||||
'id_tipo_modulo' =>1,
|
||||
'descripcion' => $get_module_description_value,
|
||||
'min_warning' => $get_module_warning_value,
|
||||
'min_critical' => $get_module_critical_value
|
||||
'min_warning' => 0,
|
||||
'min_critical' => 0
|
||||
);
|
||||
|
||||
|
||||
@ -333,6 +333,24 @@ elseif ($step == 3) {
|
||||
$get_module_warning_value = $get_module_type[0]['min_warning'];
|
||||
|
||||
$get_module_critical_value = $get_module_type[0]['min_critical'];
|
||||
|
||||
$get_module_type_nombre = db_process_sql('select nombre from ttipo_modulo where id_tipo = '.$get_module_type_value);
|
||||
|
||||
$get_module_type_nombre_value = $get_module_type_nombre[0]['nombre'];
|
||||
|
||||
|
||||
if(strpos($get_module_type_nombre_value,'inc') != false){
|
||||
$get_module_type_value_normal = 4;
|
||||
}
|
||||
elseif (strpos($get_module_type_nombre_value,'proc') != false) {
|
||||
$get_module_type_value_normal = 2;
|
||||
}
|
||||
elseif (strpos($get_module_type_nombre_value,'data') != false) {
|
||||
$get_module_type_value_normal = 1;
|
||||
}
|
||||
elseif (strpos($get_module_type_nombre_value,'string') != false) {
|
||||
$get_module_type_value_normal = 3;
|
||||
};
|
||||
|
||||
$values_module = array(
|
||||
'nombre' => $value,
|
||||
@ -342,7 +360,7 @@ elseif ($step == 3) {
|
||||
'parent_module_id' => $id_parent_modulo[0]['id_agente_modulo'],
|
||||
'custom_integer_1' => $id_cluster,
|
||||
'custom_integer_2' => $tcluster_balanced_module,
|
||||
'id_tipo_modulo' => $get_module_type_value,
|
||||
'id_tipo_modulo' => $get_module_type_value_normal,
|
||||
'descripcion' => $get_module_description_value,
|
||||
'min_warning' => $get_module_warning_value,
|
||||
'min_critical' => $get_module_critical_value
|
||||
|
@ -34,16 +34,22 @@ ui_print_page_header ( __("Cluster detail").' » '.clusters_get_name($id_cluster
|
||||
echo "<table style='width:100%;'>";
|
||||
echo "<tr>";
|
||||
|
||||
echo "<td style='border:1px solid black;min-width:600px;min-height:500px;vertical-align: top;width:55%';>";
|
||||
echo "<div id='cluster_map' style='min-width:600px;width:100%;height:500px;'></div>";
|
||||
echo "<td style='border:1px solid black;min-width:800px;min-height:500px;vertical-align: top;width:55%';>";
|
||||
echo "<div id='cluster_map' style='min-width:800px;width:100%;height:500px;'></div>";
|
||||
echo "</td>";
|
||||
|
||||
echo "<td style='width:45%;min-width:390px;min-height:500px;vertical-align: top;background-color:blue;'>";
|
||||
|
||||
|
||||
|
||||
echo "<div style='margin-left:auto;margin-right:auto;left:0;right:0;'>";
|
||||
|
||||
|
||||
// echo "<div style='width:100%;height:500px;background-color:green;padding-left:auto;padding-right:auto;position:relative;left:0px;'>";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
echo "<div style='width:50%;min-width:390px;max-width:390px;background-color:lightblue;float:left;'>";
|
||||
|
||||
echo "<div style='float:left;width:100px;margin-left:20px;margin-top:25px;font-size:2em;text-align:center;'>".__('CLUSTER STATUS')."</div>";
|
||||
@ -142,9 +148,9 @@ echo "<div style='margin-left:auto;margin-right:auto;left:0;right:0;'>";
|
||||
echo "</div>";
|
||||
|
||||
echo "</div>";
|
||||
|
||||
|
||||
echo "</div>";
|
||||
|
||||
|
||||
|
||||
echo "<div style='width:50%;min-width:390px;max-width:390px;background-color:red;float:left;'>";
|
||||
|
||||
@ -187,8 +193,7 @@ echo "<div style='margin-left:auto;margin-right:auto;left:0;right:0;'>";
|
||||
|
||||
echo "</div>";
|
||||
|
||||
|
||||
echo "</div>";
|
||||
// echo "</div>";
|
||||
|
||||
echo "<div style='width:100%;height:140px;min-width:390px;background-color:orange;float:left;margin-top:50px;'>";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user