agent debug improvements
This commit is contained in:
parent
3f3df5938d
commit
3250989d79
2 changed files with 3 additions and 5 deletions
|
|
@ -71,8 +71,8 @@ defmodule Towerops.Snmp.AgentDiscovery do
|
|||
Logger.error(
|
||||
"Agent collected 0 OIDs for #{device.name} (#{device.ip_address})",
|
||||
device_id: device.id,
|
||||
troubleshooting:
|
||||
"Agent couldn't collect SNMP data. Check: 1) Device reachable from agent network (ping #{device.ip_address}), 2) SNMP enabled on device, 3) Firewall allows UDP port #{device.snmp_port || 161}, 4) Community string '#{obscure_community(device)}' correct, 5) SNMP version matches device configuration"
|
||||
snmp_port: device.snmp_port || 161,
|
||||
community: obscure_community(device)
|
||||
)
|
||||
|
||||
{:error, :agent_collected_no_data}
|
||||
|
|
|
|||
|
|
@ -188,9 +188,7 @@ defmodule Towerops.Snmp.DeferredDiscovery do
|
|||
version: version,
|
||||
community: String.slice(community, 0..3) <> "***",
|
||||
adapter: inspect(adapter),
|
||||
error: inspect(reason),
|
||||
troubleshooting:
|
||||
"Check: 1) Device reachable (ping #{ip}), 2) SNMP enabled on device, 3) Firewall allows UDP #{port}, 4) Community string correct, 5) SNMP version matches"
|
||||
error: inspect(reason)
|
||||
)
|
||||
|
||||
:unresponsive
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue