2017 © Pedro Peláez
 

library ginfo

App and library for easily parsing system information, like network/cpu/memory/usb/pci/sound cards/filesystems/raid array/ipmi/etc.

image

gemorroj/ginfo

App and library for easily parsing system information, like network/cpu/memory/usb/pci/sound cards/filesystems/raid array/ipmi/etc.

  • Saturday, July 28, 2018
  • by Gemorroj
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 58 Forks
  • 4 Open issues
  • 9 Versions
  • 40 % Grown

The README.md

Ginfo - Server stats library

License Latest Stable Version Build Status Travis Build Status AppVeyor, (*1)

Ginfo is a:

  • Extensible, easy (composer) to use PHP Library to get extensive system stats programmatically from your PHP app

Fork changes:

  • drop ui
  • drop internationalization
  • drop bsd* support (sorry, I will not be able to support)
  • drop dhcp3 support
  • drop dnsmasq support
  • drop php libvirt support
  • drop lxd support
  • no need COM extension on Windows, but need powershell
  • minimal windows 10 support
  • adapt the code to modern standards
  • minimal php version 7.1.3
  • add selinux status info
  • add php info (basic, opcache, apcu)

Installation:

composer require gemorroj/ginfo

Example:

<?php
$ginfo = new \Ginfo\Ginfo();
$info = $ginfo->getInfo();

\print_r($info->getGeneral());
\print_r($info->getPhp());
\print_r($info->getCpu());
\print_r($info->getMemory());
\print_r($info->getSoundCard());
\print_r($info->getUsb());
\print_r($info->getUps());
\print_r($info->getPci());
\print_r($info->getNetwork());
\print_r($info->getDisk());
\print_r($info->getBattery());
\print_r($info->getSensors());
\print_r($info->getProcesses());
\print_r($info->getServices());
\print_r($info->getPrinters());
\print_r($info->getSamba());
\print_r($info->getSelinux());

Runs on

  • Linux
  • Windows >= 10

Information reported

  • CPU type/speed; Architecture
  • Mount point usage
  • Hard/optical/flash drives
  • Hardware devices (PCI) (linux: need pciutils)
  • USB devices (linux: need usbutils)
  • Network devices and stats
  • Uptime
  • Memory usage (physical and swap, linux: need free)
  • Temperatures/voltages/fan speeds (linux: need hddtemp as daemon, mbmon as daemon, sensors (part of lm-sensors), hwmon, acpi themal zone, nvidia-smi, ipmitool)
  • RAID arrays (linux: need mdadm)
  • Motherboard (linux: need dimedecode)
  • Processes
  • Systemd services (linux: need systemctl)
  • logged users (linux: need who)
  • UPS status (linux: need apcaccess)
  • Printer status (linux: need lpstat)
  • Samba status (linux: need smbstatus)
  • Selinux status (linux: need sestatus)
  • PHP (basic info, opcache, apcu)

System requirements:

  • PHP >= 7.1.3
  • pcre extension
  • proc_open

Windows

  • You need to have powershell
  • Allow execute ps1 scripts Set-ExecutionPolicy RemoteSigned –Force

Linux

  • /proc and /sys mounted and readable by PHP
  • Tested with the 2.6.x/3.x/4.x kernels

The Versions

28/07 2018

dev-master

9999999-dev

App and library for easily parsing system information, like network/cpu/memory/usb/pci/sound cards/filesystems/raid array/ipmi/etc.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Gemorroj

system memory linux health disk cpu specs

28/07 2018

5.0.6

5.0.6.0

App and library for easily parsing system information, like network/cpu/memory/usb/pci/sound cards/filesystems/raid array/ipmi/etc.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Gemorroj

system memory linux health disk cpu specs

13/04 2018

5.0.5

5.0.5.0

App and library for easily parsing system information, like network/cpu/memory/usb/pci/sound cards/filesystems/raid array/ipmi/etc.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Gemorroj

system memory linux health disk cpu specs

11/04 2018

5.0.4

5.0.4.0

App and library for easily parsing system information, like network/cpu/memory/usb/pci/sound cards/filesystems/raid array/ipmi/etc.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Gemorroj

system memory linux health disk cpu specs

11/04 2018

5.0.3

5.0.3.0

App and library for easily parsing system information, like network/cpu/memory/usb/pci/sound cards/filesystems/raid array/ipmi/etc.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Gemorroj

system memory linux health disk cpu specs

11/04 2018

5.0.2

5.0.2.0

App and library for easily parsing system information, like network/cpu/memory/usb/pci/sound cards/filesystems/raid array/ipmi/etc.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Gemorroj

system memory linux health disk cpu specs

11/04 2018

5.0.1

5.0.1.0

App and library for easily parsing system information, like network/cpu/memory/usb/pci/sound cards/filesystems/raid array/ipmi/etc.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Gemorroj

system memory linux health disk cpu specs

10/04 2018

5.0.0

5.0.0.0

App and library for easily parsing system information, like network/cpu/memory/usb/pci/sound cards/filesystems/raid array/ipmi/etc.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Gemorroj

system memory linux health disk cpu specs

19/03 2018

4.0.0

4.0.0.0

App and library for easily parsing system information, like network/torrents/cpu/memory/usb/pci/sound cards/filesystems/raid array/ipmi/etc.

  Sources   Download

GPL-2.0-or-later

The Requires

 

The Development Requires

by Avatar Gemorroj

system linux health cpu specs