KeyBridge / lib-system-inspector

Linux system inspector and configuration collection utility.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

System Inspector General (SIG)

Gadget

SIG is a set of utilities to inspect and collect information about the (native) compute platform and operating system.

SIG data collection methods are written with the Linux operating system in mind but with a little care and feeding may be readily adopted to also support OSX (trivial) and Windows (less easy, but not difficult).

Approach: 100% Java

SIG does not make or use JNA calls. Instead SIG reads files from the /proc and /sys file systems and executes then parses the output of various common system commands such as ps (process info), df (disk info) and ss (socket info).

SIG does not collect network IP configurations, which are already available within Java. Instead SIG collects interface status and statistics to supplement the existing information available in java.util.NetworkInterface.

Feature Request

Click the Issues button above to make a feature request or report a bug.

Release Info

v1.0.0 (Jan 2016) Initial Release

SIG collects the following system information:

  • Hardware: CPU, memory, file system, network interface, display, power supply
  • Software: operating system, processes, sockets, users, NTP configuration

v1.0.1 (Feb 2016) Feature add

  • Collect thermal sensor data

v1.0.2 (Feb 2016) Feature add, Bug fixes

  • Add IPv6 stats, system timezone, remote access user flag
  • Fix socket number parsing
  • Rewrite OS to support debian flavors
  • System uptime in seconds (not millis)
  • Sorted NTP peers

v1.0.3 (Feb 2016) Feature add

  • Add wireless network scanning

v2.0.0 (July 2024) Update for current linux OS

  • rewrite network socket utility to replace netstat with ss
  • add canExecute test method to SIGUtility to evaluate whether commands may be executed

Alternatives

If you require a non-linux SI library consider one of the following.

  • oshi Native Operating System and Hardware Information
  • sigar System Information Gatherer And Reporter

Note however that these both require installation of a JNI library agent on your sytem.

License

Apache 2.0

About

Linux system inspector and configuration collection utility.


Languages

Language:Java 100.0%