SlideShare uma empresa Scribd logo
1 de 25
Baixar para ler offline
Looking
    Under The Covers
Using SNMP to peek inside Erlang
About me




      More stickers than a 40 years old RV!
About us




 Developing a platform for a new breed of social
 networking games
 Scalability is a must
 Back-end developed with Erlang/OTP
    And lots of other good stuff
 Front-end developed with Flex 4
We


     Monitoring
The Expected

Monitoring the Erlang VM
The Fun Stuff

Monitoring your applications' guts
Agenda

 SNMP 101
 SNMP & Erlang
   Agent configuration
   Fixed and dynamic custom objects
   Standard VM / OTP objects
SNMP 101

 Simple Network Management Protocol
    Introduced in 1988
    Control & Monitoring
    Anything with an IP address
    Usually over UDP port 161
    v2 is current, v3 is draft
SNMP 101, cont.
SNMP 101, end

 SNMP world is a tree
 With OIDs
 All our Internet
 are belong to DOD
 You are 1.3.6.1.4.1.*
SNMP 101, end

   Management Information Base (MIB)
   Define what objects are handled by the agent
   "Interesting" syntax

nodeName
  OBJECT-TYPE
    SYNTAX DisplayString
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION "Erlang node name"
    ::= { staticOid 1 }
SNMP & Erlang

 Full SNMP support:

 Manager, agent, traps, queries, security...
 Quickstart:

 http://www.trapexit.org/SNMP_Quick_Start

 Quicksand:
 [3,6,1,4,1,193,19]}. % {ericsson otp}
Erlang SNMP Agent
Getting started: Configuration

  Add all the agent boiler plate configuration
  Create a custom MIB
     Consider getting a Private Enterprise Number
  Compile .mib to .bin
  Compile .bin to .hrl (optional)
     OIDs, default values, ranges
Getting started: Code

application:start(snmp)

snmpa:load_mibs(snmp_master_agent,
         ["snmp/MY-MIB"])

...

snmp_generic:variable_set(objectName,
              objectValue)
Getting started: Tools

  Command line
     snmpwalk
     snmpget
  UI
     tkmib
  Monitoring
     Zabbix, Zenoss, Nagios...
  Graphing
     Cacti...
Lab Time!

            Monitor:
            nodeName
            DisplayString

            gaugeValue
            Gauge32
Creating Dynamic Objects

 Use tables when OID is not fixed
   Indexed rows
 Dynamic OID composed of ASCII codes

 1.3.6.1.4.1.35458.3.70.111.111.1

 ==

 MyOID.Foo.1
SNMP Table: Code

SnmpRow = {Data1, Data2, ..., DataN}

snmpa_local_db:table_create_row(
     tableName,
     Index,
     SnmpRow)

   Index being one of Data...
   Don't forget the .funcs configuration
Lab Time!

            Monitor FS usage:
            /      74%
            /dev     1%
            /var/run 1%
Standard Erlang SNMP

 OTP
    Single agent
    Table of all nodes in a cluster
    General info & stats
 OSMON
    Local node
    Detailed stats
 Good luck to find these MIBs :)
Lab Time!

            Monitor Erlang VM:
            erlNode*
            OTP-MIB

            load*
            OTP-OS-MON-MIB
Moar Infoz!
Thank you!


Raffle courtesy of
Source code
http://www.dossot.net/misc/files/erlang-snmp.tar.gz

Mais conteúdo relacionado

Mais procurados

[Tâm Việt] Kỹ năng đặt câu hỏi
[Tâm Việt] Kỹ năng đặt câu hỏi[Tâm Việt] Kỹ năng đặt câu hỏi
[Tâm Việt] Kỹ năng đặt câu hỏi
Tâm Việt Group
 
Bai tap lap trinh mang(1)
Bai tap lap trinh mang(1)Bai tap lap trinh mang(1)
Bai tap lap trinh mang(1)
Linh Nguyen
 
CÁC PHƯƠNG PHÁP KHÁM MẮT
CÁC PHƯƠNG PHÁP KHÁM MẮTCÁC PHƯƠNG PHÁP KHÁM MẮT
CÁC PHƯƠNG PHÁP KHÁM MẮT
SoM
 
KỸ NĂNG LẬP KẾ HOẠCH HỌC TẬP
KỸ NĂNG LẬP KẾ HOẠCH HỌC TẬPKỸ NĂNG LẬP KẾ HOẠCH HỌC TẬP
KỸ NĂNG LẬP KẾ HOẠCH HỌC TẬP
SoM
 
40 tuyệt chiêu xử lý từ chối dành cho Sale B2B
40 tuyệt chiêu xử lý từ chối dành cho Sale B2B 40 tuyệt chiêu xử lý từ chối dành cho Sale B2B

Mais procurados (20)

Giới thiệu về Blockchain - công nghệ phía sau Bitcoin
Giới thiệu về Blockchain - công nghệ phía sau Bitcoin Giới thiệu về Blockchain - công nghệ phía sau Bitcoin
Giới thiệu về Blockchain - công nghệ phía sau Bitcoin
 
Kỹ năng giao tiếp và chăm sóc khách hàng
Kỹ năng giao tiếp và chăm sóc khách hàngKỹ năng giao tiếp và chăm sóc khách hàng
Kỹ năng giao tiếp và chăm sóc khách hàng
 
Đề tài: Xây dựng hệ thống wifi cho thành phố Vũng Tàu, HOT, 9đ
Đề tài: Xây dựng hệ thống wifi cho thành phố Vũng Tàu, HOT, 9đĐề tài: Xây dựng hệ thống wifi cho thành phố Vũng Tàu, HOT, 9đ
Đề tài: Xây dựng hệ thống wifi cho thành phố Vũng Tàu, HOT, 9đ
 
Tiếp cận liệt 2 chi dưới-tứ chi tại cấp cứu.pdf
Tiếp cận liệt 2 chi dưới-tứ chi tại cấp cứu.pdfTiếp cận liệt 2 chi dưới-tứ chi tại cấp cứu.pdf
Tiếp cận liệt 2 chi dưới-tứ chi tại cấp cứu.pdf
 
Bệnh Học Mắt || VMU ĐH Y Khoa Vinh
Bệnh Học Mắt || VMU ĐH Y Khoa VinhBệnh Học Mắt || VMU ĐH Y Khoa Vinh
Bệnh Học Mắt || VMU ĐH Y Khoa Vinh
 
Báo cáo thực tập làm website bằng Joomla
Báo cáo thực tập làm website bằng JoomlaBáo cáo thực tập làm website bằng Joomla
Báo cáo thực tập làm website bằng Joomla
 
KHỞI NGHIỆP THÔNG MINH
KHỞI NGHIỆP THÔNG MINHKHỞI NGHIỆP THÔNG MINH
KHỞI NGHIỆP THÔNG MINH
 
[Tâm Việt] Kỹ năng đặt câu hỏi
[Tâm Việt] Kỹ năng đặt câu hỏi[Tâm Việt] Kỹ năng đặt câu hỏi
[Tâm Việt] Kỹ năng đặt câu hỏi
 
Khoi nghiep mr.huy
Khoi nghiep mr.huyKhoi nghiep mr.huy
Khoi nghiep mr.huy
 
Slide báo cáo đồ án tốt nghiệp "Website cửa hàng điện thoại trực tuyến"
Slide báo cáo đồ án tốt nghiệp "Website cửa hàng điện thoại trực tuyến"Slide báo cáo đồ án tốt nghiệp "Website cửa hàng điện thoại trực tuyến"
Slide báo cáo đồ án tốt nghiệp "Website cửa hàng điện thoại trực tuyến"
 
Bai tap lap trinh mang(1)
Bai tap lap trinh mang(1)Bai tap lap trinh mang(1)
Bai tap lap trinh mang(1)
 
2022 경희대학교 테크콘서트
2022 경희대학교 테크콘서트2022 경희대학교 테크콘서트
2022 경희대학교 테크콘서트
 
CÁC PHƯƠNG PHÁP KHÁM MẮT
CÁC PHƯƠNG PHÁP KHÁM MẮTCÁC PHƯƠNG PHÁP KHÁM MẮT
CÁC PHƯƠNG PHÁP KHÁM MẮT
 
KỸ NĂNG LẬP KẾ HOẠCH HỌC TẬP
KỸ NĂNG LẬP KẾ HOẠCH HỌC TẬPKỸ NĂNG LẬP KẾ HOẠCH HỌC TẬP
KỸ NĂNG LẬP KẾ HOẠCH HỌC TẬP
 
Kỹ năng giao tiếp Dùng ngôn ngữ tích cực trong Bán hàng và chăm sóc khách hàng
Kỹ năng giao tiếp Dùng ngôn ngữ tích cực trong Bán hàng và chăm sóc khách hàngKỹ năng giao tiếp Dùng ngôn ngữ tích cực trong Bán hàng và chăm sóc khách hàng
Kỹ năng giao tiếp Dùng ngôn ngữ tích cực trong Bán hàng và chăm sóc khách hàng
 
Hướng dẫn lập Kế hoạch Digital marketing từ A-Z
Hướng dẫn lập Kế hoạch Digital marketing từ A-ZHướng dẫn lập Kế hoạch Digital marketing từ A-Z
Hướng dẫn lập Kế hoạch Digital marketing từ A-Z
 
Assignment Skill1013
Assignment Skill1013Assignment Skill1013
Assignment Skill1013
 
Cơ bản về blockchain, bitcoin và ethereum
Cơ bản về blockchain, bitcoin và ethereumCơ bản về blockchain, bitcoin và ethereum
Cơ bản về blockchain, bitcoin và ethereum
 
