From e9b13aa873554e11ae0dca36e4bd6b585a19ea4b Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Wed, 28 Jan 2026 17:29:30 -0600 Subject: [PATCH] fix agent discovery --- lib/towerops_web/channels/agent_channel.ex | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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,