Skip to content

Commit

Permalink
services
Browse files Browse the repository at this point in the history
  • Loading branch information
PipoCanaja committed Aug 5, 2024
1 parent a82ee21 commit c1b9f09
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions includes/html/functions.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -742,11 +742,13 @@ function alert_details($details)
'page' => 'device',
'device' => $tmp_alerts['device_id'],
'tab' => 'services',
'view' => 'detail',
]) .
"'>" . $tmp_alerts['service_name'] . '</a>';
$fault_detail .= ',<br>Type: ' . $tmp_alerts['service_type'];
$fault_detail .= ',<br>Param: ' . $tmp_alerts['service_param'];
$fault_detail .= ',<br>Msg: ' . $tmp_alerts['service_message'];
"'>" . ($tmp_alerts['service_name'] ?? '') . ' (' . $tmp_alerts['service_type'] . ')' . '</a>';
$fault_detail .= 'Service Host: ' . ($tmp_alerts['service_ip'] != '' ? $tmp_alerts['service_ip'] : format_hostname(DeviceCache::get($tmp_alerts['device_id']))) . ',<br>';
$fault_detail .= ($tmp_alerts['service_desc'] != '') ? ('Description: ' . $tmp_alerts['service_desc'] . ',<br>') : '';
$fault_detail .= ($tmp_alerts['service_param'] != '') ? ('Param: ' . $tmp_alerts['service_param'] . ',<br>') : '';
$fault_detail .= 'Msg: ' . $tmp_alerts['service_message'];
$fallback = false;
}

Expand Down

0 comments on commit c1b9f09

Please sign in to comment.