Permalink
Browse files

switching to unix socket

  • Loading branch information...
1 parent 60289c8 commit 715d332987c55958b1e481b5fd60c7a5bdc9d840 @itsderek23 itsderek23 committed Jun 9, 2011
Showing with 4 additions and 9 deletions.
  1. +4 −9 rrd_cached/rrd_cached.rb
View
@@ -2,21 +2,16 @@
class RRDCachedMonitor < Scout::Plugin
OPTIONS = <<-EOS
- host:
- name: Host
- notes: The host to monitor
- default: 127.0.0.1
- port:
- name: Port
- notes: The port rrdcached is running on
- default: 42217
+ location:
+ name: UNIX Socket Location
+ default: "/tmp/rrdcached.sock"
EOS
# metrics that should be reported as rates
COUNTERS = %w(UpdatesWritten UpdatesReceived DataSetsWritten FlushesReceived)
def build_report
- s=TCPSocket.new(option(:host),option(:port))
+ s=UNIXSocket.new(option(:location))
s.puts "STATS"
output = String.new

0 comments on commit 715d332

Please sign in to comment.