diff --git a/lib/towerops_web/live/device_live/show.html.heex b/lib/towerops_web/live/device_live/show.html.heex index ccf78850..e05dcc0e 100644 --- a/lib/towerops_web/live/device_live/show.html.heex +++ b/lib/towerops_web/live/device_live/show.html.heex @@ -937,6 +937,67 @@ <% end %> + <%= if Map.get(@snmp_device.raw_discovery_data, "discovered_sensors") do %> +
| + Type + | ++ Description + | ++ OID + | ++ Value + | ++ State + | +
|---|---|---|---|---|
| + {sensor["type"]} + | ++ {sensor["descr"]} + | ++ {sensor["oid"]} + | +
+ {sensor["value"]}
+ <%= if sensor["unit"] && sensor["unit"] != "" do %>
+
+ {sensor["unit"]}
+
+ <% end %>
+ |
+ + <%= if sensor["state_descr"] do %> + + {sensor["state_descr"]} + + <% else %> + - + <% end %> + | +