LINUX CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>

7-DAY TOP DOWNLOAD

#
Program
Chromium OS 0.4.22.8
4,365
BackTrack 3.0 / 4.0
Pre-Final

3,633
Wine 1.0.1 / 1.1.33
2,857
VLC 1.0.3
2,826
Yahoo Messenger
1.0.4

2,420
Chrome OS 0.4.237
Beta

2,095
Ubuntu 9.10
2,095
Thunderbird PST
Import plugin 1.2

1,811
Adobe Flash Player
for Linux 10.0.32.18
/ 10.1 Beta

1,685
Fedora 12
1,643

WEEK'S BEST

  • Ubuntu 9.10
  • Ubuntu Netbook Rem...
  • Pidgin 2.6.3
  • Wine 1.0.1 / 1.1.33
  • Linux Kernel 2.6.3...
  • Mozilla Firefox 3....
  • Fedora 12
  • OpenOffice.org 3.1.1
  • Firestarter 1.0.3
  • The Gimp 2.6.7 / 2...
  • FileZilla 3.3.0.1
  • Transmission 1.76
  • Super Grub Disk 0....
  • Gufw 9.04.2
  • Skype 2.0.072 / 2....
  • openSUSE Linux 11.2
  • Opera 10.10 Final
  • Adobe Flash Player...
  • wine-doors 0.1.3
  • Google Gadgets 0.1...
  • Home / Linux / Programming / Libraries

    Sys::Statistics::Linux 0.36

    Download button

    No screenshots available
    Downloads: 223  Add to download basket  Tell us about an update
    User Rating:
    Rated by:
    Good (3.4/5)
    19 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jonny Schulz | More programs
    Perl Artistic License / FREE
    May 13th, 2008, 19:51 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Add a review  Refer to a friend  Subscribe

     

    Sys::Statistics::Linux description

     

    Sys::Statistics::Linux is a Perl module to collect linux system statistics.

    Sys::Statistics::Linux is a Perl module to collect linux system statistics.

    SYNOPSIS

    use Sys::Statistics::Linux;

    my $lxs = new Sys::Statistics::Linux;

    $lxs->set(
    SysInfo => 1,
    CpuStats => 1,
    ProcStats => 1,
    MemStats => 1,
    PgSwStats => 1,
    NetStats => 1,
    SockStats => 1,
    DiskStats => 1,
    DiskUsage => 1,
    LoadAVG => 1,
    FileStats => 1,
    Processes => 1,
    );

    sleep 1;

    my $stat = $lxs->get;

    This module is the main package from the distribution Sys::Statistics::Linux and collects different linux system informations like processor workload, memory usage, network and disk statisitcs and other system informations. Refer to the documentation of the distribution modules to get more informations about all possible statistics and system informations.

    TECHNICAL NOTE

    This distribution collects statistics by the virtual /proc filesystem (procfs) and is developed on default vanilla kernels. It is tested on x86 hardware with the distributions SuSE (SuSE on s390 and s390x architecture as well), Red Hat, Debian, Asianux, Slackware and Mandrake on kernel versions 2.4 and 2.6 and should run on all linux kernels with a default vanilla kernel as well. It is possible that this module doesn't run on all distributions if the procfs is too much modified.

    For example the linux kernel 2.4 can compiled with the option "CONFIG_BLK_STATS". It is possible to activate or deactivate the block statistics for devices with this option. These statistics doesn't exist in /proc/partitions if this option isn't activated. Since linux kernel 2.5 these statistics are in /proc/diskstats.

    Further it is necessary to run it as a user with the authorization to read the /proc filesystem.

    DELTAS

    The options CpuStats, ProcStats, PgSwStats, NetStats, DiskStats and Processes are deltas, for this reason it's necessary to initialize the statistics first, before the data be generated with get(). The statistics can be initialized with the methods new(), set() and init(). Each option that is set to TRUE (1) will be initialized by the call of new() or set(). The call of init() reinitialize all statistics that are set to 1. By the call of get() the initial statistics will be updated automatically. Please refer the METHOD section to get more information about the calls of new(), set() and get().

    Another exigence is that you need to sleep for while - at least for one second - before you call get() if you want to get useful statistics. The options SysInfo, MemStats, SockStats, DiskUsage, LoadAVG and FileStats are no deltas. If you need only one of this informations you don't need to sleep before the call of get().

    The get() function collects all requested informations and returns a hash reference with the statistics. The inital statistics will be updated. You can turn on and off options with set()

    Requirements:

    · Perl

      


    TAGS:

    collect statistics | system statistics | Perl module | Sys::Statistics::Lin | collect | system



    HTML code for linking to this page:


    Go to top

    Windows tabGames tabDrivers tabMac tabLinux tabScripts tabMobile tabHandheld tabGadgets tabNews tab

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   ENTER NEWS SITE   |   ENGLISH BOARD   |   ROMANIAN FORUM