Show the translated enterprise string by default on the SNMP console.
(cherry picked from commit b3f5e76009
)
This commit is contained in:
parent
77354a886e
commit
0846236dd2
|
@ -477,7 +477,15 @@ if ($traps !== false) {
|
||||||
|
|
||||||
//OID
|
//OID
|
||||||
$table->cellclass[$idx][2] = get_priority_class ($severity);
|
$table->cellclass[$idx][2] = get_priority_class ($severity);
|
||||||
$data[2] = '<a href="javascript: toggleVisibleExtendedInfo(' . $trap["id_trap"] . ');">' . (empty($trap["oid"]) ? __('N/A') : $trap["oid"]) .'</a>';
|
if (! empty($trap["text"])) {
|
||||||
|
$enterprise_string = $trap["text"];
|
||||||
|
} else if (! empty($trap["oid"])) {
|
||||||
|
$enterprise_string = $trap["oid"];
|
||||||
|
} else {
|
||||||
|
$enterprise_string = __('N/A');
|
||||||
|
}
|
||||||
|
|
||||||
|
$data[2] = '<a href="javascript: toggleVisibleExtendedInfo(' . $trap["id_trap"] . ');">' . $enterprise_string .'</a>';
|
||||||
|
|
||||||
//Count
|
//Count
|
||||||
if ($group_by) {
|
if ($group_by) {
|
||||||
|
@ -591,13 +599,6 @@ if ($traps !== false) {
|
||||||
</tr>';
|
</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($trap["text"] != "") {
|
|
||||||
$string .= '<tr>
|
|
||||||
<td align="left" valign="top">' . '<b>' . __('Text:') . '</td>
|
|
||||||
<td align="left">' . $trap['text'] . '</td>
|
|
||||||
</tr>';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($trap["type"] != "") {
|
if ($trap["type"] != "") {
|
||||||
$trap_types = array(-1 => __('None'), 0 => __('Cold start (0)'), 1 => __('Warm start (1)'), 2 => __('Link down (2)'), 3 => __('Link up (3)'), 4 => __('Authentication failure (4)'), 5 => __('Other'));
|
$trap_types = array(-1 => __('None'), 0 => __('Cold start (0)'), 1 => __('Warm start (1)'), 2 => __('Link down (2)'), 3 => __('Link up (3)'), 4 => __('Authentication failure (4)'), 5 => __('Other'));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue