statgrab(1)

πŸ“¦
version 0.92.1 Β· 2 versions
, in alpine 3.24, arch rolling, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’– statgrab(1) β€” the bestie manual πŸ’–

✨ NAME ✨

statgrab β€” sysctl-style interface to system statistics. That’s the whole vibe, bestie: it’s your sysctl-style hookup to system stats, no cap.

🌸 SYNOPSIS 🌸

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

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so statgrab gives you a sysctl-style interface to all the system statistics available through libstatgrab. It’s useful for applications that don’t want to make library calls but still want to access the statistics β€” main character energy, for sure.

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

πŸ’… OPTIONS πŸ’…

These are the supported options, and yes, the whole lineup is here:

  • -l β€” Linux sysctl-style output (default). It’s giving default behavior, periodt.
  • -b β€” BSD sysctl-style output.
  • -m β€” MRTG-compatible output.
  • -u β€” Plain output (only show values).
  • -n β€” Display cumulative stats once (default).
  • -s β€” Display stat differences repeatedly.
  • -o β€” Display stat differences once.
  • -t DELAY β€” When repeating, wait DELAY seconds between updates (default 1).
  • -p β€” Display CPU usage differences as percentages rather than absolute values.
  • -f FACTOR β€” Display floating-point values as integers scaled by FACTOR.
  • -K β€” Display byte counts in kibibytes.
  • -M β€” Display byte counts in mebibytes.
  • -G β€” Display byte counts in gibibytes.

If no STAT options are given, all will be displayed. Specify 'STAT.' to display all statistics starting with that prefix. Lowkey handy, iykyk.

πŸ”₯ SEE ALSO πŸ”₯

Also peep these: statgrab-make-mrtg-config(1), statgrab-make-mrtg-index(1), saidar(1), and statgrab(3). Bestie cross-references, fr fr.

πŸŽ€ AUTHORS πŸŽ€

This man page is derived from the man page that Bartosz Fenski wrote for the Debian GNU/Linux distribution. Credit where it’s due, bestie πŸ’–.

🌈 WEBSITE 🌈

https://libstatgrab.org/ β€” go click around, it’s giving official site energy πŸ¦‹.

byeee πŸ‘‘ β€” this page is from libstatgrab, dated 2019-03-08, and it’s the statgrab(1) manual. Slay πŸ’