2009-02-04 Ramon Novoa <rnovoa@artica.es>
* include/functions_db.php, godmode/snmpconsole/snmp_alert.php: Fixed SNMP alerts. * operation/snmpconsole/snmp_view.php: Show Custom OID as a tooltip. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1424 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
e7db8d22d2
commit
6965af931f
|
@ -1,3 +1,10 @@
|
||||||
|
2009-02-04 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
|
* include/functions_db.php,
|
||||||
|
godmode/snmpconsole/snmp_alert.php: Fixed SNMP alerts.
|
||||||
|
|
||||||
|
* operation/snmpconsole/snmp_view.php: Show Custom OID as a tooltip.
|
||||||
|
|
||||||
2009-02-04 Esteban Sanchez <estebans@artica.es>
|
2009-02-04 Esteban Sanchez <estebans@artica.es>
|
||||||
|
|
||||||
* general/main_menu.php: The menu has been rewritten to be more
|
* general/main_menu.php: The menu has been rewritten to be more
|
||||||
|
|
|
@ -148,13 +148,13 @@ if (isset ($_GET["update_alert"])) {
|
||||||
echo '<tr><td class="datos">'.__('Alert type').'</td><td class="datos">';
|
echo '<tr><td class="datos">'.__('Alert type').'</td><td class="datos">';
|
||||||
|
|
||||||
$fields = array ();
|
$fields = array ();
|
||||||
$result = get_db_all_rows_in_table ("talerta", "nombre");
|
$result = get_db_all_rows_in_table ("talert_templates", "name");
|
||||||
if ($result === false) {
|
if ($result === false) {
|
||||||
$result = array ();
|
$result = array ();
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($result as $row) {
|
foreach ($result as $row) {
|
||||||
$fields[$row["id_alerta"]] = $row["nombre"];
|
$fields[$row["id"]] = $row["name"];
|
||||||
}
|
}
|
||||||
|
|
||||||
print_select ($fields, "alert_type", $alert_type, '', '', '0', false, false, false);
|
print_select ($fields, "alert_type", $alert_type, '', '', '0', false, false, false);
|
||||||
|
|
|
@ -511,7 +511,7 @@ function get_agent_name ($id_agent, $case = "upper") {
|
||||||
* @return string Type name of the alert.
|
* @return string Type name of the alert.
|
||||||
*/
|
*/
|
||||||
function get_alert_type ($id_type) {
|
function get_alert_type ($id_type) {
|
||||||
return (string) get_db_value ('nombre', 'talerta', 'id_alerta', (int) $id_type);
|
return (string) get_db_value ('name', 'talert_templates', 'id', (int) $id_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -309,7 +309,7 @@ foreach ($traps as $trap) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//Custom
|
//Custom
|
||||||
$data[4] = $trap["value_custom"];
|
$data[4] = '<span title="' . $trap["oid_custom"] . '">' . $trap["value_custom"] . '</span>';
|
||||||
|
|
||||||
if (empty ($data[4])) {
|
if (empty ($data[4])) {
|
||||||
$data[4] = __('N/A');
|
$data[4] = __('N/A');
|
||||||
|
|
Loading…
Reference in New Issue