Skip to content

Instantly share code, notes, and snippets.

View jamtur01's full-sized avatar
💭
I may be slow to respond.

James Turnbull jamtur01

💭
I may be slow to respond.
View GitHub Profile
Interval 2
CheckThresholds true
CollectInternalStats true
LoadPlugin syslog
LoadPlugin cpu
LoadPlugin df
LoadPlugin interface
LoadPlugin load
LoadPlugin memory
epoch,value
1439908088.867,0.000000
1439908090.868,0.000000
1439908092.867,0.000000
1439908094.867,0.000000
1439908098.868,1.000000
1439908403.791,3.000000
1439908403.793,5.000000
1439908405.887,0.000000
Interval 2
CheckThresholds true
LoadPlugin syslog
LoadPlugin cpu
LoadPlugin df
LoadPlugin interface
LoadPlugin load
LoadPlugin memory
LoadPlugin processes
service collectd restart
* Restarting statistics collection and monitoring daemon collectd option = Interval; value = 5.000000;
Created new plugin context.
. . . . . . . . . . . . . . . . [fail]
@jamtur01
jamtur01 / gist:cb68349f7beeba85e5c2
Last active August 29, 2015 14:23
Riemann REPL server
$ git clone http://....
$ cd riemann
$ lein repl :connect 127.0.0.1:5557
-----------------------------------------------------
this realm = plexus.core
Number of imports: 0
-----------------------------------------------------
Exception in thread "main" java.lang.ExceptionInInitializerError (NO_SOURCE_FILE:0)
at clojure.lang.Compiler.eval(Compiler.java:5441)
@jamtur01
jamtur01 / architecture.md
Last active August 29, 2015 14:23
Graphite configuration
        Relay
          |
          |
    |            |
    G1          G2
  |    |     |     |
G1C1 G1C2  G2C1 G2C2

Essentially:

@jamtur01
jamtur01 / gist:3478d914d94a8b6c3beb
Last active August 29, 2015 14:23
Brooklyn venues
BAM - http://www.brooklynmuseum.org/about/rental.php
The Bell House - http://www.thebellhouseny.com/private-events/
Knowndown - http://knockdown.center/about/
Grand Prospect - http://www.grandprospect.com/
BRIC House - http://bricartsmedia.org/about/bric-house/rentals-space-use
Brooklyn Expo Center - http://www.brooklynexpocenter.com/
@jamtur01
jamtur01 / riemann.config
Last active September 10, 2016 16:08
Example of Riemann index lookup a la Nagios Herald
(require 'riemann.common)
(require 'clojure.pprint)
(let [host "0.0.0.0"]
(graphite-server :host host
:port 5559)
(tcp-server :host host)
(udp-server :host host
:max-size 65000)
(repl-server :host host)
(ns examplecom.email
"Riemann email alerting"
(:require [riemann.email :refer :all]
[riemann.common :refer :all]
[clojure.string :as str]
[clojure.pprint :as pp])
)
(def header "Monitoring alert from Riemann\n\n")
(def footer "This is an automated Riemann notification. Please do not reply.")
(ns examplecom.email
"Riemann email alerting"
(:require [riemann.common :refer :all]
[riemann.core :refer :all]
[riemann.email :refer :all])
)
(def header "Monitoring alert from Riemann\n\n")
(def footer "This is an automated Riemann notification. Please do not reply.")