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 ruby | |
#http://blog.rubygems.org/2016/04/06/gem-replacement-vulnerability-and-mitigation.html | |
require 'rubygems' # for older rubies | |
require 'rest-client' | |
require 'bundler' | |
require 'time' | |
require 'json' | |
CHECK_GEMS_BEFORE = Time.parse("Feb 9, 2015") |
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/perl | |
# Buchan Milne <[email protected]> 20051213 | |
# Script to monitor OpenLDAP performance and sync-replication status via | |
# Hobbit (may also still work with BigBrother). | |
# | |
# 1)Install Net::LDAP (perl-ldap) and Date::Manip (perl-DateManip) | |
# 2)Run as task from hobbitserver.cfg (or BBEXT in bbdef.sh for BigBrother) | |
# 3)Use ncv in hobbit to collect data: | |
# -add "ol=ncv" to TEST2RRD, and "ncv" to GRAPHS in hobbitserver.cfg |