snmp

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RemoveTimeBuffer = -1 * 15 * 60 * time.Second // This is a 15 min buffer time on removing a device which isn't seen.
)

Variables

View Source
var (
	ServiceName = ""
)

Functions

func Close

func Close()

func ParseConfig

func ParseConfig(file string, log logger.ContextL) (*kt.SnmpConfig, error)

Public wrapper for calling this other places.

func RunDiscoOnTimer

func RunDiscoOnTimer(ctx context.Context, c chan os.Signal, log logger.ContextL, pollTimeMin int, checkNow bool, cfg *ktranslate.SNMPInputConfig, apic *api.KentikApi, confMgr config.ConfigManager)

func StartSNMPPolls

func StartSNMPPolls(ctx context.Context, jchfChan chan []*kt.JCHF, metrics *kt.SnmpMetricSet, registry go_metrics.Registry, apic *api.KentikApi, log logger.ContextL, cfg *ktranslate.SNMPInputConfig, resolv *resolv.Resolver, confMgr config.ConfigManager) error

Types

type SnmpDiscoDeviceStat

type SnmpDiscoDeviceStat struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis
apc
x

Jump to

Keyboard shortcuts

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