Skip to content

Instantly share code, notes, and snippets.

@okisanjp
okisanjp / docker-compose.yml
Last active June 5, 2018 01:52
zabbix3.2 on docker memo : https://gist.github.com/take4/3ee5413649f193938c738d02cc6448eb#file-zabbix-docker-compose-yaml こちら参考にデータ永続化部分の汎用性を高めるためにボリュームを追加
version: '2'
services:
zabbix_db:
container_name: zabbix_db
image: mysql:5.7
command: mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci
volumes:
- zabbix_storage_db:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
ports:
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>2.0</version>
<date>2015-02-01T05:44:35Z</date>
<groups>
<group>
<name>Service Templates</name>
</group>
</groups>
<templates>
@s-tajima
s-tajima / td-agent.conf
Created February 28, 2014 04:01
Configs for benchmarking of ElasticSearch compress.
<match *>
type copy
<store>
type forest
subtype elasticsearch
<template>
id es-test01.${tag}
include_tag_key true
tag_key @tag
host 127.0.0.1
@yuya-takeyama
yuya-takeyama / colorize_access_log.rb
Created February 8, 2011 05:47
Colorizes your Apache's access logs.
#!/usr/bin/env ruby
STDIN.each do |line|
puts line.sub(/"(?:(PUT|POST|GET|HEAD|DELETE|OPTIONS) ([^\s]*)) (HTTP\/\d\.\d)" (\d+)/, "\"\e[1;31m\\1\e[0m \e[1;32m\\2\e[0m \\3\" \e[1;33m\\4\e[0m")
end