aboutsummaryrefslogtreecommitdiffstats
path: root/collectors
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly.no>2016-06-28 17:58:18 +0200
committerKristian Lyngstol <kly@kly.no>2016-06-28 17:58:18 +0200
commit480028f783aea36f7420fac1162a6ff76998fc3e (patch)
treeea771f51389adece15ce999dc64b2340d4faee68 /collectors
parent6f2295c7784492d9347930f49f97a97d3e7b6841 (diff)
Get cisco temperatures too and mix other tweaks
Diffstat (limited to 'collectors')
-rwxr-xr-xcollectors/ping.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/ping.pl b/collectors/ping.pl
index d5acded..b5b1eb4 100755
--- a/collectors/ping.pl
+++ b/collectors/ping.pl
@@ -58,8 +58,8 @@ while (1) {
}
my $result = $ping->ping();
- my %dropped = %{$ping->get_dropped()};
die $ping->get_error if (!defined($result));
+ my %dropped = %{$ping->get_dropped()};
$dbh->do('COPY ping (switch, latency_ms) FROM STDIN'); # date is implicitly now.
my $drops = 0;