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 | |
echo "Checking to see if the Puppet Labs apt repo needs to be added..." | |
if [ ! -f /home/vagrant/repos_added.txt ]; | |
then | |
echo "Adding Puppet Labs apt repository..." | |
sudo wget -N http://apt.puppetlabs.com/puppetlabs-release-quantal.deb >/dev/null | |
sudo dpkg -i puppetlabs-release-quantal.deb >/dev/null | |
echo "Updating apt..." | |
sudo apt-get update >/dev/null |
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/sh | |
# | |
# /etc/rc.d/init.d/logstash | |
# | |
# Starts Logstash as a daemon | |
# | |
# chkconfig: 2345 20 80 | |
# description: Starts Logstash as a daemon | |
### BEGIN INIT INFO |
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 | |
# Perform installation as root | |
# Install prereqs | |
yum -y install libcurl libcurl-devel rrdtool rrdtool-devel rrdtool-prel libgcrypt-devel gcc make gcc-c++ | |
# Get Collectd, untar it, make it and install | |
wget http://collectd.org/files/collectd-5.4.1.tar.gz | |
tar zxvf collectd-5.4.1.tar.gz |
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
; -*- mode: clojure; -*- | |
; vim: filetype=clojure | |
(logging/init {:file "/var/log/riemann/riemann.log"}) | |
; Listen on the local interface over TCP (5555), UDP (5555), and websockets | |
; (5556) | |
(let [host "0.0.0.0"] | |
(tcp-server {:host host}) | |
(udp-server {:host host}) |
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
(let [index (index)] | |
; Inbound events will be passed to the functions that come after (streams... | |
(streams | |
;This is one function. Index all events immediately. | |
index | |
;For each distinct host and service combination | |
(by [:host :service] | |
;Send events to InfluxDB | |
(influxdb |
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
(let [index (index)] | |
; Inbound events will be passed to the functions that come after (streams... | |
(streams | |
;This is one function. Index all events immediately. | |
index | |
;For each distinct host and service combination | |
(by [:host :service] | |
;Send events to InfluxDB | |
(influxdb |
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
#On the client machines being monitored: | |
@@icinga2::objects::host { $::fqdn: | |
display_name => $::fqdn, | |
ipv4_address => $::ipaddress_eth1, | |
target_dir => '/etc/icinga2/conf.d/hosts', | |
target_file_name => "${fqdn}.conf" | |
} | |
#on the Icinga 2 monitoring server: |
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
# Welcome to the InfluxDB configuration file. | |
# If hostname (on the OS) doesn't return a name that can be resolved by the other | |
# systems in the cluster, you'll have to set the hostname to an IP or something | |
# that can be resolved here. | |
hostname = "influxdb1.local" | |
bind-address = "0.0.0.0" | |
# Once every 24 hours InfluxDB will report anonymous data to m.influxdb.com |
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
N O S H N T C A R T N O C G N I D A E R | |
O S F Z B V R D A O L T I H S E Z X L P | |
Y O T N E M N O R I V N E V Y W P Q O B | |
B F S U P P O R T I N G F R S A T I O D | |
E T K T A L C K Q S K B L E T W E B K E | |
Y W O N P E G C C E S M E C E Y R E I G | |
L A Y A P T H O L T H Y V O M L U G N N | |
L R E T R A S M A A O I E N R L T G G A | |
A E R L E R T P I U R Y L F W A C I F H | |
C V O U H A P A T T T O E I A R U N P C |
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
Restarting the Apache and Nagios daemons: | |
```bash | |
sudo service httpd restart | |
sudo service nagios restart | |
``` | |
Daniel Selans and Didp Kerabat are on-call. | |
I'll check to see if the Nagios web UI is avaiable and will check to see if the daemons are running. |
OlderNewer