Zabbix study

  • View
    8.198

  • Download
    6

Embed Size (px)

Text of Zabbix study

Orange_tamplate

SNMPZabbix

@mikeda

/ @mikeda

CROOZ

qpstudyLT

Zabbix200

API

zabtopZabbixAPI.pm

Zabbix

Zabbix OR SNMPZabbixSNMP

IP

...

Zabbix

Zabbix

cron

IP

&

http://mikeda.jp/zabbix/admin / XXXXXX

Zabbix1.8

1Twitter

Twitter

qpstudy6

TwitterAPI

Screen1

Screen2

TwitterAPITwitterID

1

twitter.userinfo.get[{HOSTNAME1}]

twitter.userinfo.statuses_count ...

TwitterID{HOSTNAME1}

print

IP OR DNS

2

script_name

script_name[ARG1 ...]

& zabbix_sender

Push

zabbix_sender

zabbix_sender -z -s -k -o


TwitteID

TwitterAPI

zabbix_sender

ZabbixServer

OK/NG

11twitter.userinfo[{$HOSTNAME1}, statuses_count]

twitter.userinfo[{$HOSTNAME1}, followers_count]

...

APICron

1

twitter.timeline.get[{HOSTNAME1}]1

twitter.timeline

zabbix_sender

ZabbixServer

OK/NG

zabbix_sender--input-file - --with-timestamp

OK

mikeda twitter.timeline 1302139204 "" mikeda twitter.timeline 1302139191 @oranie "()()()"zabbix_sender

zabbix_sender -c /etc/zabbix/zabbix_agentd.conf --input-file - --with-timestamps

1

2AWS

AWS

Amazon

EC2

RDSELBSQS...

CloudWatch

CloudWatch2

...

Zabbix

RDS (MySQL)

TwitterTwitteAPI CloudWatch AP

MySQL

CloudWatchCLISDKPHP,Java,...

RDS

MySQLDNSMySQL

Screen

CPU

CPU


CloudWatch

1

amazon.rds.get[{$RDS.NAME} {$RDS.REGION}]

amazon.rds.cpu.util.avg ...


MySQL

amazon.rds.mysql_status[Com_select] ...

USER=mikeda;PASS=XXXXXHOST=$1KEY=$2/usr/bin/mysqladmin -u$USER -p$PASS -h$HOST extended-status | awk '{if($2 == "'$KEY'") print $4}'

CloudWatch

MySQLDNSDNS

2

3

PV

ZabbixWEB

Screen

PV

Screen

WEB

Mail

Zabbix

grpavg["{$WEB_GROUP}", "system.cup.load[,avg5]", "last", "0"] grpsum["{$WEB_GROUP}", "http.count[{$WEB_DOMAIN}]", "last","0"] grpsum{"{$MAIL_GROUP}", "mail.count[{$MAIL_DOMAIN}]", "last", "0"]

VirtualHost

3

1WEB

MySQL

1

1

@mikeda

...