Documentation ¶
Index ¶
- Constants
- Variables
- func Close()
- func ParseConfig(file string, log logger.ContextL) (*kt.SnmpConfig, error)
- func RunDiscoOnTimer(ctx context.Context, c chan os.Signal, log logger.ContextL, pollTimeMin int, ...)
- func StartSNMPPolls(ctx context.Context, jchfChan chan []*kt.JCHF, metrics *kt.SnmpMetricSet, ...) error
- type SnmpDiscoDeviceStat
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 ParseConfig ¶
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
}
func Discover ¶
func Discover(ctx context.Context, log logger.ContextL, pollDuration time.Duration, cfg *ktranslate.SNMPInputConfig, apic *api.KentikApi, confMgr config.ConfigManager) (*SnmpDiscoDeviceStat, error)
Click to show internal directories.
Click to hide internal directories.