aboutsummaryrefslogtreecommitdiffstats
path: root/collectors/ping.pl
diff options
context:
space:
mode:
authorKristian Lyngstøl <kly@kly.no>2017-04-16 01:47:57 +0200
committerKristian Lyngstøl <kly@kly.no>2017-04-16 01:47:57 +0200
commit0b99608227d53c9eebb01fd7f98d1618cbb7a2cf (patch)
treebc7a412d82ced33c10749289228df0cda942e632 /collectors/ping.pl
parentbb862773d69bc5997bd1628a3f0505827e7cfe5c (diff)
TG17 monster commit
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 = ();