Skip to content

Instantly share code, notes, and snippets.

View knowledgewarrior's full-sized avatar

Jason Fowler knowledgewarrior

  • Canada
View GitHub Profile
@knowledgewarrior
knowledgewarrior / buildmetrics.rb
Created April 14, 2016 23:24
Calculate build time in Jenkins from first job to last job for one build.
#!/usr/local/bin/ruby
# Ruby script to download metrics from Jenkins
# Jason Fowler March 2015
# cron for job:
#*/30 * * * * /usr/local/bin/ruby /home/ubuntu/buildmetrics/buildmetrics.rb
require 'json'
require 'jenkins_api_client'
@knowledgewarrior
knowledgewarrior / icinga_aws_autoconfig.py
Created April 14, 2016 22:59
Service Discovery for Icinga
#!/usr/bin/env python
###############################
# Autoconfig for Icinga
# to emulate service discovery
# Jason Fowler, Avid Technology
# March 2016
#
# IMPORTANT: - please do a "pip -R requirements.txt" to import all the python tools
# - you need a ".boto" file in your home directory containing your AWS access and secret keys