system_uptime.rb

Path: lib/facter/system_uptime.rb
Last Update: Tue Mar 01 05:53:03 +0000 2016

Fact: system_uptime

Purpose:

  Return the system uptime in a hash in the forms of
  seconds, hours, days and a general, human
  readable uptime.

  This fact is structured. These values are returned as a group of key-value pairs.

Resolution:

  Does basic math on the get_uptime_seconds utility
  to calculate seconds, hours and days.

Caveats:

Required files

facter/util/uptime  

[Validate]