2012-08-30 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/planned_downtime.editor.php: fixed thw added agents without modules in Quiet mode. * godmode/agentes/planned_downtime.list.php: fixing some things like as the link to stop. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6924 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
93f7d26d67
commit
f479d3c6d3
|
@ -1,3 +1,11 @@
|
|||
2012-08-30 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* godmode/agentes/planned_downtime.editor.php: fixed thw added
|
||||
agents without modules in Quiet mode.
|
||||
|
||||
* godmode/agentes/planned_downtime.list.php: fixing some things like
|
||||
as the link to stop.
|
||||
|
||||
2012-08-30 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* include/functions_graph.php
|
||||
|
|
|
@ -117,7 +117,7 @@ if ($insert_downtime_agent == 1) {
|
|||
$all_modules = true;
|
||||
else {
|
||||
//It is empty.
|
||||
if ($module_names[0] === 0)
|
||||
if ($module_names[0] == "0")
|
||||
$all_modules = true;
|
||||
}
|
||||
|
||||
|
@ -330,7 +330,7 @@ if ($id_downtime > 0) {
|
|||
$table->data[3][0] = __('Type');
|
||||
$table->data[3][1] = html_print_select(array('quiet' => __('Quiet'),
|
||||
'disable_agents' => __('Disabled Agents'),
|
||||
'disable_agents_alerts' => __('Disabled Agents and Alerts')),
|
||||
'disable_agents_alerts' => __('Disabled only Alerts')),
|
||||
'type_downtime', $type_downtime, '', '', 0, true, false, true,
|
||||
'', $disabled_type);
|
||||
$table->data[4][0] = __('Execution');
|
||||
|
|
|
@ -104,7 +104,7 @@ else {
|
|||
|
||||
$type_text = array('quiet' => __('Quiet'),
|
||||
'disable_agents' => __('Disabled Agents'),
|
||||
'disable_agents_alerts' => __('Disabled Agents and Alerts'));
|
||||
'disable_agents_alerts' => __('Disabled only Alerts'));
|
||||
|
||||
$data[3] = $type_text[$downtime['type_downtime']];
|
||||
|
||||
|
@ -182,7 +182,7 @@ else {
|
|||
$data[8] = html_print_image ("images/pixel_red.png", true, array ('width' => 20, 'height' => 20, 'alt' => __('Not executed')));
|
||||
|
||||
if ($downtime["executed"] != 0) {
|
||||
$data[9] = '<a href="index.php?sec=gagente&sec2=godmode/agentes/planned_downtime&stop_downtime=1&id_downtime='.$downtime['id'].'">' .
|
||||
$data[9] = '<a href="index.php?sec=gagente&sec2=godmode/agentes/planned_downtime.list&stop_downtime=1&id_downtime='.$downtime['id'].'">' .
|
||||
html_print_image("images/cancel.png", true, array("border" => '0', "alt" => __('Stop downtime')));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue