Osc2013 kansai@kyoto ZABBIX-JP クラウド環境監視効率化

Click here to load reader

  • date post

    12-Jun-2015
  • Category

    Documents

  • view

    4.441
  • download

    2

Embed Size (px)

description

OSC2013 Kansai@Kyotoで話したZabbixを使ったクラウド環境監視の資料です。 ZABBIX-JP

Transcript of Osc2013 kansai@kyoto ZABBIX-JP クラウド環境監視効率化

  • 1. ZABBIX-JP Zabbix 2013/08/02 OSC2013 Kansai@Kyoto

2. Zabbix Zabbix () 3. : ZABBIX-JP Twitter: @ike_dai Facebook:https://www.facebook.com/ikedai Zabbix: Chromix(ZabbixChrome Extension) HyClops for Zabbix(AWS,vSphere) ike-dai (http://d.hatena.ne.jp/ike-dai/) Zabbix Conference 2012 @Riga 4. Zabbix OSS ZabbixSIA 2013/08/022.0.7 - Linux - Windows - NW - Zabbix Agent - SNMP - IPMI - - - - ICMPPing - - Web - - HW - SQL 5. Zabbix-- Zabbix Server trapper poller alerter discoverer Shared Memory Apache (Zabbix Frontend) DB Server Zabbix Agent SNMP Agent SNMP Agent dbsyncer 6. Zabbix-- Linux Server1 LinuxServer CPU CPU580% 7. API Zabbix Zabbix 8. 9. ZabbixNetworkReachable IPEC2 ZabbixNWNW ZabbixServer NW 10. Zabbix Proxy 11. Zabbix Proxy Zabbix Server Target Server Target Server Target Server Target Server ZabbixServer-ZabbixProxyOK /ZabbixServer Server-ProxyProxy Server-ProxyNWProxy Zabbix Proxy Target Server Target Server Target Server Target Server A(:) B(:AWS) Active Passive DB DB 12. Zabbix Proxy Active Passive ZabbixProxy PassiveProxy Proxy(zabbix_proxy.conf) ZabbixServer ProxyMode=0 Server= 13. 14. Zabbix Zabbix 15. / Zabbix API 16. () () Zabbix Server or Zabbix Proxy Target Server Target Server Target Server Target Server Zabbix Server or Zabbix Proxy Target Server Target Server Target Server Target Server NW Zabbix Agent Zabbix Agent Zabbix Agent Zabbix Agent NWIPrange - Zabbix Agent - SNMP - ICMP ping - TCP - HTTP AgentZabbixServer () - Hostname - ListenIP - ListenPort NW/ 17. () () Zabbix Server or Zabbix Proxy Target Server Target Server Target Server Target Server Zabbix Server or Zabbix Proxy Target Server Target Server Target Server Target Server NW Zabbix Agent Zabbix Agent Zabbix Agent Zabbix Agent NWIPrange - Zabbix Agent - SNMP - ICMP ping - TCP - HTTP AgentZabbixServer () - Hostname - ListenIP - ListenPort NW/ NW IP ZabbixAgent Zabbix API 18. Zabbix1.8Zabbix - Zabbix() - Zabbix(history,event,IT service) JSON-RPCAPI - URL: http:///zabbix/api_jsonrpc.php - : host.createhost.updateitem.gethistory.get - : host.get { "auth": "xxxxxxx", "method": "host.get", "params": { "output": "extend", "filter": {"host":"Zabbix server"} }, "jsonrpc": "2.0", "id": 1 } { "jsonrpc":"2.0", "result":[{ "maintenances":[], "hostid":"10084", "host":"Zabbix server", }], "id":1 } ZabbixAPI 19. :AWSEC2 ZabbixAPI AWS AWS AWS AWS AWSAPI Scripts DescribeInstances Public DNS(dns-name) Public IP(ip-address) Private IP(private-ip-address) (tag-set) (platform) ZabbixServer ZabbixAPI host.create(host.update) - - - 20. 21. IaaS Zabbix Agent API API Zabbix 22. / Zabbix Agent UserParameter Zabbix Sender 23. API ZabbixAgent UserParameter Zabbix sender ZabbixServer ZabbixAgent API Zabbix Sender Zabbix Trapper Zabbix ExternalCheck Zabbix 24. Server ZabbixServer - 11 - - () - ExternalScripts - Zabbix - 25. AWS CloudWatchAWS API CloudWatchAWS Server 26. UserParameter=monitor.aws[*],/bin/sh monitor_aws.sh $1 AgentUserParameter ZabbixAgent - ZabbixAgent - ZabbixAgent - APIAgent - AgentUserParameter - ZabbixZabbixAgent ([*] ) zabbix_agentd.conf ($1,$2,$3 ) Zabbix Agent monitor.aws[] 27. Zabbix Server DB Zabbix Trapper Zabbix API Zabbix Sender set Zabbix API library set get - Zabbix Trapper - - Agentzabbix_sender $ zabbix_sender -z -s "Zabbix server" -k "sender.test" -o 100 Zabbix sender : Zabbix server : sender.test 100 ZabbixSender 28. : - API - Zabbix Sender ZabbixSender+ API Zabbix ExternalCheck Zabbix Sender Zabbix TrapperZabbix TrapperZabbix TrapperZabbix TrapperZabbix Trapper ZabbixServer API 29. :AWS OS Zabbix Agent OS - Template OS Linux - Template OS Windows AWS EC2 AWS EC2 API - AZ - - - - - AWS EC2 AWS CloudWatch API - CPU - IO - IO - AWS S3 AWS S3 API - AWS AWS CloudWatch API - - 30. 31. 32. 33. Zabbix2 1 A () 2 3 1 2 A () 34. : Operators Managers 35. Zabbix Agent/Zabbix Server Telnet/SSH IPMI : - - APIZabbix Server 36. 37. ZabbixProxy NW/ ZabbixAPI /UserParameter zabbix_sender Zabbix 38. (8/2,8/3) 14F Zabbix Zabbix http://www.zabbix.jp/ ZABBIX-JP 39. Zabbix @ike_dai