statgrab — sysctl-style interface to system statistics
statgrab [OPTION...] [STAT...]
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.
The following options are supported.
-lLinux sysctl-style output (default)
-bBSD sysctl-style output
-mMRTG-compatible output
-uPlain output (only show values)
-nDisplay cumulative stats once (default)
-sDisplay stat differences repeatedly
-oDisplay stat differences once
-t DELAYWhen repeating, wait DELAY seconds between updates (default 1)
-pDisplay CPU usage differences as percentages rather than absolute values
-f FACTORDisplay floating-point values as integers scaled by FACTOR
-KDisplay byte counts in kibibytes
-MDisplay byte counts in mebibytes
-GDisplay byte counts in gibibytes
If no STAT options are given, all will be displayed.
Specify 'STAT.' to display all statistics starting with that prefix.