mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Alerts - Add features + serial in alerts-> table (#10747)
* Alerts - Add features + serial for device * doc
This commit is contained in:
@@ -93,6 +93,8 @@ class RunAlerts
|
||||
$obj['ip'] = inet6_ntop($device['ip']);
|
||||
$obj['hardware'] = $device['hardware'];
|
||||
$obj['version'] = $device['version'];
|
||||
$obj['serial'] = $device['serial'];
|
||||
$obj['features'] = $device['features'];
|
||||
$obj['location'] = $device['location'];
|
||||
$obj['uptime'] = $device['uptime'];
|
||||
$obj['uptime_short'] = Time::formatInterval($device['uptime'], 'short');
|
||||
|
@@ -51,15 +51,17 @@ been up for 30344 seconds`.
|
||||
- OS of the Device: `$alert->os`
|
||||
- Type of Device: `$alert->type`
|
||||
- IP of the Device: `$alert->ip`
|
||||
- hardware of the Device: `$alert->hardware`
|
||||
- Hardware of the Device: `$alert->hardware`
|
||||
- Software version of the Device: `$alert->version`
|
||||
- location of the Device: `$alert->location`
|
||||
- Features of the Device: `$alert->features`
|
||||
- Serial number of the Device: `$alert->serial`
|
||||
- Location of the Device: `$alert->location`
|
||||
- uptime of the Device (in seconds): `$alert->uptime`
|
||||
- short uptime of the Device (28d 22h 30m 7s): `$alert->uptime_short`
|
||||
- long uptime of the Device (28 days, 22h 30m 7s): `$alert->uptime_long`
|
||||
- description (purpose db field) of the Device: `$alert->description`
|
||||
- notes of the Device: `$alert->notes`
|
||||
- notes of the alert (ack notes): `$alert->alert_notes`
|
||||
- Short uptime of the Device (28d 22h 30m 7s): `$alert->uptime_short`
|
||||
- Long uptime of the Device (28 days, 22h 30m 7s): `$alert->uptime_long`
|
||||
- Description (purpose db field) of the Device: `$alert->description`
|
||||
- Notes of the Device: `$alert->notes`
|
||||
- Notes of the alert (ack notes): `$alert->alert_notes`
|
||||
- ping timestamp (if icmp enabled): `$alert->ping_timestamp`
|
||||
- ping loss (if icmp enabled): `$alert->ping_loss`
|
||||
- ping min (if icmp enabled): `$alert->ping_min`
|
||||
|
Reference in New Issue
Block a user