gohai

command module
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README ΒΆ

gohai

An SDK-first Go library that collects system facts.

release codecov license build powered by conventional commits built with just gitHub commit activity go reference

SDK first, CLI second, one contract for both.

Sixty-two collectors in ten categories. Each collector wraps a maintained library and does not write the logic again. Each collector returns a typed struct. Import the library, or use the CLI with the same collectors.

πŸ“¦ Install

curl -fsSL https://github.com/osapi-io/gohai/raw/main/install.sh | bash

The script installs to ~/.local/bin, or to /usr/local/bin as root. It verifies the SHA-256 checksums. To change the directory, set GOHAI_INSTALL_DIR=/some/path. To install one version, set GOHAI_VERSION=1.0.0.

Other install methods

Go install

go install github.com/osapi-io/gohai@latest

As a library dependency

go get github.com/osapi-io/gohai

Build from source

git clone https://github.com/osapi-io/gohai.git
cd gohai
go build -o gohai .

✨ Features

Feature Description
πŸ”Œ Pluggable Collectors Enable or disable each fact collector
πŸ—οΈ Typed Structs Strongly typed Go structs for all facts
πŸ“„ JSON Output Nested JSON output for the CLI and for programs
πŸ—ΊοΈ Flat Map Access Key-value access with dot-separated keys
🐧 Cross-Platform Linux first, macOS where possible
πŸ”— Collector Dependencies gohai resolves the dependencies between facts
⚑ Concurrent Collection Collectors run at the same time. When a collector declares dependencies, the dependency graph sets the order.
⏱️ Per-Collector Timings The optional --with-timings / WithTimings() adds the duration, status and error message of each collector under _timings in the JSON output
πŸ“Š OCSF + OpenTelemetry + Ohai Field names follow OCSF, then OpenTelemetry. The data sources are the same as in Chef Ohai's plugins
πŸ”„ Native OCSF Output --format ocsf makes an OCSF inventory_info event (class_uid 5001) that follows the standard. You can send it directly to SIEMs and data lakes
πŸ”Œ SDK Integration Import it as a Go package into a Go service

🧰 Collectors

63 collectors in 10 categories. The Collectors reference has the full catalog, the implementation status, the default set, the schema mappings, and a page for each collector. It lists 65 entries. The other three entries are deprecated and have no implementation.

You enable or disable each collector with flags in the node_exporter style. --collector.<name> enables a collector. --no-collector.<name> disables it. SDK consumers use gohai.WithEnabled(...) / gohai.WithDisabled(...) / gohai.WithCollectors(...).

The defaults are optional. gohai.New() returns an empty registry. Pass gohai.WithDefaults() to get the recommended set. This set has collectors that are fast and work on almost all hosts: identity, base hardware, network, load and virtualization detection. The CLI adds WithDefaults() automatically. To use only the collectors that you name with --collector.X flags, pass --no-defaults.

πŸš€ Usage

CLI

gohai collect --pretty                          # default collectors, pretty JSON
gohai collect --format ocsf --pretty            # OCSF inventory_info event
gohai collect --flat                            # flat key=value pairs
gohai collect --no-defaults --collector.cpu     # specific collectors only
gohai collect --pretty | gohai validate          # validate against schema
gohai collector list                            # each collector, its category and dependencies
gohai collector get --name services             # its constructor, fields, and what it reads on each platform
gohai collector spec get                        # the parts of a collector, for an author
gohai collector validate                        # check each collector against the rules
gohai version                                   # build info

SDK

If you import the package, read the full API reference on pkg.go.dev for each Option, Facts field and Info struct. That reference is the authoritative list. The examples below show the two ways to use the package.

Collect facts

The producer side:

package main

import (
    "context"
    "fmt"
    "log"

    "github.com/osapi-io/gohai/pkg/gohai"
)

func main() {
    g, err := gohai.New(
        gohai.WithDefaults(),                      // the recommended set
        gohai.WithEnabled("process", "packages"),  // plus these two
    )
    if err != nil {
        log.Fatal(err)
    }

    facts, err := g.Collect(context.Background())
    if err != nil {
        log.Fatal(err)
    }

    // Typed access β€” pkg.go.dev documents every Info struct's fields.
    fmt.Printf("OS:     %s %s\n", facts.Platform.Name, facts.Platform.Version)
    fmt.Printf("Cores:  %d\n", facts.CPU.Cores)
    fmt.Printf("Memory: %d bytes\n", facts.Memory.Total)

    // Serialize for transport / storage.
    b, _ := facts.PrettyJSON()
    fmt.Println(string(b))
}

