mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Show the translated enterprise string by default on the SNMP console.
(cherry picked from commit b3f5e76009ef8238fb60e0469083eee9e3b68493)
This commit is contained in:
parent
77354a886e
commit
0846236dd2
@ -477,7 +477,15 @@ if ($traps !== false) {
|
||||
|
||||
//OID
|
||||
$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
|
||||
if ($group_by) {
|
||||
@ -591,13 +599,6 @@ if ($traps !== false) {
|
||||
</tr>';
|
||||
}
|
||||
|
||||
if ($trap["text"] != "") {
|
||||
$string .= '<tr>
|
||||
<td align="left" valign="top">' . '<b>' . __('Text:') . '</td>
|
||||
<td align="left">' . $trap['text'] . '</td>
|
||||
</tr>';
|
||||
}
|
||||
|
||||
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'));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user