CentOS6 で、とにかく Munin を使い始めるための方法をまとめました。http://<ホスト名>/munin/ で対象サーバの上方を閲覧できるようにします。
Munin を EPEL リポジトリで配付されているパッケージを用いてセットアップします。そのために、まずは EPEL リポジトリを有効化します。
# rpm -ivh http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/i386/epel-release-6-8.noarch.rpm
| $ wget -O 0.3.0_linux_amd64.zip https://dl.bintray.com/mitchellh/consul/0.3.0_linux_amd64.zip | |
| $ unzip ./0.3.0_linux_amd64.zip | |
| # cp ./consul /usr/bin/consul |
| version: '3.1' | |
| services: | |
| wordpress: | |
| image: wordpress | |
| restart: always | |
| ports: | |
| - 80:80 | |
| environment: |
| version: "3" | |
| services: | |
| db: | |
| restart: always | |
| image: postgres:alpine | |
| networks: | |
| internal: | |
| ## Uncomment to enable DB persistance | |
| volumes: |
| $ cat docker-compose.yml | |
| version: "2" | |
| services: | |
| voting-app: | |
| image: docker/example-voting-app-voting-app | |
| ports: | |
| - "80" | |
| networks: | |
| - votenet | |
| result-app: |
| version: '2' | |
| services: | |
| zabbix-db: | |
| image: zabbix/zabbix-db-mariadb | |
| volumes: | |
| - zabbix-db-storage:/var/lib/mysql | |
| - backups:/backups | |
| - /etc/localtime:/etc/localtime:ro | |
| environment: | |
| - MARIADB_USER=zabbix |
| $ export $do_token='自分のAPI_token' | |
| $ docker-machine create \ | |
| --driver digitalocean \ | |
| --digitalocean-access-token $do_token \ | |
| --digitalocean-region sgp1 \ | |
| --digitalocean-size 2gb \ | |
| --digitalocean-image centos-7-0-x64 \ | |
| centos7-docker |
| provider "azure" { | |
| publish_settings = "${file("credentials.publishsettings")}" | |
| } | |
| resource "azure_hosted_service" "terraform-service" { | |
| name = "zem03-01a" | |
| location = "Japan East" | |
| ephemeral_contents = false | |
| description = "Hosted service created by Terraform." | |
| label = "tf-hs-01" |
| #!/bin/sh | |
| # | |
| # chkconfig: - 89 11 | |
| # description: serf daemon | |
| # processname: serf | |
| # config: /etc/serf.conf | |
| # Default-Start: | |
| # Default-Stop: 0 1 2 3 4 5 6 | |
| # Description: serf agent daemon |
| #!/bin/sh | |
| while read line | |
| do | |
| echo ${line} | |
| HOSTNAME=`echo ${line} | cut -d ' ' -f 1` | |
| ADDRESS=`echo ${line} | cut -d ' ' -f 2` | |
| case ${SERF_EVENT} in | |
| "member-join") |