Brainstorming an ideal landing page for indicating the status of working an Ops/Nagios/PagerDuty alert.
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
server 'localhost', :test | |
server '127.0.0.1', :test2 | |
task :test_serially do | |
serially do | |
run 'date && sleep 5' | |
end | |
end | |
def serially(&block) |
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
{% line_chart value:calls_per_minute regexp:'Database/Redis/[b-z].*' title:'CPM' %} | |
{% line_chart value:average_value regexp:'Database/Redis/[b-z].*' title:'Average Time' %} | |
{% line_chart value:max_value regexp:'Database/Redis/[b-z].*' title:'Max Time' %} | |
{% line_chart value:calls_per_minute regexp:'Database/Redis/allWeb' title:'Redis Web CPM' %} | |
{% line_chart value:calls_per_minute regexp:'Database/Redis/allOther' title:'Redis Background CPM' %} |
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
source :rubygems | |
gem 'rspec' | |
gem 'aruba', :require => 'aruba/api' | |
gem 'test-construct', :require => 'construct' |
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 | |
prog="remote_syslog" | |
config="/etc/log_files.yml" | |
pid_dir="/var/run" | |
EXTRAOPTIONS="" | |
pid_file="$pid_dir/$prog.pid" |
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
# CheckGraphite | |
# A simple framework for writing nagios checks based on Graphite data. | |
# Usage | |
# ----- | |
# | |
# $ cat /tmp/page-queue.coffee | |
# CheckGraphite = require('check-graphite') | |
# |
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
test |
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
testing1234567 |
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 | |
#/ Usage: bench.sh <setup> <command> <teardown> <repeats> | |
set -e | |
[ $# -lt 4 ] && { | |
tail -n +2 "$0" | | |
grep "^#/" | | |
cut -c4- | |
exit 2 | |
} |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
This file is part of **python-openzwave** project https://github.com/OpenZWave/python-openzwave. | |
:platform: Unix, Windows, MacOS X | |
:sinopsis: openzwave wrapper | |
.. moduleauthor:: bibi21000 aka Sébastien GALLET <[email protected]> |