lib/heartbeat-client.rb in heartbeat-client-0.3.1 vs lib/heartbeat-client.rb in heartbeat-client-0.3.2
- old
+ new
@@ -1,9 +1,10 @@
require 'rubygems'
gem 'httparty'
require 'httparty'
require 'logger'
+require 'macaddr'
class Heartbeat
include HTTParty
def self.is_mac?
@@ -79,9 +80,10 @@
options = {
:body => {
:heartbeat => {
:apikey => apikey,
:host => `hostname`.chomp,
+ :macaddr => Mac.addr,
:name => name,
:timestamp => Time.now.to_i,
:values => {
:process_stats => procs,
:load_avg => load_avg,