Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/glasswalk3r/linux-info
API in Perl to recover information about the running Linux OS
https://github.com/glasswalk3r/linux-info
Last synced: about 1 month ago
JSON representation
API in Perl to recover information about the running Linux OS
- Host: GitHub
- URL: https://github.com/glasswalk3r/linux-info
- Owner: glasswalk3r
- Created: 2015-08-31T12:51:29.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-03-02T17:06:59.000Z (over 5 years ago)
- Last Synced: 2023-08-20T22:13:13.050Z (about 1 year ago)
- Language: Perl
- Size: 99.6 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Unit Tests](https://github.com/glasswalk3r/Linux-Info/actions/workflows/unit-test.yml/badge.svg)](https://github.com/glasswalk3r/Linux-Info/actions/workflows/unit-test.yml)
# Linux-Info
API in Perl to recover information about the running Linux OS
## WARNING
The version 2.0 and beyond brakes compatibility with the
`Linux::Info::DiskStats` module in previous versions.Be sure to read the related documentation to avoid issues when upgrading.
## DESCRIPTION
`Linux::Info` is a fork from
[Sys::Statistics::Linux](https://metacpan.org/pod/Sys::Statistics::Linux)
distribution.`Linux::Info` is a front-end module to gather different linux
system information like processor workload, memory usage, network and
disk statistics and a lot more. Refer the documentation of the
distribution modules to get more information about all possible
statistics.Since version 2.1, `Linux::Info` also aggregates the functionality of the
[Linux::Distribution](https://metacpan.org/pod/Linux::Distribution)
distribution, even with some code shared between both of them, although
the API is very different.By obvious reasons, this distribution will run only at Linux distributions.
## MOTIVATION
`Sys::Statistics::Linux` is a great distribution (and I used it a lot),
but it was built to recover only Linux statistics when I was also
looking for other additional information about the OS.`Linux::Info` will provide additional information not available in
`Sys::Statistics::Linux`, as general processor information and hopefully
apply patches and suggestions not implemented in the original project.`Sys::Statistics::Linux` is also more forgiving regarding compatibility
with older perls interpreters, modules version that it depends on and
even older OS. If you find that `Linux::Info` is not available to your old
system, you should try it.### What is different from Sys::Statistics::Linux?
`Linux::Info` has:
- automatic identification of the Linux distribution and detailed information about it;
- retrieval of Linux Kernel details;
- support to retrieve metrics from more modern kernels;
- a more modern Perl 5 code;
- doesn't use the `exec` system call to acquire information;
- provides additional information about the processors;
- higher [Kwalitee](https://qa.perl.org/phalanx/kwalitee.html);## INSTALL
To install this module, unpack the downloaded tarball and execute the following
commands in the created directory:```
perl Makefile.PL
make
make install
````Linux::Info` is also available on CPAN, so you can also download and install
automatically this distribution, dependencies included, by using the CPAN shell
(or CPAN Minus or whatever you prefer).If you prefer to use it directly from the Github repository, you can also use
the `cpanfile` included to take care of the dependencies without installing
`Dist::Zilla` (see `cpanm --installdeps`).## COPYRIGHT AND LICENSE
This software is copyright (c) 2015 of Alceu Rodrigues de Freitas
Junior,This file is part of Linux Info project.
Linux Info is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your
option) any later version.Linux Info is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License for more details.You should have received a copy of the GNU General Public License along
with Linux Info. If not, see (http://www.gnu.org/licenses/).