Read stored facts

The decoder side, for example a server that received a blob of facts from an agent:

var facts gohai.Facts
if err := json.Unmarshal(payload, &facts); err != nil {
    log.Fatal(err)
}

// Typed access on the decoded value β€” no map[string]any guessing.
fmt.Println(facts.Platform.Name, facts.CPU.Cores)
fmt.Println(facts.Network.DefaultInterface)

To add the timing and the error message of each collector to Facts, add gohai.WithTimings() to gohai.New(...). Use this to find slow collectors. Use it also to see why a collector failed, without a stop of the run. Refer to the Timings field on pkg.go.dev.

Find the cloud of the host

Enable the cloud collectors (WithCategory("cloud")). Then switch on Facts.Cloud(). It returns a *Cloud with Name set to a provider identifier. If gohai found no cloud, it returns nil. Use the exported constants gohai.CloudAWS / CloudGCE / CloudAzure and the others. Do not use raw strings:

g, _ := gohai.New(gohai.WithCategory("cloud"))
facts, _ := g.Collect(ctx)

cloud := facts.Cloud()
if cloud == nil { return } // not on a supported cloud

switch cloud.Name {
case gohai.CloudAWS:
    fmt.Println(facts.Ec2.Region, facts.Ec2.IAMInfo.InstanceProfileArn)
case gohai.CloudGCE:
    fmt.Println(facts.Gce.ProjectID, facts.Gce.Zone)
}

The full data of each provider is in its typed field, for example Facts.Ec2 or Facts.Gce. Refer to docs/collectors/cloud.md for the full pattern.

πŸ§ͺ Examples

Each example is a standalone Go program that you can read and run.

Example What it shows
default-collection Collect the default set and print it as JSON
select-collectors Collect only from the named collectors
categories Select by category, then remove one
typed-facts Read results as typed fields, by key path, and as a flat map
timings Show the duration and failure of each collector
list-collectors List the collectors without a collection

πŸ“š Documentation

  • Package documentation on pkg.go.dev. The generated API reference. It documents each Option, Facts field and Info struct. This is the authoritative SDK reference.
  • Collectors reference. One page for each collector, with the fields, the schema mappings (OCSF + OpenTelemetry), and the comparison with the Ohai sources.
  • Schemas. The JSON Schema, the rules for field names (OCSF > OTel > convention), the OCSF gap analysis, and the canonical cloud overlay.
  • Contributing. The prerequisites, the setup, the tests and the commit conventions.
  • Collector methodology. How to select a library, how to name fields, and the data sources.

gohai uses these projects in three ways. Some are methodology references. Some are backing libraries that gohai wraps. Some are peers that solve related problems.

Fact collectors (direct peers)

  • Chef Ohai. The canonical reference. A fact collector in Ruby, made of plugins. Each gohai collector compares with the related Ohai plugin for the data sources and for the special cases of each distribution.
  • Puppet Facter. The Puppet equivalent. It has a different JSON shape and many of the same facts.
  • osquery. Meta's endpoint visibility tool, based on SQL. It uses a different abstraction (SQL) for the same data. People often compare inventory tools with it.
  • Ansible setup is the built-in fact collection of Ansible. Playbooks get the facts as ansible_facts.
  • Salt Grains. The static facts of SaltStack.

Libraries gohai reads through

  • avfs. A virtual filesystem abstraction. Each collector reads files through it, so a caller can give a fake host and tests can run against in-memory fixtures. gohai reads /proc, /sys and the commands of a host itself, as Ohai does.

Other Go libraries in the space

  • ghw. A library for the physical hardware topology: CPU NUMA, DIMMs, block devices, DMI, GPU and PCI. gohai used it for dmi, gpu and pci, until those collectors read sysfs through their sources.
  • procfs. A parser of Linux /proc and /sys.
  • go-sysinfo. The Elastic library for host, platform and kernel facts.
  • gosigar. The Cloud Foundry Go port of Hyperic Sigar. An old reference for host metrics in Go.
  • go-ps. A small library that lists processes. gohai reads /proc and ps itself.
  • goprocinfo. A small /proc parser. For gohai, its own parsers of /proc do the same work.

Methodology references (gohai reads them, but does not import them)

  • node_exporter. The reference for difficult parsing of Linux /proc and /sys. It is Apache-2, but gohai writes the code again in its own style and does not import it.
  • psutil. The original design reference for the dynamic-state facts.

🀝 Contributing

