diff options
Diffstat (limited to 'collectors')
-rwxr-xr-x | collectors/ping.pl | 2 | ||||
-rwxr-xr-x | collectors/snmpfetchng.pl | 2 |
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, |