ucdMib

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

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

func DiskUsageOIDs

func DiskUsageOIDs(showTheseNameOnly ...NameOverride) []*GoSNMPServer.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() []*GoSNMPServer.PDUValueControlItem

MemoryOIDs Returns a list of memory operation.

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

func SetupLogger

func SetupLogger(i GoSNMPServer.ILogger)

SetupLogger Setups Logger for this mib

func SystemLoadOIDs

func SystemLoadOIDs() []*GoSNMPServer.PDUValueControlItem

SystemLoadOIDs Returns a list of system Load.

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

func SystemStatsOIDs

func SystemStatsOIDs() []*GoSNMPServer.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