- 処理系バージョンアップ無し
- ミドルウェア nginxのみ最新(1.9.4), mysqlはインストール済みのものを利用
Result: SUCCESS
RawScore: 2632.6
| apikey = "?" | |
| # metric plugins | |
| [plugin.metrics.nginx] | |
| command = "/usr/bin/mackerel-plugin-nginx" | |
| type = "metric" | |
| [plugin.metrics.linux] | |
| command = "/usr/bin/mackerel-plugin-linux" |
安定の楽しさ!
| # Please append this lines to your config file. | |
| [plugin.metrics.raspberrypi_env_temp] | |
| command = "/usr/local/bin/raspberrypi_env_temp.py" | |
| type = "metric" |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import re | |
| import sys | |
| import hashlib | |
| source = open( sys.argv[1] ).read() | |
| result = re.finditer( r'hash\_([0-9]{6})(\w{32})', source ) |
| #!/bin/bash | |
| DATE=$(date +%s) | |
| echo -e "kvm.guest.state.running\t$(virsh list --uuid | sed '/^$/d' | wc -l)\t${DATE}" | |
| echo -e "kvm.guest.state.inactive\t$(virsh list --inactive --uuid | sed '/^$/d'| wc -l)\t${DATE}" |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import sys | |
| import commands | |
| import datetime | |
| argv = sys.argv | |
| if len( argv ) < 2: | |
| print "usage " + sys.argv[0] + " info_name" |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import sys | |
| import commands | |
| import datetime | |
| unix_time = datetime.datetime.today().strftime('%s') | |
| retval = commands.getstatusoutput( "virt-top -b --stream -n 2 -d 1" ) |
| #!/bin/bash | |
| DATE=$(date +%s) | |
| echo -e "ksm.pages_volatile\t$(cat /sys/kernel/mm/ksm/pages_volatile)\t${DATE}" | |
| echo -e "ksm.pages_shared\t$(cat /sys/kernel/mm/ksm/pages_shared)\t${DATE}" | |
| echo -e "ksm.pages_sharing\t$(cat /sys/kernel/mm/ksm/pages_sharing)\t${DATE}" | |
| echo -e "ksm.pages_unshared\t$(cat /sys/kernel/mm/ksm/pages_unshared)\t${DATE}" |
| #!/bin/bash | |
| # Get current swap usage for all running processes | |
| # Erik Ljungstrom 27/05/2011 | |
| # Updated: 2013-11-13 Yuichiro Saito | |
| SUM=0 | |
| OVERALL=0 | |
| for DIR in `find /proc/ -maxdepth 1 -type d | egrep "^/proc/[0-9]"` ; do | |
| PID=`echo $DIR | cut -d / -f 3` | |
| PROGNAME=`ps -p $PID -o comm --no-headers` | |
| for SWAP in `grep Swap $DIR/smaps 2>/dev/null| awk '{ print $2 }'` |