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 ¶
- func Header() string
- func Keys_String2PtrSmartctldata(_mp *map[string]*Smartctldata) []string
- func SortedKeys_String2PtrSmartctldata(_mp *map[string]*Smartctldata) []string
- type Smartctldata
- func SmartctlOne(_df *df.Dfdata, _scsi *scsi.Scsidata, _parted *parted.Parteddata, ...) *Smartctldata
- func SmartctlOneHP(_df *df.Dfdata, _scsi *scsi.Scsidata, _parted *parted.Parteddata, ...) *Smartctldata
- func SmartctlOneHPDisk(_df *df.Dfdata, _scsi *scsi.Scsidata, _parted *parted.Parteddata, ...) *Smartctldata
- func SmartctlOneSupermicro(_df *df.Dfdata, _scsi *scsi.Scsidata, _parted *parted.Parteddata, ...) *Smartctldata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.