aboutsummaryrefslogtreecommitdiffstats
path: root/collectors/ping.pl
diff options
context:
space:
mode:
Diffstat (limited to 'collectors/ping.pl')
-rwxr-xr-xcollectors/ping.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/collectors/ping.pl b/collectors/ping.pl
index 2d181b3..0ad0d1a 100755
--- a/collectors/ping.pl
+++ b/collectors/ping.pl
@@ -20,7 +20,7 @@ my $q = $dbh->prepare("SELECT switch,sysname,host(mgmt_v4_addr) as ip,host(mgmt_
my $lq = $dbh->prepare("SELECT linknet,addr1,addr2 FROM linknets WHERE addr1 is not null and addr2 is not null;");
my $last = time();
-my $target = 1.5;
+my $target = 0.7;
# Hack to avoid starting the collector before graphite is up.
sleep(5);
my $sock = IO::Socket::IP->new(
@@ -38,7 +38,7 @@ while (1) {
$last = time();
# ping loopbacks
my $ping = Net::Oping->new;
- $ping->timeout(0.9);
+ $ping->timeout(0.3);
$q->execute;
my %ip_to_switch = ();