Documentation ¶
Index ¶
- Variables
- func BmcInfoRun() ([]byte, error)
- func BmcPrecheck() error
- func DiskRun() ([]byte, error)
- func DpkgCollectRun() ([]byte, error)
- func ECCPrecheck() error
- func ECCRun() ([]byte, error)
- func IpmiToolRun() ([]byte, error)
- func LsPCIRun() ([]byte, error)
- func LsUSBRun() ([]byte, error)
- func NicRun() ([]byte, error)
- func ProcInfoRun() ([]byte, error)
- func RpmCollectRun() ([]byte, error)
- func SMBIOSRun() ([]byte, error)
- type BlockDrive
- type Disk
Constants ¶
This section is empty.
Variables ¶
View Source
var Collectors = map[string]*collectors.CollectorFnWrapper{ "sysinfo.package.rpm-package": &collectors.CollectorFnWrapper{RunFn: RpmCollectRun, Dependencies: []string{"rpm"}, Type: "inventory.other"}, "sysinfo.package.dpkg-package": &collectors.CollectorFnWrapper{RunFn: DpkgCollectRun, Dependencies: []string{"dpkg-query"}, Type: "inventory.other"}, "sysinfo.disk": &collectors.CollectorFnWrapper{RunFn: DiskRun, Dependencies: []string{"smartctl"}, Type: "inventory.all"}, "sysinfo.pci": &collectors.CollectorFnWrapper{RunFn: LsPCIRun, Dependencies: []string{"lspci"}, Type: "inventory.all"}, "sysinfo.usb": &collectors.CollectorFnWrapper{RunFn: LsUSBRun, Dependencies: []string{"lsusb"}, Type: "inventory.all"}, "sysinfo.nic": &collectors.CollectorFnWrapper{RunFn: NicRun, Dependencies: []string{}, Type: "inventory.all"}, "sysinfo.smbios": &collectors.CollectorFnWrapper{RunFn: SMBIOSRun, Dependencies: []string{"dmidecode"}, Type: "inventory.all"}, "sysinfo.bmc.bmc-info": &collectors.CollectorFnWrapper{RunFn: BmcInfoRun, PrecheckFn: BmcPrecheck, Dependencies: []string{"bmc-info"}, Type: "inventory.all"}, "sysinfo.bmc.ipmi-tool": &collectors.CollectorFnWrapper{RunFn: IpmiToolRun, PrecheckFn: BmcPrecheck, Dependencies: []string{"ipmitool"}, Type: "inventory.all"}, "sysinfo.proc": &collectors.CollectorFnWrapper{RunFn: ProcInfoRun, Dependencies: []string{}, Type: "inventory.all"}, "sysinfo.ecc": &collectors.CollectorFnWrapper{RunFn: ECCRun, PrecheckFn: ECCPrecheck, Dependencies: []string{}, Type: "inventory.all"}, }
Collectors is a list of predefined inventory collectors
Functions ¶
func BmcInfoRun ¶
BmcInfoRun returns formatted output of bmc-info in []byte
func BmcPrecheck ¶
func BmcPrecheck() error
BmcPrecheck validates the dependency of bmc-info and dmidecode
func DpkgCollectRun ¶
DpkgCollectRun returns formatted output of dpkg-query in []byte
func ECCPrecheck ¶
func ECCPrecheck() error
ECCPrecheck validates ECC dependencies mcelog and dmidecode
func IpmiToolRun ¶
IpmiToolRun returns inventory of Management Controller and LAN channels
func ProcInfoRun ¶
ProcInfoRun returns inventory of host version, cpuinfo etc
func RpmCollectRun ¶
RpmCollectRun returns inventory of all installed rpm in []byte
Types ¶
type BlockDrive ¶
type BlockDrive struct { Name string SysfsPath string MajMin string Type string Size int64 //in bytes Removable bool ReadOnly bool Revision string Vendor string Product string LogicalBlockSize string StorageType string }
BlockDrive contains information of block drives on the machine
Click to show internal directories.
Click to hide internal directories.