aboutsummaryrefslogtreecommitdiffstats
path: root/collectors/snmpfetchng.pl
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2016-11-11 15:39:26 +0100
committerKristian Lyngstol <kristian@bohemians.org>2016-11-11 15:39:26 +0100
commit179ee8ee548e9eac057a02dc6f626b5c27803fd3 (patch)
tree6ac44c56249debdc36251b490e63ac42a393246f /collectors/snmpfetchng.pl
parenta611aeff3cf50c3cdd56d76a66e7795df57b375e (diff)
Various build-tweaks and cache tweaks
- mibs are moved to data/, update gitignore - Adjust cache for switches and switches-management to improve responsiveness when adding new content. - Ensure mibs are correctly loaded if the data directory doesn't exist - Add a small timer to the startup of ping collector/snmp to avoid starting before graphite.
Diffstat (limited to 'collectors/snmpfetchng.pl')
-rwxr-xr-xcollectors/snmpfetchng.pl2
1 files changed, 2 insertions, 0 deletions
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,