chrony

package
v3.11.0-beta3+incompat... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// This cannot be multi instance until there is a way to differentiate them
	// in collectd
	config.MonitorConfig `singleInstance:"true"`

	// The hostname of the chronyd instance
	Host string `yaml:"host" validate:"required" default:"localhost"`
	// The UDP port number of the chronyd instance.  Defaults to 323 in
	// collectd if unspecified.
	Port *uint16 `yaml:"port"`
	// How long to wait for a response from chronyd before considering it down.
	// Defaults to 2 seconds in the collectd plugin if not specified
	Timeout *uint `yaml:"timeout"`
}

Config is the monitor-specific config with the generic config embedded

type Monitor

type Monitor struct {
	collectd.MonitorCore
}

Monitor is the main type that represents the monitor

func (*Monitor) Configure

func (m *Monitor) Configure(conf *Config) error

Configure configures and runs the plugin in collectd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL