Skip to content

Commit

Permalink
Added -q 2 to all nc commands. Need to rewrite to avoid nc
Browse files Browse the repository at this point in the history
  • Loading branch information
Dewey Sasser committed Dec 2, 2011
1 parent a2f3866 commit e62a0ba
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion graphite-probe-disk-latency
Expand Up @@ -38,7 +38,7 @@ sub main {
if($Config{graphiteHost}) {
my ($host, $port) = split(/:/, $Config{graphiteHost});
$port = 2003 unless $port;
open($graphite, "|nc $host $port") || die("Failed to netcat to $host:$port: $!");
open($graphite, "|nc -q 2 $host $port") || die("Failed to netcat to $host:$port: $!");
select $graphite;
}

Expand Down
2 changes: 1 addition & 1 deletion graphite-probe-linux
Expand Up @@ -50,7 +50,7 @@ sub main {
if($Config{graphiteHost}) {
my ($host, $port) = split(/:/, $Config{graphiteHost});
$port = 2003 unless $port;
open($graphite, "|nc $host $port") || die("Failed to netcat to $host:$port: $!");
open($graphite, "|nc -q 2 $host $port") || die("Failed to netcat to $host:$port: $!");
select $graphite;
}

Expand Down
2 changes: 1 addition & 1 deletion graphite-probe-nfs-server
Expand Up @@ -64,7 +64,7 @@ sub main {
if($Config{graphite}) {
my ($host, $port) = split(/:/, $Config{graphite});
$port = 2003 unless $port;
open($graphite, "| nc $host $port") || die("Failed to write to netcat $host:$port : $!");
open($graphite, "| nc -q 2 $host $port") || die("Failed to write to netcat $host:$port : $!");
select $graphite;
}

Expand Down
2 changes: 1 addition & 1 deletion graphite-probe-sensors
Expand Up @@ -24,7 +24,7 @@ unless(GetOptions(
sub main {
my $graphite;
if($Config{graphite}) {
open($graphite, "|nc $Config{graphite} 2003") || die("Failed to netcat to $Config{graphite}: $!");
open($graphite, "|nc -q 2 $Config{graphite} 2003") || die("Failed to netcat to $Config{graphite}: $!");
select $graphite;
}

Expand Down
2 changes: 1 addition & 1 deletion graphite-probe-smartmon
Expand Up @@ -32,7 +32,7 @@ sub main {

my $graphite;
if($Config{graphite}) {
open($graphite, "|nc $Config{graphite} 2003") || die("Failed to netcat to $Config{graphite}: $!");
open($graphite, "|nc -q 2 $Config{graphite} 2003") || die("Failed to netcat to $Config{graphite}: $!");
select $graphite;
}

Expand Down
2 changes: 1 addition & 1 deletion graphite-probe-vmware-server
Expand Up @@ -44,7 +44,7 @@ sub main {
if($Config{graphiteHost}) {
my ($host, $port) = split(/:/, $Config{graphiteHost});
$port = 2003 unless $port;
open($graphite, "|nc $host $port") || die("Failed to netcat to $host:$port: $!");
open($graphite, "|nc -q 2 $host $port") || die("Failed to netcat to $host:$port: $!");
select $graphite;
}

Expand Down

0 comments on commit e62a0ba

Please sign in to comment.