Skip to content

Commit

Permalink
Update plugins/outputs/zabbix/zabbix.go
Browse files Browse the repository at this point in the history
Co-authored-by: Sven Rebhan <36194019+srebhan@users.noreply.github.com>
  • Loading branch information
adrianlzt and srebhan authored Aug 31, 2023
1 parent 44aae37 commit 43a1c70
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions plugins/outputs/zabbix/zabbix.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,18 @@ type Zabbix struct {
AgentActive bool `toml:"agent_active"`
Prefix string `toml:"prefix"`
SkipMeasurementPrefix bool `toml:"skip_measurement_prefix"`

LLDSendInterval config.Duration `toml:"lld_send_interval"`
LLDClearInterval config.Duration `toml:"lld_clear_interval"`
Autoregister string `toml:"autoregister"`
AutoregisterResendInterval config.Duration `toml:"autoregister_resend_interval"`
Log telegraf.Logger `toml:"-"`

// lldHandler handles low level discovery data
lldHandler zabbixLLD
// lldLastSend store the last LLD send to known where to send it again
lldLastSend time.Time

Autoregister string `toml:"autoregister"`
AutoregisterResendInterval config.Duration `toml:"autoregister_resend_interval"`
// autoregisterLastSend stores the last time autoregister data was sent to Zabbix for each host.
autoregisterLastSend map[string]time.Time

Log telegraf.Logger `toml:"-"`

// sender is the interface to send data to Zabbix.
sender zabbixSender
}
Expand Down

0 comments on commit 43a1c70

Please sign in to comment.