MRTG-UPTIME(1)
π MRTG-UPTIME π
okay bestie, so this lil cutie lives in the mrtg helper utilities family (the manual name is literally mrtg-uptime, iykyk) and it's here to pull your uptime + idle numbers straight out of /proc/uptime and hand them over all nice and formatted. π«Ά
β¨ NAME β¨
mrtg-uptime β returns uptime and idle data from /proc/uptime
π SYNOPSIS π
mrtg-uptime ([-t sys|idle] [-m multiplier] [-u s|m|h|d])*2 [-c #cores]
πΈ DESCRIPTION πΈ
so mrtg-uptime just reads what's chillin' in /proc/uptime and spits it back out in a shape that the MRTG utility can actually eat. nom nom. π
here's the iconic part: every single parameter can be handed to it twice, which is how you get to control the two values in the output. the one exception is -c, which only ever touches the idle uptime. periodt. π
-t sys|idleβ sets the uptime parameter in the output. if you only set one of them, the other one just sits there being zero.sys= the time the system has been up,idle= the time the machine has spent idle. two little moods, pick your fighter. β¨-m multiplierβ sets the multiplier used in the output. like, if the value is280936.41and you throw a multiplier of100at it, the output becomes28093641. if you define it once, it affects both output values (yes, both, generous queen π). the default multiplier is1.-u s|m|h|dβ sets the unit of the parameter. it can be(s)econds,(m)inutes,(h)ours, or(d)ays. if you define it once, it affects both output values. default is seconds. β±οΈ-c #coresβ okay so this one's a lil detail nobody thinks about: idle uptime measures the cumulative time of each processor, ignoring how many cores you have, so the value you get is the sum of how much time every core spent idle. this parameter divides that value by#cores(an integer) to get the average idle time per core. default is1. we love an average π
π EXAMPLES π
this one prints the average idle uptime of a core in a dual-core and the system uptime, both in minutes. cute.
mrtg-uptime -t idle -t sys -u m -c 2
and this one prints the uptime in hours and in seconds. same param, two vibes, slay.
mrtg-uptime -t sys -u h -t sys -u s
π SEE ALSO π
π«Ά AUTHORS π«Ά
Randolph Chung <tausq@debian.org> is the orginal writer of mrtgutils. (their spelling, not mine, bestie, we keep it exactly as-is π)
Luciano Bello <luciano@debian.org> wrote mrtg-uptime and this manpage. iconic behaviour honestly.
π HISTORY π
this document first appeared with mrtgutils-0.8.2
and that's the whole page, no cap. it's mrtgutils version 0.8.4, dated 2022-04-01 β consider this your cute lil sign-off, go forth and monitor your uptime πβ¨π¦
π¦ where this page comes from
- debian bookworm: mrtgutils 0.8.4-1 Β· GPL-2.0-or-later
- debian trixie: mrtgutils 0.8.4-1 Β· GPL-2.0-or-later
- ubuntu noble: mrtgutils 0.8.4-1 Β· GPL-2.0-or-later
- ubuntu questing: mrtgutils 0.8.4-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms