Skip to content

Instantly share code, notes, and snippets.

View mAster-rAdio's full-sized avatar

Master Radio mAster-rAdio

View GitHub Profile
@mAster-rAdio
mAster-rAdio / innobackupex-2.0.0.diff
Created June 4, 2012 13:11 — forked from kamipo/innobackupex-1.5.1.diff
percona-xtrabackup-2.0.0版
--- innobackupex.org 2012-04-04 03:49:34.000000000 +0900
+++ innobackupex 2012-06-04 22:08:17.000000000 +0900
@@ -1322,10 +1322,19 @@
print FILE "CHANGE MASTER TO MASTER_LOG_FILE='$filename', MASTER_LOG_POS=$position\n";
close(FILE);
+ my $orig_datadir = get_option(\%config, 'mysqld', 'datadir');
+
if ($option_stream) {
+ system("cd $orig_datadir; $stream_cmd master.info")
@mAster-rAdio
mAster-rAdio / check_munin.pl
Created October 4, 2011 11:17
check_munin.pl に http://goo.gl/KpjnAhttp://goo.gl/9O0ii の対応を盛り込んだ。ver 0.9.1
#!/usr/bin/perl -w
# $Id: check_munin.pl
# 2011/10/03 17:34:54
#
# check_munin.pl Copyright (C) 2003 Julien Rottenberg <julien@rottenberg.info>
#
# check_munin.pl can check various modules of a server running munin-node.
#
#
# This program is free software; you can redistribute it and/or
@mAster-rAdio
mAster-rAdio / munin.psgi
Last active August 29, 2015 14:22 — forked from kamipo/gist:474214
Munin.pmがなくなって、設定ファイルの読み込みはMunin/Master/Utils.pmになり、munin_readconfigではなくmunin_readconfig_rawになった。
use strict;
use warnings;
use Plack::Builder;
use Plack::App::Directory;
use Munin::Master::Utils;
use Date::Manip;
use POSIX qw(strftime);
use File::Slurp;
my $GRAPHER = "/usr/share/munin/munin-graph";