1Sys::Statistics::Linux:U:sLeoradCAoVnGt(r3i)buted Perl DSoycsu:m:eSnttaattiisotnics::Linux::LoadAVG(3)
2
3
4

NAME

6       Sys::Statistics::Linux::LoadAVG - Collect linux load average
7       statistics.
8

SYNOPSIS

10           use Sys::Statistics::Linux::LoadAVG;
11
12           my $lxs  = Sys::Statistics::Linux::LoadAVG->new;
13           my $stat = $lxs->get;
14

DESCRIPTION

16       Sys::Statistics::Linux::LoadAVG gathers the load average from the
17       virtual /proc filesystem (procfs).
18
19       For more information read the documentation of the front-end module
20       Sys::Statistics::Linux.
21

LOAD AVERAGE STATISTICS

23       Generated by /proc/loadavg.
24
25           avg_1   -  The average processor workload of the last minute.
26           avg_5   -  The average processor workload of the last five minutes.
27           avg_15  -  The average processor workload of the last fifteen minutes.
28

METHODS

30   new()
31       Call "new()" to create a new object.
32
33           my $lxs = Sys::Statistics::Linux::LoadAVG->new;
34
35       It's possible to set the path to the proc filesystem.
36
37            Sys::Statistics::Linux::LoadAVG->new(
38               files => {
39                   # This is the default
40                   path    => '/proc',
41                   loadavg => 'loadavg',
42               }
43           );
44
45   get()
46       Call "get()" to get the statistics. "get()" returns the statistics as a
47       hash reference.
48
49           my $stat = $lxs->get;
50

EXPORTS

52       No exports.
53

SEE ALSO

55       proc(5)
56

REPORTING BUGS

58       Please report all bugs to <jschulz.cpan(at)bloonix.de>.
59

AUTHOR

61       Jonny Schulz <jschulz.cpan(at)bloonix.de>.
62
64       Copyright (c) 2006, 2007 by Jonny Schulz. All rights reserved.
65
66       This program is free software; you can redistribute it and/or modify it
67       under the same terms as Perl itself.
68
69
70
71perl v5.34.0                      2022-01-21Sys::Statistics::Linux::LoadAVG(3)
Impressum