• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Looking under the covers: Using SNMP to peek inside Erlang
 

Looking under the covers: Using SNMP to peek inside Erlang

on

  • 4,429 views

Slides of the talk I gave at the Erlang meetup on the 20th of April 2010.

Slides of the talk I gave at the Erlang meetup on the 20th of April 2010.

Statistics

Views

Total Views
4,429
Views on SlideShare
4,230
Embed Views
199

Actions

Likes
2
Downloads
54
Comments
0

9 Embeds 199

http://blog.dossot.net 139
http://coderwall.com 42
http://daviddossot.sys-con.com 4
http://www.slideshare.net 3
http://translate.googleusercontent.com 3
http://daviddossot.ulitzer.com 3
http://www.linkedin.com 3
https://daviddossot.sys-con.com 1
http://13243193_52bd539c9fd3bc249c64a1e7d09adc67f27b207a.blogspot.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Looking under the covers: Using SNMP to peek inside Erlang Looking under the covers: Using SNMP to peek inside Erlang Presentation Transcript

    • 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