Running a large munin master is all about herding bottlenecks. Memory, CPU and storage IO are candidates for "bottleneck of the day"
Munin used to be cron driven.
Then we got CGI.
#!/bin/bash | |
# Description:UpdateMotd by screenFetch | |
# References: http://goo.gl/xpWV7L | |
# 2015/07/08 @ysaotome | |
FILE_MOTD='/etc/motd' | |
BIN_DATE='/bin/date' | |
BIN_FIGLET='/usr/bin/figlet' | |
BIN_HOSTNAME='/bin/hostname' |
#!/bin/bash | |
CONSUL="localhost:8500" | |
main() { | |
case "$1" in | |
info) | |
curl -s "$CONSUL/v1/kv/$2" | jq -r .[] | |
;; | |
get) |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"""nginx_error_rate -- Munin plugin to report the error rate in an access log. | |
The access log defaults to `/var/log/nginx/access.log`. This may be | |
customized with the following stanza in your munin plugin conf: | |
[nginx_error_rate] | |
env.access_log /path/to/access.log | |
""" |
#!/bin/bash | |
init_fs01bu() | |
{ | |
usb_modeswitch -t <<EOF | |
DefaultVendor= 0x$1 | |
DefaultProduct= 0x$2 | |
TargetVendor= 0x$3 | |
TargetProduct= 0x$4 | |
MessageEndpoint= not set | |
MessageContent="55534243123456780000000080000606f50402527000000000000000000000" |
#!/bin/bash | |
LOGS_DIR='/var/www/html/logs' | |
THUMBNAIL_BIG_DIR='/var/www/html/thumbnail_big' | |
THUMBNAIL_SMALL_DIR='/var/www/html/thumbnail_small' | |
SCREEN_NUM=${2} | |
for i in `awk '{print $1}' < $1` | |
do |
Wakame Users Group Advent Calendar 2013 12/19を担当
今回Wakame Advent Calendarを機会にVMware PlayerにインストールしたCentOS6.4を上でwakame-vdcとZabbixを使ってインスタンスの監視を行ってみよう思います。
なおVMware PlayerへのCentOS6.4のインストール手順とWakame-vdcの環境構築手順については他の人にまかせてここでは省略させていただきます。
TODO スライドなどへのリンク追加
#!/bin/sh | |
# -*- sh -*- | |
: << =cut | |
=head1 NAME | |
ssh_invalid - Plugin to measure invalid ssh user. | |
=head1 AUTHOR |
ChefとかPuppetとかの勉強会です
次回があるかはわかりませんが、今回はChef成分多めになっております
Twitterハッシュタグ #pfcasual
IRCチャンネル #chef-casual@freenode