diff options
author | Kristian Lyngstol <kristian@bohemians.org> | 2016-11-11 15:39:26 +0100 |
---|---|---|
committer | Kristian Lyngstol <kristian@bohemians.org> | 2016-11-11 15:39:26 +0100 |
commit | 179ee8ee548e9eac057a02dc6f626b5c27803fd3 (patch) | |
tree | 6ac44c56249debdc36251b490e63ac42a393246f /build | |
parent | a611aeff3cf50c3cdd56d76a66e7795df57b375e (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 'build')
-rw-r--r-- | build/storage-schemas.conf | 6 | ||||
-rwxr-xr-x | build/test/snmpfetch-misc.sh | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/build/storage-schemas.conf b/build/storage-schemas.conf index 3623365..695ec0e 100644 --- a/build/storage-schemas.conf +++ b/build/storage-schemas.conf @@ -12,10 +12,10 @@ pattern = ^carbon\. retentions = 60:90d [ping] -pattern = ping.* +pattern = ^ping\. retentions = 1s:1d, 1m:20d -[default_1min_for_1day] +[default_1min_for_14day] pattern = .* -retentions = 60s:1d +retentions = 1m:14d diff --git a/build/test/snmpfetch-misc.sh b/build/test/snmpfetch-misc.sh index 0453c59..973e932 100755 --- a/build/test/snmpfetch-misc.sh +++ b/build/test/snmpfetch-misc.sh @@ -1,5 +1,6 @@ #!/bin/bash service snmpd start +mkdir -p /opt/gondul/data cd /opt/gondul/data if [ ! -d mibs ]; then ../extras/tools/get_mibs.sh |