logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mrtg-uptime - Returns uptime and idle data from /proc/uptime

Authors

       Randolph Chung <tausq@debian.org> is the orginal writer of mrtgutils.

       Luciano Bello <luciano@debian.org> wrote mrtg-uptime and this manpage.

Description

       mrtg-uptime returns the information from /proc/uptime.  The output is written in a form useful as input
       for the MRTG utility.  Every parameter can be accepted twice and allow to control the two values in the
       output, with the exception of -c that only affects idle uptime.

       -t sys|idle
           Sets  the  uptime  parameter  in  the  output.   If just one is set, the other one will be zero.  The
           parameter sys refers to the time the system has been up.  The parameter idle refers to the  time  the
           machine has spent idle.

       -mmultiplier
           Sets  the  multiplier  to  be  used  in  the  output.   For  example, if the value is 280936.41 and a
           multiplier of 100, the output would be 28093641.  If it is defined once, affect both  output  values.
           The default multiplier is 1.

       -u s|m|h|d
           Sets the unit of the parameter.  It can be expressed in (s)econds, (m)inutes, (h)ours, or (d)ays.  If
           it is defined once, affect both output values.  The default is seconds.

       -c#cores
           Because  the  idle  uptime measures the cumulative time each processor, ignoring the amount of cores,
           the resulting value is the sum of how much time each core has spent idle.  This parameter divides the
           value by #cores (an integer) to get the average idle time per core.  Default is 1.

Examples

       Prints the average idle uptime of a core in a dual-core and the system uptime, both in minutes.

           mrtg-uptime -t idle -t sys -u m -c 2

       Prints the uptime in hours and in seconds.

           mrtg-uptime -t sys -u h -t sys -u s

History

       This document first appeared with mrtgutils-0.8.2

mrtgutils 0.8.4                                    2022-04-01                                     MRTG-UPTIME(1)

Name

       mrtg-uptime - Returns uptime and idle data from /proc/uptime

See Also

mrtg(1)

Synopsis

mrtg-uptime ([-t sys|idle] [-mmultiplier] [-u s|m|h|d])*2 [-c#cores]

See Also