snmp

package
v0.0.0-...-395cb8e Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package snmp contains the SNMP corecheck integration

Index

Constants

View Source
const (
	// CheckName is the name of the check
	CheckName = common.SnmpIntegrationName
)

Variables

This section is empty.

Functions

func Factory

func Factory(agentConfig config.Component) optional.Option[func() check.Check]

Factory creates a new check factory

Types

type Check

type Check struct {
	core.CheckBase
	// contains filtered or unexported fields
}

Check aggregates metrics from one Check instance

func (*Check) Cancel

func (c *Check) Cancel()

Cancel is called when check is unscheduled

func (*Check) Configure

func (c *Check) Configure(senderManager sender.SenderManager, integrationConfigDigest uint64, rawInstance integration.Data, rawInitConfig integration.Data, source string) error

Configure configures the snmp checks

func (*Check) GetDiagnoses

func (c *Check) GetDiagnoses() ([]diagnosis.Diagnosis, error)

GetDiagnoses collects diagnoses for diagnose CLI

func (*Check) Interval

func (c *Check) Interval() time.Duration

Interval returns the scheduling time for the check

func (*Check) Run

func (c *Check) Run() error

Run executes the check

Directories

Path Synopsis
internal
common
Package common contains constants and basic structures used in snmp integration
Package common contains constants and basic structures used in snmp integration
configvalidation
Package configvalidation contains validation and enrichment functions
Package configvalidation contains validation and enrichment functions
profile
Package profile contains profile related code
Package profile contains profile related code
report
Package report is a package that reports metrics for the device check
Package report is a package that reports metrics for the device check
Package status contains the SNMP Profiles status provider
Package status contains the SNMP Profiles status provider

Jump to

Keyboard shortcuts

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