smartctl

package
v0.0.0-...-a234189 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2016 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package parted extracts smartctl information on linux (hp and supermicro are handled better)

Csv output is particularly supported, so that a csvfile-based enterprise's ETL tools can also monitor its servers and desktops

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Header() string

Header is generic

func Keys_String2PtrSmartctldata

func Keys_String2PtrSmartctldata(_mp *map[string]*Smartctldata) []string

Keys_String2PtrSmartctldata is generic

func SortedKeys_String2PtrSmartctldata

func SortedKeys_String2PtrSmartctldata(_mp *map[string]*Smartctldata) []string

SortedKeys_String2PtrSmartctldata is generic

Types

type Smartctldata

type Smartctldata struct {
	Vendor_                                string
	Product_                               string
	Revision_                              string
	Usercapacity_                          string
	Logicalblocksize_                      string
	Logicalunitid_                         string
	Serialnumber_                          string
	Devicetype_                            string
	Transportprotocol_                     string
	Localtimeis_                           string
	Smarthealthstatus_                     string
	Currentdrivetemperature_               string
	Drivetriptemperature_                  string
	Specifiedcyclecountoverdevicelifetime_ string
	Accumulatedstartstopcycles_            string
	Elementsingrowndefectlist_             string
	Nonmediumerrorcount_                   string
	Errorsread_                            string
	Errorswrite_                           string
}

Smartctldata holds smartctl data

func SmartctlOne

func SmartctlOne(_df *df.Dfdata, _scsi *scsi.Scsidata, _parted *parted.Parteddata, _dmidecode *dmidecode.Dmidecodedata, _hp *hp.Hpdata, _verbose bool) *Smartctldata

SmartctlOne is a loop over smartctl controllers

func SmartctlOneHP

func SmartctlOneHP(_df *df.Dfdata, _scsi *scsi.Scsidata, _parted *parted.Parteddata, _dmidecode *dmidecode.Dmidecodedata, _verbose bool) *Smartctldata

SmartctlOneHP does one HP controller

func SmartctlOneHPDisk

func SmartctlOneHPDisk(_df *df.Dfdata, _scsi *scsi.Scsidata, _parted *parted.Parteddata, _dmidecode *dmidecode.Dmidecodedata, _verbose bool) *Smartctldata

SmartctlOneHPDisk extracts smartctl for HP

func SmartctlOneSupermicro

func SmartctlOneSupermicro(_df *df.Dfdata, _scsi *scsi.Scsidata, _parted *parted.Parteddata, _dmidecode *dmidecode.Dmidecodedata, _verbose bool) *Smartctldata

SmartctlOneSupermicro extracts smartctl for supermicro

func (*Smartctldata) Csv

func (self *Smartctldata) Csv() string

Csv is generic

func (*Smartctldata) Print

func (self *Smartctldata) Print()

Print is generic

func (*Smartctldata) Sprint

func (self *Smartctldata) Sprint() string

Sprint is generic

Jump to

Keyboard shortcuts

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