Set default SNMP settings for all devices in this organization. These can be overridden at the site or device level.
<.input field={@form[:snmp_version]} type="select" label="SNMP Version" prompt="Select SNMP version" options={[{"SNMP v1", "1"}, {"SNMP v2c", "2c"}, {"SNMP v3", "3"}]} /> <.input field={@form[:snmp_community]} type="text" label="SNMP Community String" placeholder="e.g., public" /><.icon name="hero-information-circle" class="h-4 w-4 inline" /> SNMP configuration hierarchy: Device > Site > Organization
<%= if @organization.snmp_community do %>Force Apply to All Device
This will override SNMP settings for ALL devices across all sites in this organization.
<.button type="button" phx-click="apply_snmp_to_all" data-confirm="This will replace SNMP settings for ALL devices in this organization. Are you sure?" variant="danger" > <.icon name="hero-arrow-path" class="h-4 w-4" /> Apply SNMP Config to All DeviceSelect a default agent for SNMP polling. This will be used for all devices in this organization unless overridden at the site or device level.
<.input field={@form[:default_agent_token_id]} type="select" label="Default Remote Agent" prompt="No default agent - cloud polling" options={Enum.map(@available_agents, &{&1.name, &1.id})} />Current Device Assignment:
<.icon name="hero-information-circle" class="h-4 w-4 inline" /> Agent assignment hierarchy: Device > Site > Organization
<%= if @organization.default_agent_token_id do %>Force Apply to All Device
This will assign the default agent to ALL devices across all sites in this organization.
<.button type="button" phx-click="apply_agent_to_all" data-confirm="This will replace agent assignments for ALL devices in this organization. Are you sure?" variant="danger" > <.icon name="hero-arrow-path" class="h-4 w-4" /> Apply Default Agent to All DeviceNo agents configured yet. <.link navigate={~p"/orgs/#{@organization.slug}/agents"} class="text-blue-600 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300" > Create an agent to enable remote polling.