Hoi chung vui lap (pfs)
Hoi chung vui lap (pfs)Hoi chung vui lap (pfs)
Hoi chung vui lap (pfs)
 
40 tuyệt chiêu xử lý từ chối dành cho Sale B2B
40 tuyệt chiêu xử lý từ chối dành cho Sale B2B 40 tuyệt chiêu xử lý từ chối dành cho Sale B2B
40 tuyệt chiêu xử lý từ chối dành cho Sale B2B
 

Destaque

Destaque (6)

Call me never (full version)
Call me never (full version)Call me never (full version)
Call me never (full version)
 
Introduction To Distributed Erlang
Introduction To Distributed ErlangIntroduction To Distributed Erlang
Introduction To Distributed Erlang
 
Show
ShowShow
Show
 
@ New bab i
@ New bab i@ New bab i
@ New bab i
 
Hype vs. Reality: The AI Explainer
Hype vs. Reality: The AI ExplainerHype vs. Reality: The AI Explainer
Hype vs. Reality: The AI Explainer
 
Study: The Future of VR, AR and Self-Driving Cars
Study: The Future of VR, AR and Self-Driving CarsStudy: The Future of VR, AR and Self-Driving Cars
Study: The Future of VR, AR and Self-Driving Cars
 

Semelhante a Looking under the covers: Using SNMP to peek inside Erlang

Security & ethical hacking
Security & ethical hackingSecurity & ethical hacking
Security & ethical hacking
Amanpreet Singh
 
SNMP Network Tracker Project
SNMP Network Tracker ProjectSNMP Network Tracker Project
SNMP Network Tracker Project
Praveen Mathews
 
0.5mln packets per second with Erlang
0.5mln packets per second with Erlang0.5mln packets per second with Erlang
0.5mln packets per second with Erlang
Maxim Kharchenko
 

Semelhante a Looking under the covers: Using SNMP to peek inside Erlang (20)

OSMC 2017 | SNMP explained by Rob Hassing
OSMC 2017 | SNMP explained by Rob HassingOSMC 2017 | SNMP explained by Rob Hassing
OSMC 2017 | SNMP explained by Rob Hassing
 
Simple Network Management Protocole
Simple Network Management ProtocoleSimple Network Management Protocole
Simple Network Management Protocole
 
an_introduction_to_network_analyzers_new.ppt
an_introduction_to_network_analyzers_new.pptan_introduction_to_network_analyzers_new.ppt
an_introduction_to_network_analyzers_new.ppt
 
Nagios Conference 2013 - Spenser Reinhardt - Intro to Network Monitoring Usin...
Nagios Conference 2013 - Spenser Reinhardt - Intro to Network Monitoring Usin...Nagios Conference 2013 - Spenser Reinhardt - Intro to Network Monitoring Usin...
Nagios Conference 2013 - Spenser Reinhardt - Intro to Network Monitoring Usin...
 
Security & ethical hacking
Security & ethical hackingSecurity & ethical hacking
Security & ethical hacking
 
OSMC 2009 | net-snmp: The forgotten classic by Dr. Michael Schwartzkopff
OSMC 2009 | net-snmp: The forgotten classic by Dr. Michael SchwartzkopffOSMC 2009 | net-snmp: The forgotten classic by Dr. Michael Schwartzkopff
OSMC 2009 | net-snmp: The forgotten classic by Dr. Michael Schwartzkopff
 
SNMP Network Tracker Project
SNMP Network Tracker ProjectSNMP Network Tracker Project
SNMP Network Tracker Project
 
Snmp
SnmpSnmp
Snmp
 
Simple Network Management Protocol
Simple Network Management ProtocolSimple Network Management Protocol
Simple Network Management Protocol
 
SNMP Demystified Part-I
SNMP Demystified Part-ISNMP Demystified Part-I
SNMP Demystified Part-I
 
0.5mln packets per second with Erlang
0.5mln packets per second with Erlang0.5mln packets per second with Erlang
0.5mln packets per second with Erlang
 
Security & ethical hacking p2
Security & ethical hacking p2Security & ethical hacking p2
Security & ethical hacking p2
 
Multicore
MulticoreMulticore
Multicore
 
NMAP - The Network Scanner
NMAP - The Network ScannerNMAP - The Network Scanner
NMAP - The Network Scanner
 
Nmap
NmapNmap
Nmap
 
Snort
SnortSnort
Snort
 
SNMP
SNMPSNMP
SNMP
 
BackTrack5 - Linux
BackTrack5 - LinuxBackTrack5 - Linux
BackTrack5 - Linux
 
001 implementation nms_software
001 implementation nms_software001 implementation nms_software
001 implementation nms_software
 
Snmp chapter7
Snmp chapter7Snmp chapter7
Snmp chapter7
 

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 

Looking under the covers: Using SNMP to peek inside Erlang