mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add link to hosts mgmt (ipmi) interface (#14905)
* Add link to hosts mgmt (ipmi) interface * Fix Style * Fix style * Fix Lint * Update DeviceController.php Mgmt > IPMI
This commit is contained in:
@@ -200,6 +200,17 @@ class DeviceController extends Controller
|
||||
'onclick' => 'http_fallback(this); return false;',
|
||||
];
|
||||
|
||||
// IPMI
|
||||
if ($device->attribs->firstWhere('attrib_type', 'ipmi_hostname')) {
|
||||
$device_links['ipmi'] = [
|
||||
'icon' => 'fa-microchip',
|
||||
'url' => 'https://' . $device->attribs->firstWhere('attrib_type', 'ipmi_hostname')->attrib_value,
|
||||
'title' => __('IPMI'),
|
||||
'external' => true,
|
||||
'onclick' => 'http_fallback(this); return false;',
|
||||
];
|
||||
}
|
||||
|
||||
// SSH
|
||||
$ssh_url = Config::has('gateone.server')
|
||||
? Config::get('gateone.server') . '?ssh=ssh://' . (Config::get('gateone.use_librenms_user') ? Auth::user()->username . '@' : '') . $device['hostname'] . '&location=' . $device['hostname']
|
||||
|
Reference in New Issue
Block a user