Skip to content

Instantly share code, notes, and snippets.

View ssplatt's full-sized avatar

Brett Taylor ssplatt

  • Picwell
  • Philadelphia, PA
View GitHub Profile
@ssplatt
ssplatt / ge_slots_to_dashing.py
Created October 2, 2014 15:51
post number of used slots from GridEngine to Dashing
#!/bin/env python
# stats to dashing
import subprocess
import re
import httplib
import json
# config variables
# dashing host
@ssplatt
ssplatt / http_traffic.json
Created November 5, 2014 16:19
Kibana HTTP Traffic dashboard
{
"title": "HTTP Traffic",
"services": {
"query": {
"list": {
"0": {
"query": "*",
"alias": "",
"color": "#7EB26D",
"id": 0,
@ssplatt
ssplatt / ssh_traffic.json
Created November 5, 2014 16:21
Kibana SSH Traffic dashboard
{
"title": "SSH Traffic",
"services": {
"query": {
"list": {
"0": {
"query": "*",
"alias": "",
"color": "#7EB26D",
"id": 0,
@ssplatt
ssplatt / circus.service
Created May 12, 2015 18:04
taiga circus service for systemd
[Unit]
Description=Circus for Taiga
After=syslog.target
After=network.target
[Service]
Type=simple
User=taiga
Group=taiga
ExecStart=/usr/bin/circusd /home/taiga/circus.ini
@ssplatt
ssplatt / taiga_fedora_commands.txt
Last active May 2, 2018 08:06
Taiga.io install commands for Fedora
==== Fedora 21+ required ====
==== use in conjunction with http://taigaio.github.io/taiga-doc/dist/setup-production.html ====
yum install -y gcc autoconf flex bison libjpeg-turbo-devel
yum install -y freetype-devel zlib-devel zeromq-devel gdbm-devel ncurses-devel
yum install -y automake libtool libffi-devel curl git tmux
yum install -y postgresql postgresql-contrib
yum install -y postgresql-docs postgresql-devel postgresql-server
@ssplatt
ssplatt / elasticsearch.json
Created May 12, 2015 19:03
elasticsearch template for Zenoss ControlCenter
{
"ID": "",
"Name": "Elasticsearch (latest)",
"Description": "Elasticsearch",
"Services": [
{
"Name": "Elasticsearch (latest)",
"Command": "",
"Description": "Elasticsearch",
"Tags": null,
@ssplatt
ssplatt / logstash.json
Created May 12, 2015 19:07
logstash template for Zenoss ControlCenter
{
"ID": "",
"Name": "Logstash (latest)",
"Description": "Logstash",
"Services": [
{
"Name": "Logstash (latest)",
"Command": "",
"Description": "Logstash",
"Tags": null,
@ssplatt
ssplatt / elk.json
Last active September 9, 2020 21:18
ELK stack template for Zenoss Control Center
{
"ID": "",
"Name": "ELK Stack",
"Description": "Elasticsearch, Logstash, and Kibana",
"ConfigFiles": null,
"Services": [
{
"Name": "ELK Stack",
"Command": "",
"Description": "Elasticsearch, Logstash, and Kibana",
@ssplatt
ssplatt / gist:8ba50b6dcdaec5969d2b
Last active August 29, 2015 14:25
ganglia cpu user graph in dashing
require 'httparty'
require 'addressable/uri'
# cpu_user url
uri_cpu = Addressable::URI.escape "http://localhost/ganglia/graph.php?r=hour&title=&vl=&x=&n=&hreg[]=compute&mreg[]=cpu_user&gtype=stack&glegend=hide&aggregate=1&embed=1&_=1410463742829&json=1"
SCHEDULER.every '15s', :first_in => 0 do |job|
points = []
response = HTTParty.get(uri_cpu)
response.each do |host|
@ssplatt
ssplatt / ganglia_mem.rb
Last active August 29, 2015 14:25
ganglia mem data to dashing
require 'httparty'
require 'addressable/uri'
uri = Addressable::URI.escape "graph.php?r=hour&c=Cluster&m=load_one&s=by+name&mc=2&g=mem_report&json=1"
SCHEDULER.every '15s', :first_in => 0 do |job|
points = []
response = HTTParty.get(uri)
response.take(4).each do |data|
step = 0