diff --git a/core/unifi/usg_influx.go b/core/unifi/usg_influx.go index 896b6bf9..da1242d1 100644 --- a/core/unifi/usg_influx.go +++ b/core/unifi/usg_influx.go @@ -158,6 +158,7 @@ func (u USG) Points() ([]*influx.Point, error) { "device_mac": u.Mac, "site_name": u.SiteName, "name": p.Name, + "up": p.Up.Txt, "dhcpd_dns_enabled": p.DhcpdDNSEnabled.Txt, "dhcpd_enabled": p.DhcpdEnabled.Txt, "dhcpd_ntp_enabled": p.DhcpdNtpEnabled.Txt, diff --git a/core/unifi/usg_type.go b/core/unifi/usg_type.go index 166eb5d3..7a8fa361 100644 --- a/core/unifi/usg_type.go +++ b/core/unifi/usg_type.go @@ -185,7 +185,7 @@ type USG struct { Mac string `json:"mac"` IsGuest FlexBool `json:"is_guest"` IP string `json:"ip"` - Up string `json:"up"` + Up FlexBool `json:"up"` NumSta FlexInt `json:"num_sta"` RxBytes FlexInt `json:"rx_bytes"` RxPackets FlexInt `json:"rx_packets"`