This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat > Dockerfile <<\EOF | |
FROM ubuntu:12.04 | |
RUN apt-get update | |
RUN apt-get install -y ruby1.9.3 build-essential \ | |
libc6-dev libffi-dev libgdbm-dev libncurses5-dev \ | |
libreadline-dev libssl-dev libyaml-dev zlib1g-dev | |
RUN gem install fpm --bindir=/usr/bin --no-rdoc --no-ri | |
RUN apt-get install -y curl | |
RUN curl ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p484.tar.gz|tar oxzC /tmp | |
WORKDIR /tmp/ruby-1.9.3-p484 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# We're going to use fpm to create the package. | |
# https://github.com/jordansissel/fpm | |
sudo gem install fpm | |
cd ~ | |
# This is where we'll install the compiled collectd into | |
mkdir ~/collectd-package | |
# Get the source |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
msimmons@nagios:/opt/collectd/etc$ cat collectd.conf | |
# Generated by Puppet | |
#Hostname localhost | |
FQDNLookup true | |
#BaseDir "/var/lib/collectd" | |
#PluginDir "/usr/lib/collectd" | |
#TypesDB "/usr/share/collectd/types.db" "/etc/collectd/my_types.db" | |
Interval 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# | |
# This script needs "fpm". If you dont have it, | |
# run "gem install fpm" | |
# | |
# You also need to "apt-get install python-setuptools" (otherwise fpm fails) | |
clean() { | |
rm -rf whisper-0.9.9 carbon-0.9.9 graphite-web-0.9.9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:hierarchy: | |
- Nodes/%{fqdn} | |
- Domain/%{domain} | |
- %{environment} | |
- common | |
:backends: | |
- yaml | |
- puppet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ModLoad omrelp | |
$RepeatedMsgReduction off | |
$template ls_json,"{\"@version\":1,\"es_environment\":\"dmz\",\"@timestamp\":\"%timestamp:1:19:date-rfc3339%.%timestamp:1:3:date-subseconds%+00:00\",%HOSTNAME:::jsonf:source_host%,\"message\":\"%timestamp% %app-name%:%msg:::json%\",%syslogfacility-text:::jsonf:facility%,%syslogseverity-text:::jsonf:severity%,%app-name:::jsonf:program%,%procid:::jsonf:processid%}" | |
*.* :omrelp:X.X.X.X:21514;ls_json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-rw-rw-r-- 1 vagrant vagrant 50M Oct 23 04:27 /var/cache/omnibus/pkg/collectd_5.4.0-1.ubuntu.12.04_amd64.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This file was autogenerated by puppet. Do not edit manually! | |
* | |
* snowflake Varnish Configuration for APT Cache | |
*/ | |
/* | |
* Backend Servers (APT Repositories) | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- note that this requires the rabbitmq management plugin --> | |
<!-- also requires collectd 5.1 with curl_json plugin support --> | |
<Plugin curl_json> | |
<URL "http://localhost:55672/api/overview"> | |
Instance "rabbitmq_overview" | |
User "guest" | |
Password "guest" | |
<Key "message_stats/publish"> | |
Type "counter" | |
</Key> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl -XDELETE http://localhost:9200/_template/logstash?pretty=true | |
echo | |
echo "Deleted current logstash template..." | |
echo "Creating new logstash template..." | |
sleep 2 |
OlderNewer