Removed the the event checkboxes
(cherry picked from commit aad9e08700
)
This commit is contained in:
parent
9512be8483
commit
f0dc044d37
|
@ -64,7 +64,6 @@ if ($editGraph) {
|
||||||
|
|
||||||
$graphInTgraph = db_get_row_sql("SELECT * FROM tgraph WHERE id_graph = " . $id);
|
$graphInTgraph = db_get_row_sql("SELECT * FROM tgraph WHERE id_graph = " . $id);
|
||||||
$stacked = $graphInTgraph['stacked'];
|
$stacked = $graphInTgraph['stacked'];
|
||||||
$events = $graphInTgraph['events'];
|
|
||||||
$period = $graphInTgraph['period'];
|
$period = $graphInTgraph['period'];
|
||||||
$width = $graphInTgraph['width'];
|
$width = $graphInTgraph['width'];
|
||||||
$height = $graphInTgraph['height'];
|
$height = $graphInTgraph['height'];
|
||||||
|
@ -129,41 +128,7 @@ echo "<td style='vertical-align: top;'>".__('Agents')."</td>";
|
||||||
echo "<td></td>";
|
echo "<td></td>";
|
||||||
echo "<td style='vertical-align: top;'>".__('Modules')."</td>";
|
echo "<td style='vertical-align: top;'>".__('Modules')."</td>";
|
||||||
echo "</tr><tr>";
|
echo "</tr><tr>";
|
||||||
// If metaconsole is activated
|
|
||||||
/*if ($config['metaconsole'] == 1) {
|
|
||||||
enterprise_include_once('include/functions_metaconsole.php');
|
|
||||||
|
|
||||||
$connection_names = enterprise_hook('metaconsole_get_connection_names');
|
|
||||||
if ($connection_names === false)
|
|
||||||
$connection_names = array();
|
|
||||||
|
|
||||||
$agents_tmp = array();
|
|
||||||
$agents = array();
|
|
||||||
|
|
||||||
foreach ($connection_names as $connection) {
|
|
||||||
$connection_data = enterprise_hook('metaconsole_get_connection', array($connection));
|
|
||||||
|
|
||||||
$connection_result = enterprise_hook('metaconsole_load_external_db', array($connection_data));
|
|
||||||
|
|
||||||
if ($connection_result == NOERR) {
|
|
||||||
$agents_tmp = agents_get_group_agents ();
|
|
||||||
|
|
||||||
if ($agents_tmp === false)
|
|
||||||
$agents_tmp = array();
|
|
||||||
|
|
||||||
foreach ($agents_tmp as $agent_key => $agent_name) {
|
|
||||||
$agents[$connection_data['server_name'] . '|' . $agent_key] = $agent_name;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
enterprise_hook('metaconsole_restore_db');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo "<td>".html_print_select ($agents, 'id_agents[]', 0, false, '', '', true, true, true, '', false, 'width:200px;')."</td>";
|
|
||||||
}
|
|
||||||
else {*/
|
|
||||||
echo "<td>".html_print_select (agents_get_group_agents(), 'id_agents[]', 0, false, '', '', true, true, true, '', false, 'width:300px;')."</td>";
|
echo "<td>".html_print_select (agents_get_group_agents(), 'id_agents[]', 0, false, '', '', true, true, true, '', false, 'width:300px;')."</td>";
|
||||||
//}
|
|
||||||
echo "<td style='vertical-align: center; text-align: center;'>" . html_print_image("images/darrowright.png", true) . "</td>";
|
echo "<td style='vertical-align: center; text-align: center;'>" . html_print_image("images/darrowright.png", true) . "</td>";
|
||||||
echo "<td>".html_print_select (array (), 'module[]', 0, false, '', 0, true, true, true, '', false, 'width:300px;')."</td>";
|
echo "<td>".html_print_select (array (), 'module[]', 0, false, '', 0, true, true, true, '', false, 'width:300px;')."</td>";
|
||||||
echo "</tr><tr>";
|
echo "</tr><tr>";
|
||||||
|
|
|
@ -58,7 +58,6 @@ if (! check_acl ($config['id_user'], 0, "RW")) {
|
||||||
if ($edit_graph) {
|
if ($edit_graph) {
|
||||||
$graphInTgraph = db_get_row_sql("SELECT * FROM tgraph WHERE id_graph = " . $id_graph);
|
$graphInTgraph = db_get_row_sql("SELECT * FROM tgraph WHERE id_graph = " . $id_graph);
|
||||||
$stacked = $graphInTgraph['stacked'];
|
$stacked = $graphInTgraph['stacked'];
|
||||||
$events = $graphInTgraph['events'];
|
|
||||||
$period = $graphInTgraph['period'];
|
$period = $graphInTgraph['period'];
|
||||||
$name = $graphInTgraph['name'];
|
$name = $graphInTgraph['name'];
|
||||||
$description = $graphInTgraph['description'];
|
$description = $graphInTgraph['description'];
|
||||||
|
@ -74,8 +73,6 @@ else {
|
||||||
$width = 550;
|
$width = 550;
|
||||||
$height = 210;
|
$height = 210;
|
||||||
$period = SECONDS_1DAY;
|
$period = SECONDS_1DAY;
|
||||||
//$alerts= "";
|
|
||||||
$events = 0;
|
|
||||||
$factor = 1;
|
$factor = 1;
|
||||||
$stacked = 0;
|
$stacked = 0;
|
||||||
}
|
}
|
||||||
|
@ -147,21 +144,6 @@ $stackeds = array(
|
||||||
html_print_select ($stackeds, 'stacked', $stacked);
|
html_print_select ($stackeds, 'stacked', $stacked);
|
||||||
echo "</td>";
|
echo "</td>";
|
||||||
|
|
||||||
echo "<tr>";
|
|
||||||
echo "<td class='datos'>";
|
|
||||||
echo "<b>".__('View events')."</b></td>";
|
|
||||||
echo "<td class='datos'>";
|
|
||||||
html_print_checkbox('events', 1, $events);
|
|
||||||
echo "</td>";
|
|
||||||
|
|
||||||
echo "<td></td><td></td>";
|
|
||||||
/*echo "<td class='datos'>";
|
|
||||||
echo "<b>".__('View alerts')."</b></td>";
|
|
||||||
echo "<td class='datos'>";
|
|
||||||
html_print_checkbox('alerts', 1, $alerts);
|
|
||||||
echo "</td>";*/
|
|
||||||
|
|
||||||
echo "</tr>";
|
|
||||||
echo "<tr><td colspan='4' align='right'>";
|
echo "<tr><td colspan='4' align='right'>";
|
||||||
if ($edit_graph) {
|
if ($edit_graph) {
|
||||||
echo "<input type=submit name='store' class='sub upd' value='".__('Update')."'>";
|
echo "<input type=submit name='store' class='sub upd' value='".__('Update')."'>";
|
||||||
|
|
|
@ -71,7 +71,6 @@ if ($add_graph) {
|
||||||
$idGroup = get_parameter_post ('graph_id_group');
|
$idGroup = get_parameter_post ('graph_id_group');
|
||||||
$width = get_parameter_post ("width");
|
$width = get_parameter_post ("width");
|
||||||
$height = get_parameter_post ("height");
|
$height = get_parameter_post ("height");
|
||||||
$events = get_parameter_post ("events");
|
|
||||||
$stacked = get_parameter ("stacked", 0);
|
$stacked = get_parameter ("stacked", 0);
|
||||||
$period = get_parameter_post ("period");
|
$period = get_parameter_post ("period");
|
||||||
|
|
||||||
|
@ -85,7 +84,6 @@ if ($add_graph) {
|
||||||
'height' => $height,
|
'height' => $height,
|
||||||
'private' => 0,
|
'private' => 0,
|
||||||
'id_group' => $idGroup,
|
'id_group' => $idGroup,
|
||||||
'events' => $events,
|
|
||||||
'stacked' => $stacked);
|
'stacked' => $stacked);
|
||||||
|
|
||||||
if (trim($name) != "") {
|
if (trim($name) != "") {
|
||||||
|
@ -112,13 +110,12 @@ if ($update_graph) {
|
||||||
$height = get_parameter('height');
|
$height = get_parameter('height');
|
||||||
$period = get_parameter('period');
|
$period = get_parameter('period');
|
||||||
$stacked = get_parameter('stacked');
|
$stacked = get_parameter('stacked');
|
||||||
$events = get_parameter('events');
|
|
||||||
$alerts = get_parameter('alerts');
|
$alerts = get_parameter('alerts');
|
||||||
|
|
||||||
if (trim($name) != "") {
|
if (trim($name) != "") {
|
||||||
|
|
||||||
$success = db_process_sql_update('tgraph',
|
$success = db_process_sql_update('tgraph',
|
||||||
array('name' => $name, 'id_group' => $id_group, 'description' => $description, 'width' => $width, 'height' => $height, 'period' => $period, 'stacked' => $stacked, 'events' => $events),
|
array('name' => $name, 'id_group' => $id_group, 'description' => $description, 'width' => $width, 'height' => $height, 'period' => $period, 'stacked' => $stacked),
|
||||||
array('id_graph' => $id_graph));
|
array('id_graph' => $id_graph));
|
||||||
if ($success !== false)
|
if ($success !== false)
|
||||||
db_pandora_audit("Report management", "Update graph #$id_graph");
|
db_pandora_audit("Report management", "Update graph #$id_graph");
|
||||||
|
|
Loading…
Reference in New Issue