Reference

statgrab(1)

sysctl-style interface to system statistics

NAME

statgrab - sysctl-style interface to system statistics

SYNOPSIS

statgrab [OPTION]... [STAT]...

DESCRIPTION

statgrab provides a sysctl-style interface to all the system statistics available through libstatgrab. This is useful for applications that don't want to make library calls, but still want to access the statistics.

An example of such an application is mrtg, for which scripts are provided to generate configuration files.

OPTIONS

The following options are supported.

FC-lF[0]

Linux sysctl-style output (default)

FC-bF[0]

BSD sysctl-style output

FC-mF[0]

MRTG-compatible output

FC-uF[0]

Plain output (only show values)

FC-nF[0]

Display cumulative stats once (default)

FC-sF[0]

Display stat differences repeatedly

FC-oF[0]

Display stat differences once

FC-tF[0] DELAY

When repeating, wait DELAY seconds between updates (default 1)

FC-pF[0]

Display CPU usage differences as percentages rather than absolute values

FC-fF[0] FACTOR

Display floating-point values as integers scaled by FACTOR

FC-KF[0]

Display byte counts in kibibytes

FC-MF[0]

Display byte counts in mebibytes

FC-GF[0]

Display byte counts in gibibytes

If no FCSTATF[0] options are given, all will be displayed. Specify 'STAT.' to display all statistics starting with that prefix.

SEE ALSO

statgrab-make-mrtg-config(1) statgrab-make-mrtg-index(1) saidar(1) statgrab(3)

AUTHORS

This man page was derived from the man page written by Bartosz Fenski for the Debian GNU/Linux distribution.

WEBSITE

⟨https://libstatgrab.org/⟩

History

-G until Debian 7 (Wheezy); -K until Debian 7 (Wheezy); -M until Debian 7 (Wheezy); -b until Debian 7 (Wheezy); -f until Debian 7 (Wheezy); -l until Debian 7 (Wheezy); -m until Debian 7 (Wheezy); -n until Debian 7 (Wheezy); -o until Debian 7 (Wheezy); -p until Debian 7 (Wheezy); -s until Debian 7 (Wheezy); -t until Debian 7 (Wheezy); -u until Debian 7 (Wheezy).