aboutsummaryrefslogtreecommitdiffstats
path: root/collectors
diff options
context:
space:
mode:
Diffstat (limited to 'collectors')
-rwxr-xr-xcollectors/ping.pl2
-rwxr-xr-xcollectors/snmpfetchng.pl2
2 files changed, 4 insertions, 0 deletions
diff --git a/collectors/ping.pl b/collectors/ping.pl
index 689efd4..6cb3bb5 100755
--- a/collectors/ping.pl
+++ b/collectors/ping.pl
@@ -21,6 +21,8 @@ my $lq = $dbh->prepare("SELECT linknet,addr1,addr2 FROM linknets WHERE addr1 is
my $last = time();
my $target = 0.7;
+# Hack to avoid starting the collector before graphite is up.
+sleep(5);
my $sock = IO::Socket::IP->new(
PeerHost => "$nms::config::graphite_host:$nms::config::graphite_port",
Timeout => 20,
diff --git a/collectors/snmpfetchng.pl b/collectors/snmpfetchng.pl
index ab91e14..7c62ed3 100755
--- a/collectors/snmpfetchng.pl
+++ b/collectors/snmpfetchng.pl
@@ -56,6 +56,8 @@ sub mylog
printf STDERR "[%s] %s\n", $time, $msg;
}
+# Hack to avoid starting the collector before graphite is up.
+sleep(5);
my $sock = IO::Socket::IP->new(
PeerHost => "$nms::config::graphite_host:$nms::config::graphite_port",
Timeout => 20,