Refer to the Contributing guide for the prerequisites, the setup, the conventions and the PR workflow.

πŸ“„ License

The MIT License.

Documentation ΒΆ

Overview ΒΆ

Command gohai collects system facts and prints them as JSON.

Directories ΒΆ

Path Synopsis
Package cmd implements the gohai CLI.
Package cmd implements the gohai CLI.
internal
cli
Package cli holds CLI-only output helpers β€” never imported by the SDK under pkg/gohai/, only by cmd/.
Package cli holds CLI-only output helpers β€” never imported by the SDK under pkg/gohai/, only by cmd/.
cloudmetadata
Package cloudmetadata is the shared HTTP client every cloud-provider collector (ec2, gce, azure, digital_ocean, openstack, oci, linode, alibaba, scaleway) uses to talk to its provider's link-local metadata endpoint.
Package cloudmetadata is the shared HTTP client every cloud-provider collector (ec2, gce, azure, digital_ocean, openstack, oci, linode, alibaba, scaleway) uses to talk to its provider's link-local metadata endpoint.
collector
Package collector defines the Collector interface gohai uses to plug fact collectors into the registry.
Package collector defines the Collector interface gohai uses to plug fact collectors into the registry.
collector/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
executor
Package executor is the command runner collectors take.
Package executor is the command runner collectors take.
executor/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
pcidev
Package pcidev reads the PCI devices of a Linux host from sysfs, and names them from the pci.ids database, both through a filesystem.
Package pcidev reads the PCI devices of a Linux host from sysfs, and names them from the pci.ids database, both through a filesystem.
platform
Package platform is how a collector picks its variant: Detect is the host's family, as pkg/gohai/family names it, and a test swaps it to force any branch without reading the host.
Package platform is how a collector picks its variant: Detect is the host's family, as pkg/gohai/family names it, and a test swaps it to force any branch without reading the host.
readlog
Package readlog records what a collector reads from a host: each file and directory it opens or looks at, and each command it runs.
Package readlog records what a collector reads from a host: each file and directory it opens or looks at, and each command it runs.
sourcetest
Package sourcetest builds the sources a collector test reads: a filesystem that holds given files, and a runner that answers given command lines.
Package sourcetest builds the sources a collector test reads: a filesystem that holds given files, and a runner that answers given command lines.
validate
Package validate provides JSON Schema validation for gohai output.
Package validate provides JSON Schema validation for gohai output.
pkg
gohai
Package gohai is the public SDK for collecting system facts.
Package gohai is the public SDK for collecting system facts.
gohai/collectors/alibaba
Package alibaba collects Alibaba Cloud ECS instance metadata from the link-local metadata server at http://100.100.100.200/.
Package alibaba collects Alibaba Cloud ECS instance metadata from the link-local metadata server at http://100.100.100.200/.
gohai/collectors/azure
Package azure collects Azure instance metadata from the link-local metadata server at http://169.254.169.254/metadata/instance.
Package azure collects Azure instance metadata from the link-local metadata server at http://169.254.169.254/metadata/instance.
gohai/collectors/blockdevice
Package blockdevice reports block device sysfs attributes for each device found under /sys/block.
Package blockdevice reports block device sysfs attributes for each device found under /sys/block.
gohai/collectors/cacertificates
Package cacertificates reports the certificate authorities that the host trusts: the CAs that its distribution ships and the ones that an administrator added, each with its subject, its SHA-256 fingerprint and when it expires.
Package cacertificates reports the certificate authorities that the host trusts: the CAs that its distribution ships and the ones that an administrator added, each with its subject, its SHA-256 fingerprint and when it expires.
gohai/collectors/command
Package command provides Ohai command/ps parity: runs `ps -ef` and stores its raw output lines.
Package command provides Ohai command/ps parity: runs `ps -ef` and stores its raw output lines.
gohai/collectors/cpu
Package cpu collects CPU topology, model, feature flags, cache layout, NUMA layout, and hardware vulnerability mitigation status.
Package cpu collects CPU topology, model, feature flags, cache layout, NUMA layout, and hardware vulnerability mitigation status.
gohai/collectors/digitalocean
Package digital_ocean collects DigitalOcean droplet metadata from the link-local metadata server at http://169.254.169.254/metadata/v1.json.
Package digital_ocean collects DigitalOcean droplet metadata from the link-local metadata server at http://169.254.169.254/metadata/v1.json.
gohai/collectors/disk
Package disk collects per-device disk I/O counters (node_exporter-style).
Package disk collects per-device disk I/O counters (node_exporter-style).
gohai/collectors/dmi
Package dmi reports SMBIOS / DMI data β€” BIOS, baseboard, chassis, and product identity.
Package dmi reports SMBIOS / DMI data β€” BIOS, baseboard, chassis, and product identity.
gohai/collectors/dns
Package dns collects the host's resolver configuration: the name servers, search domains and options of /etc/resolv.conf, and the name servers and domains of each interface where the host keeps them apart (systemd-resolved on Linux, the scoped resolvers of macOS).
Package dns collects the host's resolver configuration: the name servers, search domains and options of /etc/resolv.conf, and the name servers and domains of each interface where the host keeps them apart (systemd-resolved on Linux, the scoped resolvers of macOS).
gohai/collectors/docker
Package docker reports Docker server version, containers, and images on the host.
Package docker reports Docker server version, containers, and images on the host.
gohai/collectors/ec2
Package ec2 collects AWS EC2 instance metadata from the link-local metadata server at http://169.254.169.254/.
Package ec2 collects AWS EC2 instance metadata from the link-local metadata server at http://169.254.169.254/.
gohai/collectors/filesystem
Package filesystem collects filesystems known to the host, both mounted and (on Linux, via lsblk) unmounted.
Package filesystem collects filesystems known to the host, both mounted and (on Linux, via lsblk) unmounted.
gohai/collectors/fips
Package fips reports whether the kernel is running in FIPS mode (FIPS 140-2 / 140-3).
Package fips reports whether the kernel is running in FIPS mode (FIPS 140-2 / 140-3).
gohai/collectors/gce
Package gce collects instance and project metadata from the Google Compute Engine metadata server (http://metadata.google.internal/).
Package gce collects instance and project metadata from the Google Compute Engine metadata server (http://metadata.google.internal/).
gohai/collectors/gpu
Package gpu reports graphics / compute cards present on the host.
Package gpu reports graphics / compute cards present on the host.
gohai/collectors/grub2
Package grub2 reads the GRUB2 environment block and reports the key=value pairs it contains.
Package grub2 reads the GRUB2 environment block and reports the key=value pairs it contains.
gohai/collectors/hardware
Package hardware collects macOS-specific hardware facts β€” the identity, memory, and firmware fields surfaced by `system_profiler SPHardwareDataType`, attached storage from `SPStorageDataType`, and battery / AC charger info from `SPPowerDataType`.
Package hardware collects macOS-specific hardware facts β€” the identity, memory, and firmware fields surfaced by `system_profiler SPHardwareDataType`, attached storage from `SPStorageDataType`, and battery / AC charger info from `SPPowerDataType`.
gohai/collectors/hostname
Package hostname collects the short hostname, fully qualified domain name, DNS domain, and friendly machine name.
Package hostname collects the short hostname, fully qualified domain name, DNS domain, and friendly machine name.
gohai/collectors/hostnamectl
Package hostnamectl parses `hostnamectl` output on Linux to report static hostname, chassis type, deployment environment, kernel info, and hardware model.
Package hostnamectl parses `hostnamectl` output on Linux to report static hostname, chassis type, deployment environment, kernel info, and hardware model.
gohai/collectors/initd
Package initd detects the init system a Linux host is using β€” systemd, upstart, sysvinit, openrc, or runit β€” by reading /proc/1/comm.
Package initd detects the init system a Linux host is using β€” systemd, upstart, sysvinit, openrc, or runit β€” by reading /proc/1/comm.
gohai/collectors/interrupts
Package interrupts reports IRQ statistics and per-CPU event counts as found in /proc/interrupts on Linux.
Package interrupts reports IRQ statistics and per-CPU event counts as found in /proc/interrupts on Linux.
gohai/collectors/ipc
Package ipc reports Linux IPC subsystem kernel parameters: semaphore limits, message queue limits, and shared memory limits, all read from the /proc/sys/kernel/ sysctl tree.
Package ipc reports Linux IPC subsystem kernel parameters: semaphore limits, message queue limits, and shared memory limits, all read from the /proc/sys/kernel/ sysctl tree.
gohai/collectors/kernel
Package kernel reports kernel identity (name, release, version, machine, processor, high-level OS) plus macOS Rosetta 2 translation state.
Package kernel reports kernel identity (name, release, version, machine, processor, high-level OS) plus macOS Rosetta 2 translation state.
gohai/collectors/kernelmodules
Package kernelmodules enumerates loaded kernel modules (Linux) / kexts (macOS).
Package kernelmodules enumerates loaded kernel modules (Linux) / kexts (macOS).
gohai/collectors/languages
Package languages reports installed programming language runtimes on the host.
Package languages reports installed programming language runtimes on the host.
gohai/collectors/libvirt
Package libvirt collects libvirt domain information from a KVM/QEMU host.
Package libvirt collects libvirt domain information from a KVM/QEMU host.
gohai/collectors/linode
Package linode detects Linode hosts and reports their public / private IPs.
Package linode detects Linode hosts and reports their public / private IPs.
gohai/collectors/livepatch
Package livepatch reports the status of kernel livepatches loaded on a Linux host.
Package livepatch reports the status of kernel livepatches loaded on a Linux host.
gohai/collectors/load
Package load collects system load averages (1/5/15-minute).
Package load collects system load averages (1/5/15-minute).
gohai/collectors/lsb
Package lsb reports Linux Standard Base identification fields via the `lsb_release` CLI β€” matches Ohai's linux/lsb plugin.
Package lsb reports Linux Standard Base identification fields via the `lsb_release` CLI β€” matches Ohai's linux/lsb plugin.
gohai/collectors/machineid
Package machineid reports the host's stable machine identifier.
Package machineid reports the host's stable machine identifier.
gohai/collectors/mdadm
Package mdadm reports Linux software RAID arrays discovered via /proc/mdstat and enriched with `mdadm --detail /dev/<device>`.
Package mdadm reports Linux software RAID arrays discovered via /proc/mdstat and enriched with `mdadm --detail /dev/<device>`.
gohai/collectors/memory
Package memory reports system memory totals, usage buckets, kernel allocations, page-cache state, and hugepages / DirectMap layout on Linux; on macOS it adds the wired / speculative / compressed buckets that the Darwin VM reports.
Package memory reports system memory totals, usage buckets, kernel allocations, page-cache state, and hugepages / DirectMap layout on Linux; on macOS it adds the wired / speculative / compressed buckets that the Darwin VM reports.
gohai/collectors/network
Package network reports network interfaces, structured per-address data (family / prefix / scope / netmask / broadcast), per-interface I/O counters, the routing table, and top-level default interface + gateway facts (v4 + v6).
Package network reports network interfaces, structured per-address data (family / prefix / scope / netmask / broadcast), per-interface I/O counters, the routing table, and top-level default interface + gateway facts (v4 + v6).
gohai/collectors/oci
Package oci collects Oracle Cloud Infrastructure instance metadata from the link-local metadata server at http://169.254.169.254/opc/v2.
Package oci collects Oracle Cloud Infrastructure instance metadata from the link-local metadata server at http://169.254.169.254/opc/v2.
gohai/collectors/openstack
Package openstack collects OpenStack (Nova) instance metadata from the link-local metadata server at http://169.254.169.254/.
Package openstack collects OpenStack (Nova) instance metadata from the link-local metadata server at http://169.254.169.254/.
gohai/collectors/osrelease
Package osrelease parses /etc/os-release into typed fields.
Package osrelease parses /etc/os-release into typed fields.
gohai/collectors/packagemgr
Package packagemgr detects which package manager the host is configured to use β€” apt on Debian-family, dnf/yum on RHEL-family, brew on macOS, etc.
Package packagemgr detects which package manager the host is configured to use β€” apt on Debian-family, dnf/yum on RHEL-family, brew on macOS, etc.
gohai/collectors/packages
Package packages reports the list of installed packages on the host.
Package packages reports the list of installed packages on the host.
gohai/collectors/pci
Package pci enumerates PCI devices attached to the host.
Package pci enumerates PCI devices attached to the host.
gohai/collectors/platform
Package platform reports OS identification β€” canonical name, version, family, and architecture.
Package platform reports OS identification β€” canonical name, version, family, and architecture.
gohai/collectors/process
Package process collects a snapshot of running processes.
Package process collects a snapshot of running processes.
gohai/collectors/rootgroup
Package rootgroup reports the primary group name for the root user.
Package rootgroup reports the primary group name for the root user.
gohai/collectors/rpm
Package rpm reports RPM macro definitions from `rpm --showrc`.
Package rpm reports RPM macro definitions from `rpm --showrc`.
gohai/collectors/scaleway
Package scaleway collects Scaleway instance metadata from the link-local metadata server at http://169.254.42.42/.
Package scaleway collects Scaleway instance metadata from the link-local metadata server at http://169.254.42.42/.
gohai/collectors/scsi
Package scsi enumerates SCSI devices visible to the host by parsing the output of `lsscsi`.
Package scsi enumerates SCSI devices visible to the host by parsing the output of `lsscsi`.
gohai/collectors/selinux
Package selinux reports SELinux status, mode, and policy information.
Package selinux reports SELinux status, mode, and policy information.
gohai/collectors/services
Package services reports systemd service states on Linux.
Package services reports systemd service states on Linux.
gohai/collectors/sessions
Package sessions reports currently logged-in user sessions.
Package sessions reports currently logged-in user sessions.
gohai/collectors/shard
Package shard derives a deterministic shard seed from stable host identity.
Package shard derives a deterministic shard seed from stable host identity.
gohai/collectors/shells
Package shells reports the list of valid login shells installed on the host (contents of /etc/shells).
Package shells reports the list of valid login shells installed on the host (contents of /etc/shells).
gohai/collectors/ssh
Package ssh collects SSH host key fingerprints from /etc/ssh/.
Package ssh collects SSH host key fingerprints from /etc/ssh/.
gohai/collectors/sysconf
Package sysconf reports POSIX sysconf(3) values for clock tick rate, page size, and processor counts.
Package sysconf reports POSIX sysconf(3) values for clock tick rate, page size, and processor counts.
gohai/collectors/sysctl
Package sysctl collects kernel parameters by running `sysctl -a`.
Package sysctl collects kernel parameters by running `sysctl -a`.
gohai/collectors/systemdpaths
Package systemdpaths reports standard systemd directory paths by running `systemd-path` and parsing its "name: /path" output.
Package systemdpaths reports standard systemd directory paths by running `systemd-path` and parsing its "name: /path" output.
gohai/collectors/tc
Package tc reports Linux traffic control (qdisc) configuration via `tc -s qdisc show`.
Package tc reports Linux traffic control (qdisc) configuration via `tc -s qdisc show`.
gohai/collectors/timezone
Package timezone collects the system timezone (IANA name, short abbreviation, and offset from UTC).
Package timezone collects the system timezone (IANA name, short abbreviation, and offset from UTC).
gohai/collectors/uptime
Package uptime collects system uptime, boot time, and (on Linux) aggregate CPU idle time.
Package uptime collects system uptime, boot time, and (on Linux) aggregate CPU idle time.
gohai/collectors/users
Package users enumerates system user and group accounts from /etc/passwd and /etc/group, plus the effective current user.
Package users enumerates system user and group accounts from /etc/passwd and /etc/group, plus the effective current user.
gohai/collectors/virtualbox
Package virtualbox collects VirtualBox guest additions data from a guest VM.
Package virtualbox collects VirtualBox guest additions data from a guest VM.
gohai/collectors/virtualization
Package virtualization detects every hypervisor and container runtime the host participates in β€” as guest, host, or both.
Package virtualization detects every hypervisor and container runtime the host participates in β€” as guest, host, or both.
gohai/collectors/vmware
Package vmware collects VMware Tools data from a VMware guest VM.
Package vmware collects VMware Tools data from a VMware guest VM.
gohai/collectors/zpools
Package zpools reports ZFS pool status by running `zpool list -H -o name,size,alloc,free,health,altroot`.
Package zpools reports ZFS pool status by running `zpool list -H -o name,size,alloc,free,health,altroot`.
gohai/family
Package family names a host's platform and its platform family, as Chef's Ohai does: the platform is the ID of /etc/os-release with a few IDs remapped, and the family follows from the platform.
Package family names a host's platform and its platform family, as Chef's Ohai does: the platform is the ID of /etc/os-release with a few IDs remapped, and the family follows from the platform.
gohai/ocsf
Package ocsf provides OCSF-shaped output for gohai's system facts.
Package ocsf provides OCSF-shaped output for gohai's system facts.
gohai/source
Package source is what a collector reads a host through: a filesystem, a command runner, a clock and the host's platform family.
Package source is what a collector reads a host through: a filesystem, a command runner, a clock and the host's platform family.
gohai/source/mocks
Package mocks has the generated double of source.Runner, for the tests of gohai and of a caller that gives gohai its sources.
Package mocks has the generated double of source.Runner, for the tests of gohai and of a caller that gives gohai its sources.
Package schemas embeds the generated JSON Schema for gohai.Facts.
Package schemas embeds the generated JSON Schema for gohai.Facts.
gen command
Package main generates schemas/gohai.schema.json from gohai.Facts.
Package main generates schemas/gohai.schema.json from gohai.Facts.

Jump to

Keyboard shortcuts

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