ucdMib

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All() []*snmp.PDUValueControlItem

All function provides a list of common used OID in UCD-MIB

func DiskUsageOIDs

func DiskUsageOIDs(showTheseNameOnly ...NameOverride) []*snmp.PDUValueControlItem

DiskUsageOIDs Returns a list of disk usages.

Args:
    showTheseNameOnly:  what path whill this oid returns. empty means all.
see http://www.net-snmp.org/docs/mibs/ucdavis.html#DisplayString

func MemoryOIDs

func MemoryOIDs() []*snmp.PDUValueControlItem

MemoryOIDs Returns a list of memory operation.

see http://www.net-snmp.org/docs/mibs/ucdavis.html#DisplayString

func SetupLogger

func SetupLogger(i snmp.ILogger)

SetupLogger Setups Logger for this mib

func SystemLoadOIDs

func SystemLoadOIDs() []*snmp.PDUValueControlItem

SystemLoadOIDs Returns a list of system Load.

see http://www.net-snmp.org/docs/mibs/ucdavis.html#DisplayString

func SystemStatsOIDs

func SystemStatsOIDs() []*snmp.PDUValueControlItem

SystemStatsOIDs Returns a list of memory operation.

see http://www.net-snmp.org/docs/mibs/ucdavis.html#DisplayString

Types

type NameOverride

type NameOverride struct {
	// RealPath in this pc.
	RealPath string

	// ShowName indicate what will it show in oid:
	//    in currentDskPath   1.3.6.1.4.1.2021.9.1.2.xxx
	//       currentDskDevice 1.3.6.1.4.1.2021.9.1.3.xxx
	ShowName string
}

NameOverride configs what path disk usage will returns.

Jump to

Keyboard shortcuts

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