cntlr

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const VersionAffectedRaid1 = "2.62"

Note: Always validate IsAffected() when changing values here!!

View Source
const VersionFixed = "2.65"

Variables

View Source
var AffectedModelList = []*AffectedModel{
	{"e208i-p"},
	{"e208i-a"},
	{"e208i-c"},
	{"e208e-p"},
	{"p204i-b"},
	{"p204i-c"},
	{"p408i-p"},
	{"p408i-a"},
	{"p408e-p"},
	{"p408i-c"},
	{"p408e-m"},
	{"p416ie-m"},
	{"p816i-a"},
	{"p408i-sb"},
}

AffectedModelList list of model numbers for controllers

View Source
var AffectedModels = AffectedIndex{}
View Source
var VersionAffectedRaid5 = []string{"1.98", "1.99", "2.02", "2.03"}

Functions

func IsAffected

func IsAffected(firmware string) (int, string)

IsAffected validates the given version against known affected versions. Note: we can't validate against existing logical drives at the moment

Types

type AffectedIndex

type AffectedIndex map[string]*AffectedModel

type AffectedModel

type AffectedModel struct {
	Model string
}

type Controller

type Controller struct {
	ID     string
	Model  string
	FwRev  string
	Serial string
	Status string
}

func GetControllersFromTable

func GetControllersFromTable(t *CpqDaCntlrTable) ([]*Controller, error)

func NewControllerFromTable

func NewControllerFromTable(t *CpqDaCntlrTable, id string) (*Controller, error)

func (*Controller) GetNagiosStatus

func (d *Controller) GetNagiosStatus() (int, string)

GetNagiosStatus validates the Controller's data against the known models in this plugin.

type CpqDaCntlrTable

type CpqDaCntlrTable struct {
	Snmp *snmp.Table
}

func GetCpqDaCntlrTable

func GetCpqDaCntlrTable(client gosnmp.Handler) (*CpqDaCntlrTable, error)

func (*CpqDaCntlrTable) GetIntValue

func (t *CpqDaCntlrTable) GetIntValue(id string, oid string) (int, error)

func (*CpqDaCntlrTable) GetStringValue

func (t *CpqDaCntlrTable) GetStringValue(id string, oid string) (string, error)

func (*CpqDaCntlrTable) GetUintValue

func (t *CpqDaCntlrTable) GetUintValue(id string, oid string) (uint, error)

func (*CpqDaCntlrTable) GetValue

func (t *CpqDaCntlrTable) GetValue(id string, oid string) (interface{}, error)

func (*CpqDaCntlrTable) ListIds

func (t *CpqDaCntlrTable) ListIds() []string

type VersionInfo

type VersionInfo struct {
	Affected string
	Fixed    string
}

Jump to

Keyboard shortcuts

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