feat(syslog): a device through Docker's address is placed by its name, or a device address set on it (#6096)
The SNMP poll asks each device's sysName in the same GET and keeps it (snmp_003_sys_name). A syslog source told apart by name finds its own address from the SNMP device (reported or given name) or host of that name, so its lines reach the SNMP device's and host's pages again; the edit page gains Device address, which always wins (syslog_004). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -30,6 +30,10 @@ class SyslogSource(Base):
|
||||
id: Mapped[str] = mapped_column(String(36), primary_key=True, default=time_ordered_id)
|
||||
address: Mapped[str] = mapped_column(String(64), nullable=False)
|
||||
sender: Mapped[str] = mapped_column(String(255), nullable=False, default="")
|
||||
# The device's own address when its lines don't come from it (through
|
||||
# Docker's): set by hand; when empty, found from an SNMP device or host
|
||||
# of the sender's name (service.device_address).
|
||||
device_address: Mapped[str] = mapped_column(String(255), nullable=False, default="")
|
||||
state: Mapped[str] = mapped_column(String(10), nullable=False, default="offered")
|
||||
name: Mapped[str] = mapped_column(String(100), nullable=False, default="")
|
||||
host_id: Mapped[str | None] = mapped_column(
|
||||
|
||||
Reference in New Issue
Block a user