All Projects → DataDog → gohai

DataDog / gohai

Licence: MIT license
System information collector

Programming Languages

go
31211 projects - #10 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to gohai

GuiLib
Yet another bukkit inventory gui library
Stars: ✭ 18 (-80.22%)
Mutual labels:  inventory
ios-inventory-agent
Flyve MDM Inventory Agent
Stars: ✭ 27 (-70.33%)
Mutual labels:  inventory
glpi-agent
GLPI Agent
Stars: ✭ 89 (-2.2%)
Mutual labels:  inventory
PSP-Inventory
Inventorise your environment through PowerShell
Stars: ✭ 28 (-69.23%)
Mutual labels:  inventory
nix bsd mac inventory
Collect Inventory data from *Nix, BSD and mac OS and upload to Device42
Stars: ✭ 17 (-81.32%)
Mutual labels:  inventory
visansible
Visualization of Ansibel-Facts (Inventory-Data)
Stars: ✭ 13 (-85.71%)
Mutual labels:  inventory
bizbook-server
The repository of bizbook server web api project
Stars: ✭ 45 (-50.55%)
Mutual labels:  inventory
inventory
Use a barcode reader to scan the foods in your house and add them to a database. See legacy for zbarcam integration. Master integrates with a USB barcode laser scanner.
Stars: ✭ 32 (-64.84%)
Mutual labels:  inventory
tinvedit
inventory editor for terraria game
Stars: ✭ 35 (-61.54%)
Mutual labels:  inventory
inventory-checkin
Inventory check-in/out manager that supports a tablet kiosk.
Stars: ✭ 16 (-82.42%)
Mutual labels:  inventory
django-graphql-graphene-example
A Django GraphQL API example with Django Graphene
Stars: ✭ 24 (-73.63%)
Mutual labels:  inventory
apex
Apex is a self hosted sales, purchase, inventory and accounting solution for small businesses.
Stars: ✭ 55 (-39.56%)
Mutual labels:  inventory
odoobooks
Odoo Best Practices - Online Book
Stars: ✭ 46 (-49.45%)
Mutual labels:  inventory
Binner
Open source parts inventory system for makers, electronics hobby, and professional engineers
Stars: ✭ 122 (+34.07%)
Mutual labels:  inventory
gui
A very simple library to facilitate the menu creation in the Bukkit API
Stars: ✭ 55 (-39.56%)
Mutual labels:  inventory
POS---Point-Of-Sales
Point of sales proof of concept developed using Asp.Net Core 2.2. Features: Customer, Vendor, Product, Purchase Order, Goods Receive, Sales Order, Inventory Transactions and POS form.
Stars: ✭ 120 (+31.87%)
Mutual labels:  inventory
bizbook-client
The repository of bizbook client project
Stars: ✭ 28 (-69.23%)
Mutual labels:  inventory
sqstorage
A easy to use and quick way to organize your inventory, storages and storage areas
Stars: ✭ 18 (-80.22%)
Mutual labels:  inventory
storaji-ui
Storaji frontend. Built with Electron and Angular 4.
Stars: ✭ 23 (-74.73%)
Mutual labels:  inventory
ocs-agent
Lite OCSInventory-NG Agent for Linux (Unofficial)
Stars: ✭ 14 (-84.62%)
Mutual labels:  inventory

Gohai

license

Gohai is a tool which collects an inventory of system information. It aims to implement some parts of features from facter and ohai. It's forked from Kentaro Kuribayashi's verity.

Usage

Gohai will build and install with go get. We require at least Go 1.7.

go get github.com/DataDog/gohai

Running it will dump json formatted output:

$ gohai | jq .
{
  "cpu": {
    "cpu_cores": "2",
    "family": "6",
    "mhz": "2600",
    "model": "58",
    "model_name": "Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz",
    "stepping": "9",
    "vendor_id": "GenuineIntel"
  },
  "filesystem": [
    {
      "kb_size": "244277768",
      "mounted_on": "/",
      "name": "/dev/disk0s2"
    }
  ],
  "memory": {
    "swap_total": "4096.00M",
    "total": "8589934592"
  },
  "network": {
    "ipaddress": "192.168.1.6",
    "ipaddressv6": "fe80::5626:96ff:fed3:5811",
    "macaddress": "54:26:96:d3:58:11"
  },
  "platform": {
    "GOOARCH": "amd64",
    "GOOS": "darwin",
    "goV": "1.2.1",
    "hostname": "new-host.home",
    "kernel_name": "Darwin",
    "kernel_release": "12.5.0",
    "kernel_version": "Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64",
    "machine": "x86_64",
    "os": "Darwin",
    "processor": "i386",
    "pythonV": "2.7.2"
  }
}

Pipe it through eg. jq or python -m json.tool for pretty output.

How to build

Just run go build!

Build with version info

To build Gohai with version information, use make.go:

go run make.go

It will build gohai using the go build command, with the version info passed through -ldflags.

Updating CPU Information

Some information about CPUs is drawn from the source of the util-linux utility lscpu. To update this information, such as when new processors are released, run

python cpu/from-lscpu-arm.py /path/to/lscpu-arm.c > cpu/lscpu_linux_arm64.go

See Also

Author

License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].