Debug Status: {if @agent_token.allow_remote_debug, do: "Enabled ✓", else: "Disabled"}
<%= if @agent_token.allow_remote_debug do %> {t("Verbose logging is enabled. All SNMP data and agent messages are being logged.")} <% else %> {t( "Verbose logging is disabled. Enable it in the agent edit page to troubleshoot issues." )} <% end %>
{t("Production (kubectl):")}
kubectl logs -n towerops deployment/towerops --tail=100 | grep "agent_token_id: {@agent_token.id}"
{t("Development (tail):")}
tail -f _build/dev/lib/towerops/priv/log/dev.log | grep "{@agent_token.id}"
{t("What Gets Logged:")}
Status
<% {status, label} = agent_status(@agent_token) %>Device
{length(@polling_targets)}
{@direct_assignments} direct
Last Seen
<.timestamp datetime={@agent_token.last_seen_at} timezone={@timezone} />
<%= if @agent_token.last_seen_at do %><.timestamp datetime={@agent_token.last_seen_at} timezone={@timezone} format="absolute" />
<% end %> <%= if @agent_token.last_ip do %>{@agent_token.last_ip}
<% end %>Uptime
<%= if @agent_token.metadata["uptime_seconds"] do %>{format_uptime(@agent_token.metadata["uptime_seconds"])}
<% else %>{t("Unknown")}
<% end %>{t("Device that this agent is responsible for polling")}
{t("This agent is not currently polling any device.")}
{device.name}
<% {source, source_label} = assignment_source(device, @agent_token.id) %> {source_label}