ShoStats
Introduction
ShoStats is a reimplementation of phpSysInfo in Perl, I did this because phpSysInfo is a real-time application which takes stats of the host it runs on and shows the results in the user browser. This was not an option for the machines I have running at home.
So I created a Perl script which could run from crontab and output the stats to a PHP include file, which I could display on my hosting account. While working on that, I thought perhaps more people where interested in such an implementation, but with different output options and/or transfer options, so I made it more modular and configurable.
So now there are os modules for Linux and OpenBSD, there is an output module for PHP include files and there are transfer modules for output to stdout (which can be redirected or piped) and a module which can upload the result directly to a FTP server (this does require the Net::FTP module, I forgot which package this is contained in, but if I remember correctly it was netlib-perl or something like that, try www.cpan.org).
Downloads
View the CHANGELOG
View the LICENSE
shostats-1.2.2.tar.gz (size: 13K; date: 2003-12-23)
shostats-1.2.1.tar.gz (size: 13K; date: 2003-11-19)
shostats-1.2.0.tar.gz (size: 12K; date: 2003-04-03)
shostats-1.1.2.tar.gz (size: 11K; date: 2003-03-28)
shostats-1.1.1.tar.gz (size: 11K; date: 2003-03-28)
Examples
At the moment I have no demo online
Configuration
| os | Specifies which os module to load, to generate the statistics. Currently ‘linux’, ‘netbsd’ and ‘openbsd’ are supported. |
| output | Specifies which output module to load, currently only ‘php’ is supported, this generates a php include file consisting of a couple of variables which can be used to generate a webpage.See the ‘contrib/’ directory for a php file which generates a nice page. |
| transfer | Specifies which transfer module to load, currently ’stdout’ and ‘ftp’ are supported. ’stdout’ prints the output of the ‘output’ module to stdout. ‘ftp’ uploads that output to an ftp server. The ftp module requires a couple more options, specifying the hostname, username, password, base directory and the filename. |
The other options are only important if you did a non-standard install (the ‘by hand’ method), see the end of the ‘INSTALL’ file for more information.