diff --git a/lib/towerops_web/channels/agent_channel.ex b/lib/towerops_web/channels/agent_channel.ex index 048536cf..878fd339 100644 --- a/lib/towerops_web/channels/agent_channel.ex +++ b/lib/towerops_web/channels/agent_channel.ex @@ -293,6 +293,20 @@ defmodule ToweropsWeb.AgentChannel do # ifXTable oids: ["1.3.6.1.2.1.31.1.1.1"] }, + # Sensor discovery - ENTITY-SENSOR-MIB (WALK) + %SnmpQuery{ + query_type: :WALK, + oids: [ + # ENTITY-SENSOR-MIB - sensor tables + "1.3.6.1.2.1.99.1.1.1", + # ENTITY-MIB - physical entity descriptions (needed for sensor names) + "1.3.6.1.2.1.47.1.1.1.1.2", + # entPhysicalName + "1.3.6.1.2.1.47.1.1.1.1.7", + # entPhysicalClass + "1.3.6.1.2.1.47.1.1.1.1.5" + ] + }, # Vendor-specific MIBs (WALK) %SnmpQuery{ query_type: :WALK,