Skip to content
Browse files

Merge pull request #3 from irabinovitch/master

Quick doc update for spoofing hostnames
  • Loading branch information...
2 parents 6d82a91 + 3bbb9fb commit 52f017077379821b1b00eb2d08d15fb0d038e403 @igrigorik committed May 3, 2012
Showing with 10 additions and 1 deletion.
  1. +10 −1 README.md
View
11 README.md
@@ -16,7 +16,6 @@ Ganglia::GMetric.send("127.0.0.1", 8670, {
:dmax => 300,
:group => 'test'
})
-```
## Example: Generating the Meta and Metric packets
@@ -38,8 +37,18 @@ s = UDPSocket.new
s.connect("127.0.0.1", 8670)
s.send g[0], 0
s.send g[1], 0
+
```
+## Spoofing a hostname in gmetrics ##
+
+To spoof a hostname with the gmetric library you will need to add the following keys to your gmetric.
+This works with both GMetric.send() and GMetric.pack().
+
+* spoof - takes a value of 1 or True
+* hostname - expects a value of ip_address:hostname.
+
+
### License
The MIT License, Copyright (c) 2009 Ilya Grigorik

0 comments on commit 52f0170

Please sign in to comment.
Something went wrong with that request. Please try again.