From e162582045377c5e8d5dcebe92f2791a4e33aee7 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 5 Jan 2016 15:12:58 -0800 Subject: [PATCH] Add collectd hack --- images/initializeBaseUbuntuImage.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/images/initializeBaseUbuntuImage.sh b/images/initializeBaseUbuntuImage.sh index bf8a57cc5..853281e49 100755 --- a/images/initializeBaseUbuntuImage.sh +++ b/images/initializeBaseUbuntuImage.sh @@ -182,7 +182,11 @@ echo "==== Install pwgen ====" apt-get -y install pwgen echo "==== Install collectd ===" -apt-get install -y collectd collectd-utils +if ! apt-get install -y collectd collectd-utils; then + # FQDNLookup is true in default debian config. The box code has a custom collectd.conf that fixes this + echo "Failed to install collectd. Presumably because of http://mailman.verplant.org/pipermail/collectd/2015-March/006491.html" + sed -e 's/^FQDNLookup true/FQDNLookup false/' -i /etc/collectd/collectd.conf +fi update-rc.d -f collectd remove # this simply makes it explicit that we run logrotate via cron. it's already part of base ubuntu