Documentation
¶
Index ¶
- Constants
- Variables
- func IsAffected(firmware string) (int, string)
- type AffectedIndex
- type AffectedModel
- type Controller
- type CpqDaCntlrTable
- func (t *CpqDaCntlrTable) GetIntValue(id string, oid string) (int, error)
- func (t *CpqDaCntlrTable) GetStringValue(id string, oid string) (string, error)
- func (t *CpqDaCntlrTable) GetUintValue(id string, oid string) (uint, error)
- func (t *CpqDaCntlrTable) GetValue(id string, oid string) (interface{}, error)
- func (t *CpqDaCntlrTable) ListIds() []string
- type VersionInfo
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 ¶
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 ¶
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 ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.