Tutorial: Using RIPEstat · RIPE RIPEstat, MENOG 13 1. Querying for a Resource (Web Interface)...
Transcript of Tutorial: Using RIPEstat · RIPE RIPEstat, MENOG 13 1. Querying for a Resource (Web Interface)...
TutorialUsing RIPEstatMENOG 13
Christian Teuschel
RIPE RIPEstat MENOG 13
Recap From the RIPEstat Presentation
bull Information system for Internet number resources
bull Data_ Routing data
- Collected by RIS httprisripenet_ Registration data (whois)
_ RIPE Database amp other RIR databases_ MaxMindrsquos geolocation data_ Blacklist data _ And many more httpsstatripenetdata-sources
2
RIPE RIPEstat MENOG 13
Three Interfaces of RIPEstat
3
httpsstatripenetdatarouting-statusdatajsonresource=AS3333
RIPEstat Web Interface
RIPEstat Widget API
RIPEstat Data API RIPEstat Text
RIPE RIPEstat MENOG 13
RIPEstat Web Interfacebull Finding Information on RIPEstat
4
Search input
Links to most used features
RIPEstat related articles on
RIPE Labs
Recent new features
RIPE RIPEstat MENOG 13
RIPEstat Web Interfacebull Information structure on RIPEstat
5
bull FAQbull Data Sourcesbull Widget Listbull Top Queriesbull Feedback
bull Interfaces amp APIsbull Demosbull Roadmapbull Changelog
bull Notable Network Eventsbull Compare Resultsbull Looking For Abuse Informationbull Global Internet Statistics
RIPE RIPEstat MENOG 13
1 Querying for a Resource (Web Interface)
6
Search box
Your ASN amp network prefix Sample resources
Example Enter ldquoAS3333rdquo in the search box
RIPE RIPEstat MENOG 13
1 Querying for a Resource (Web Interface)
Result page
7
Search box
Widgets grouped into thematic tabs Widgets display
different types of information
RIPE RIPEstat MENOG 13
1 Querying for a Resource (Web Interface) Tasks
_ What network announces 140785090_ Is 192342 routed_ In which country is 9122942023 used_ What is its corresponding INETNUM object_ What widget provides real-time routing status_ By what percent did the number of prefixes announced by Kuwait increase over the last two years
_ How would you share interesting network events with a colleague
8
RIPE RIPEstat MENOG 13
2 MyViewsCreate custom views
9
bull Click theldquoMyViewrdquo Button
bull Drag and drop a widget onto the ldquoMyViewrdquo button
RIPE RIPEstat MENOG 13
2 MyViews
10
Newly created MyView
MyViews are only visible to you An option to share your views will be available soon
RIPE RIPEstat MENOG 13
2 MyViewsCustomise MyViews
11
bull Renamebull Re-orderbull Control visibilitybull Remove
Re-order widgets as you like
RIPE RIPEstat MENOG 13
2 MyViews Tasks
_ Create a RIPE Access account (if you donrsquot already have one)_ Create a MyView for a prefix containing the following widgets
_ Routing Status_ Looking Glass_ Routing History
_ Create another MyView with at least two widgets and give it a meaningful name
12
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)bull Compare results in different widgets
13
Go to ldquoUse Casesrdquo gt ldquoCompare Resultsrdquo
Select a widget
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)bull Compare results in different widgets
14
Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)In-widget comparison
15
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)Tasks
_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page
_ How does the Internet in Kuwait compare to the UK Use in-widget comparison
16
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder
17
Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo
In-depth information about abuse
Enter the IP address
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
18
Email contact to report abuse to
Rating of the contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
19
Details about the resource and abuse contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTasks
_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion
What can you do in these cases_ No abuse contact found_ No response on an abuse report
20
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated
and highly-interactive manner
bull Go to httpsstatripenetwidgetbgplay
21
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
22
Interactive graph visualisation
Control timeline
BGP event ASN orASN path details
Selection timeline
Control panel - Covered time period- RRC selection
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
23
Examples
- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlayTasks
_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network
24
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site Embedding widgets
_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site
_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api
25
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site
26
Prefix Count widget
AS Path Length widget
This ISP embedded widgets on its page
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site (Task)Tasks
_ Create a simple dashboard page to monitor your network_ Create a simple HTML page
_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml
_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo
27
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API
_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)
_ Result codes for a check show the state
28
State Result Code
Ok
Warning
Error
0
1
2
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message
RIPE RIPEstat MENOG 13
Recap From the RIPEstat Presentation
bull Information system for Internet number resources
bull Data_ Routing data
- Collected by RIS httprisripenet_ Registration data (whois)
_ RIPE Database amp other RIR databases_ MaxMindrsquos geolocation data_ Blacklist data _ And many more httpsstatripenetdata-sources
2
RIPE RIPEstat MENOG 13
Three Interfaces of RIPEstat
3
httpsstatripenetdatarouting-statusdatajsonresource=AS3333
RIPEstat Web Interface
RIPEstat Widget API
RIPEstat Data API RIPEstat Text
RIPE RIPEstat MENOG 13
RIPEstat Web Interfacebull Finding Information on RIPEstat
4
Search input
Links to most used features
RIPEstat related articles on
RIPE Labs
Recent new features
RIPE RIPEstat MENOG 13
RIPEstat Web Interfacebull Information structure on RIPEstat
5
bull FAQbull Data Sourcesbull Widget Listbull Top Queriesbull Feedback
bull Interfaces amp APIsbull Demosbull Roadmapbull Changelog
bull Notable Network Eventsbull Compare Resultsbull Looking For Abuse Informationbull Global Internet Statistics
RIPE RIPEstat MENOG 13
1 Querying for a Resource (Web Interface)
6
Search box
Your ASN amp network prefix Sample resources
Example Enter ldquoAS3333rdquo in the search box
RIPE RIPEstat MENOG 13
1 Querying for a Resource (Web Interface)
Result page
7
Search box
Widgets grouped into thematic tabs Widgets display
different types of information
RIPE RIPEstat MENOG 13
1 Querying for a Resource (Web Interface) Tasks
_ What network announces 140785090_ Is 192342 routed_ In which country is 9122942023 used_ What is its corresponding INETNUM object_ What widget provides real-time routing status_ By what percent did the number of prefixes announced by Kuwait increase over the last two years
_ How would you share interesting network events with a colleague
8
RIPE RIPEstat MENOG 13
2 MyViewsCreate custom views
9
bull Click theldquoMyViewrdquo Button
bull Drag and drop a widget onto the ldquoMyViewrdquo button
RIPE RIPEstat MENOG 13
2 MyViews
10
Newly created MyView
MyViews are only visible to you An option to share your views will be available soon
RIPE RIPEstat MENOG 13
2 MyViewsCustomise MyViews
11
bull Renamebull Re-orderbull Control visibilitybull Remove
Re-order widgets as you like
RIPE RIPEstat MENOG 13
2 MyViews Tasks
_ Create a RIPE Access account (if you donrsquot already have one)_ Create a MyView for a prefix containing the following widgets
_ Routing Status_ Looking Glass_ Routing History
_ Create another MyView with at least two widgets and give it a meaningful name
12
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)bull Compare results in different widgets
13
Go to ldquoUse Casesrdquo gt ldquoCompare Resultsrdquo
Select a widget
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)bull Compare results in different widgets
14
Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)In-widget comparison
15
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)Tasks
_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page
_ How does the Internet in Kuwait compare to the UK Use in-widget comparison
16
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder
17
Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo
In-depth information about abuse
Enter the IP address
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
18
Email contact to report abuse to
Rating of the contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
19
Details about the resource and abuse contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTasks
_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion
What can you do in these cases_ No abuse contact found_ No response on an abuse report
20
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated
and highly-interactive manner
bull Go to httpsstatripenetwidgetbgplay
21
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
22
Interactive graph visualisation
Control timeline
BGP event ASN orASN path details
Selection timeline
Control panel - Covered time period- RRC selection
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
23
Examples
- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlayTasks
_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network
24
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site Embedding widgets
_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site
_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api
25
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site
26
Prefix Count widget
AS Path Length widget
This ISP embedded widgets on its page
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site (Task)Tasks
_ Create a simple dashboard page to monitor your network_ Create a simple HTML page
_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml
_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo
27
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API
_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)
_ Result codes for a check show the state
28
State Result Code
Ok
Warning
Error
0
1
2
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message
RIPE RIPEstat MENOG 13
Three Interfaces of RIPEstat
3
httpsstatripenetdatarouting-statusdatajsonresource=AS3333
RIPEstat Web Interface
RIPEstat Widget API
RIPEstat Data API RIPEstat Text
RIPE RIPEstat MENOG 13
RIPEstat Web Interfacebull Finding Information on RIPEstat
4
Search input
Links to most used features
RIPEstat related articles on
RIPE Labs
Recent new features
RIPE RIPEstat MENOG 13
RIPEstat Web Interfacebull Information structure on RIPEstat
5
bull FAQbull Data Sourcesbull Widget Listbull Top Queriesbull Feedback
bull Interfaces amp APIsbull Demosbull Roadmapbull Changelog
bull Notable Network Eventsbull Compare Resultsbull Looking For Abuse Informationbull Global Internet Statistics
RIPE RIPEstat MENOG 13
1 Querying for a Resource (Web Interface)
6
Search box
Your ASN amp network prefix Sample resources
Example Enter ldquoAS3333rdquo in the search box
RIPE RIPEstat MENOG 13
1 Querying for a Resource (Web Interface)
Result page
7
Search box
Widgets grouped into thematic tabs Widgets display
different types of information
RIPE RIPEstat MENOG 13
1 Querying for a Resource (Web Interface) Tasks
_ What network announces 140785090_ Is 192342 routed_ In which country is 9122942023 used_ What is its corresponding INETNUM object_ What widget provides real-time routing status_ By what percent did the number of prefixes announced by Kuwait increase over the last two years
_ How would you share interesting network events with a colleague
8
RIPE RIPEstat MENOG 13
2 MyViewsCreate custom views
9
bull Click theldquoMyViewrdquo Button
bull Drag and drop a widget onto the ldquoMyViewrdquo button
RIPE RIPEstat MENOG 13
2 MyViews
10
Newly created MyView
MyViews are only visible to you An option to share your views will be available soon
RIPE RIPEstat MENOG 13
2 MyViewsCustomise MyViews
11
bull Renamebull Re-orderbull Control visibilitybull Remove
Re-order widgets as you like
RIPE RIPEstat MENOG 13
2 MyViews Tasks
_ Create a RIPE Access account (if you donrsquot already have one)_ Create a MyView for a prefix containing the following widgets
_ Routing Status_ Looking Glass_ Routing History
_ Create another MyView with at least two widgets and give it a meaningful name
12
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)bull Compare results in different widgets
13
Go to ldquoUse Casesrdquo gt ldquoCompare Resultsrdquo
Select a widget
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)bull Compare results in different widgets
14
Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)In-widget comparison
15
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)Tasks
_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page
_ How does the Internet in Kuwait compare to the UK Use in-widget comparison
16
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder
17
Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo
In-depth information about abuse
Enter the IP address
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
18
Email contact to report abuse to
Rating of the contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
19
Details about the resource and abuse contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTasks
_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion
What can you do in these cases_ No abuse contact found_ No response on an abuse report
20
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated
and highly-interactive manner
bull Go to httpsstatripenetwidgetbgplay
21
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
22
Interactive graph visualisation
Control timeline
BGP event ASN orASN path details
Selection timeline
Control panel - Covered time period- RRC selection
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
23
Examples
- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlayTasks
_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network
24
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site Embedding widgets
_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site
_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api
25
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site
26
Prefix Count widget
AS Path Length widget
This ISP embedded widgets on its page
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site (Task)Tasks
_ Create a simple dashboard page to monitor your network_ Create a simple HTML page
_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml
_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo
27
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API
_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)
_ Result codes for a check show the state
28
State Result Code
Ok
Warning
Error
0
1
2
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message
RIPE RIPEstat MENOG 13
RIPEstat Web Interfacebull Finding Information on RIPEstat
4
Search input
Links to most used features
RIPEstat related articles on
RIPE Labs
Recent new features
RIPE RIPEstat MENOG 13
RIPEstat Web Interfacebull Information structure on RIPEstat
5
bull FAQbull Data Sourcesbull Widget Listbull Top Queriesbull Feedback
bull Interfaces amp APIsbull Demosbull Roadmapbull Changelog
bull Notable Network Eventsbull Compare Resultsbull Looking For Abuse Informationbull Global Internet Statistics
RIPE RIPEstat MENOG 13
1 Querying for a Resource (Web Interface)
6
Search box
Your ASN amp network prefix Sample resources
Example Enter ldquoAS3333rdquo in the search box
RIPE RIPEstat MENOG 13
1 Querying for a Resource (Web Interface)
Result page
7
Search box
Widgets grouped into thematic tabs Widgets display
different types of information
RIPE RIPEstat MENOG 13
1 Querying for a Resource (Web Interface) Tasks
_ What network announces 140785090_ Is 192342 routed_ In which country is 9122942023 used_ What is its corresponding INETNUM object_ What widget provides real-time routing status_ By what percent did the number of prefixes announced by Kuwait increase over the last two years
_ How would you share interesting network events with a colleague
8
RIPE RIPEstat MENOG 13
2 MyViewsCreate custom views
9
bull Click theldquoMyViewrdquo Button
bull Drag and drop a widget onto the ldquoMyViewrdquo button
RIPE RIPEstat MENOG 13
2 MyViews
10
Newly created MyView
MyViews are only visible to you An option to share your views will be available soon
RIPE RIPEstat MENOG 13
2 MyViewsCustomise MyViews
11
bull Renamebull Re-orderbull Control visibilitybull Remove
Re-order widgets as you like
RIPE RIPEstat MENOG 13
2 MyViews Tasks
_ Create a RIPE Access account (if you donrsquot already have one)_ Create a MyView for a prefix containing the following widgets
_ Routing Status_ Looking Glass_ Routing History
_ Create another MyView with at least two widgets and give it a meaningful name
12
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)bull Compare results in different widgets
13
Go to ldquoUse Casesrdquo gt ldquoCompare Resultsrdquo
Select a widget
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)bull Compare results in different widgets
14
Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)In-widget comparison
15
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)Tasks
_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page
_ How does the Internet in Kuwait compare to the UK Use in-widget comparison
16
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder
17
Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo
In-depth information about abuse
Enter the IP address
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
18
Email contact to report abuse to
Rating of the contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
19
Details about the resource and abuse contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTasks
_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion
What can you do in these cases_ No abuse contact found_ No response on an abuse report
20
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated
and highly-interactive manner
bull Go to httpsstatripenetwidgetbgplay
21
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
22
Interactive graph visualisation
Control timeline
BGP event ASN orASN path details
Selection timeline
Control panel - Covered time period- RRC selection
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
23
Examples
- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlayTasks
_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network
24
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site Embedding widgets
_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site
_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api
25
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site
26
Prefix Count widget
AS Path Length widget
This ISP embedded widgets on its page
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site (Task)Tasks
_ Create a simple dashboard page to monitor your network_ Create a simple HTML page
_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml
_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo
27
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API
_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)
_ Result codes for a check show the state
28
State Result Code
Ok
Warning
Error
0
1
2
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message
RIPE RIPEstat MENOG 13
RIPEstat Web Interfacebull Information structure on RIPEstat
5
bull FAQbull Data Sourcesbull Widget Listbull Top Queriesbull Feedback
bull Interfaces amp APIsbull Demosbull Roadmapbull Changelog
bull Notable Network Eventsbull Compare Resultsbull Looking For Abuse Informationbull Global Internet Statistics
RIPE RIPEstat MENOG 13
1 Querying for a Resource (Web Interface)
6
Search box
Your ASN amp network prefix Sample resources
Example Enter ldquoAS3333rdquo in the search box
RIPE RIPEstat MENOG 13
1 Querying for a Resource (Web Interface)
Result page
7
Search box
Widgets grouped into thematic tabs Widgets display
different types of information
RIPE RIPEstat MENOG 13
1 Querying for a Resource (Web Interface) Tasks
_ What network announces 140785090_ Is 192342 routed_ In which country is 9122942023 used_ What is its corresponding INETNUM object_ What widget provides real-time routing status_ By what percent did the number of prefixes announced by Kuwait increase over the last two years
_ How would you share interesting network events with a colleague
8
RIPE RIPEstat MENOG 13
2 MyViewsCreate custom views
9
bull Click theldquoMyViewrdquo Button
bull Drag and drop a widget onto the ldquoMyViewrdquo button
RIPE RIPEstat MENOG 13
2 MyViews
10
Newly created MyView
MyViews are only visible to you An option to share your views will be available soon
RIPE RIPEstat MENOG 13
2 MyViewsCustomise MyViews
11
bull Renamebull Re-orderbull Control visibilitybull Remove
Re-order widgets as you like
RIPE RIPEstat MENOG 13
2 MyViews Tasks
_ Create a RIPE Access account (if you donrsquot already have one)_ Create a MyView for a prefix containing the following widgets
_ Routing Status_ Looking Glass_ Routing History
_ Create another MyView with at least two widgets and give it a meaningful name
12
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)bull Compare results in different widgets
13
Go to ldquoUse Casesrdquo gt ldquoCompare Resultsrdquo
Select a widget
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)bull Compare results in different widgets
14
Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)In-widget comparison
15
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)Tasks
_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page
_ How does the Internet in Kuwait compare to the UK Use in-widget comparison
16
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder
17
Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo
In-depth information about abuse
Enter the IP address
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
18
Email contact to report abuse to
Rating of the contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
19
Details about the resource and abuse contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTasks
_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion
What can you do in these cases_ No abuse contact found_ No response on an abuse report
20
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated
and highly-interactive manner
bull Go to httpsstatripenetwidgetbgplay
21
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
22
Interactive graph visualisation
Control timeline
BGP event ASN orASN path details
Selection timeline
Control panel - Covered time period- RRC selection
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
23
Examples
- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlayTasks
_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network
24
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site Embedding widgets
_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site
_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api
25
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site
26
Prefix Count widget
AS Path Length widget
This ISP embedded widgets on its page
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site (Task)Tasks
_ Create a simple dashboard page to monitor your network_ Create a simple HTML page
_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml
_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo
27
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API
_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)
_ Result codes for a check show the state
28
State Result Code
Ok
Warning
Error
0
1
2
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message
RIPE RIPEstat MENOG 13
1 Querying for a Resource (Web Interface)
6
Search box
Your ASN amp network prefix Sample resources
Example Enter ldquoAS3333rdquo in the search box
RIPE RIPEstat MENOG 13
1 Querying for a Resource (Web Interface)
Result page
7
Search box
Widgets grouped into thematic tabs Widgets display
different types of information
RIPE RIPEstat MENOG 13
1 Querying for a Resource (Web Interface) Tasks
_ What network announces 140785090_ Is 192342 routed_ In which country is 9122942023 used_ What is its corresponding INETNUM object_ What widget provides real-time routing status_ By what percent did the number of prefixes announced by Kuwait increase over the last two years
_ How would you share interesting network events with a colleague
8
RIPE RIPEstat MENOG 13
2 MyViewsCreate custom views
9
bull Click theldquoMyViewrdquo Button
bull Drag and drop a widget onto the ldquoMyViewrdquo button
RIPE RIPEstat MENOG 13
2 MyViews
10
Newly created MyView
MyViews are only visible to you An option to share your views will be available soon
RIPE RIPEstat MENOG 13
2 MyViewsCustomise MyViews
11
bull Renamebull Re-orderbull Control visibilitybull Remove
Re-order widgets as you like
RIPE RIPEstat MENOG 13
2 MyViews Tasks
_ Create a RIPE Access account (if you donrsquot already have one)_ Create a MyView for a prefix containing the following widgets
_ Routing Status_ Looking Glass_ Routing History
_ Create another MyView with at least two widgets and give it a meaningful name
12
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)bull Compare results in different widgets
13
Go to ldquoUse Casesrdquo gt ldquoCompare Resultsrdquo
Select a widget
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)bull Compare results in different widgets
14
Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)In-widget comparison
15
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)Tasks
_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page
_ How does the Internet in Kuwait compare to the UK Use in-widget comparison
16
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder
17
Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo
In-depth information about abuse
Enter the IP address
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
18
Email contact to report abuse to
Rating of the contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
19
Details about the resource and abuse contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTasks
_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion
What can you do in these cases_ No abuse contact found_ No response on an abuse report
20
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated
and highly-interactive manner
bull Go to httpsstatripenetwidgetbgplay
21
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
22
Interactive graph visualisation
Control timeline
BGP event ASN orASN path details
Selection timeline
Control panel - Covered time period- RRC selection
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
23
Examples
- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlayTasks
_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network
24
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site Embedding widgets
_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site
_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api
25
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site
26
Prefix Count widget
AS Path Length widget
This ISP embedded widgets on its page
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site (Task)Tasks
_ Create a simple dashboard page to monitor your network_ Create a simple HTML page
_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml
_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo
27
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API
_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)
_ Result codes for a check show the state
28
State Result Code
Ok
Warning
Error
0
1
2
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message
RIPE RIPEstat MENOG 13
1 Querying for a Resource (Web Interface)
Result page
7
Search box
Widgets grouped into thematic tabs Widgets display
different types of information
RIPE RIPEstat MENOG 13
1 Querying for a Resource (Web Interface) Tasks
_ What network announces 140785090_ Is 192342 routed_ In which country is 9122942023 used_ What is its corresponding INETNUM object_ What widget provides real-time routing status_ By what percent did the number of prefixes announced by Kuwait increase over the last two years
_ How would you share interesting network events with a colleague
8
RIPE RIPEstat MENOG 13
2 MyViewsCreate custom views
9
bull Click theldquoMyViewrdquo Button
bull Drag and drop a widget onto the ldquoMyViewrdquo button
RIPE RIPEstat MENOG 13
2 MyViews
10
Newly created MyView
MyViews are only visible to you An option to share your views will be available soon
RIPE RIPEstat MENOG 13
2 MyViewsCustomise MyViews
11
bull Renamebull Re-orderbull Control visibilitybull Remove
Re-order widgets as you like
RIPE RIPEstat MENOG 13
2 MyViews Tasks
_ Create a RIPE Access account (if you donrsquot already have one)_ Create a MyView for a prefix containing the following widgets
_ Routing Status_ Looking Glass_ Routing History
_ Create another MyView with at least two widgets and give it a meaningful name
12
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)bull Compare results in different widgets
13
Go to ldquoUse Casesrdquo gt ldquoCompare Resultsrdquo
Select a widget
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)bull Compare results in different widgets
14
Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)In-widget comparison
15
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)Tasks
_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page
_ How does the Internet in Kuwait compare to the UK Use in-widget comparison
16
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder
17
Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo
In-depth information about abuse
Enter the IP address
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
18
Email contact to report abuse to
Rating of the contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
19
Details about the resource and abuse contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTasks
_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion
What can you do in these cases_ No abuse contact found_ No response on an abuse report
20
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated
and highly-interactive manner
bull Go to httpsstatripenetwidgetbgplay
21
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
22
Interactive graph visualisation
Control timeline
BGP event ASN orASN path details
Selection timeline
Control panel - Covered time period- RRC selection
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
23
Examples
- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlayTasks
_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network
24
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site Embedding widgets
_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site
_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api
25
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site
26
Prefix Count widget
AS Path Length widget
This ISP embedded widgets on its page
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site (Task)Tasks
_ Create a simple dashboard page to monitor your network_ Create a simple HTML page
_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml
_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo
27
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API
_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)
_ Result codes for a check show the state
28
State Result Code
Ok
Warning
Error
0
1
2
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message
RIPE RIPEstat MENOG 13
1 Querying for a Resource (Web Interface) Tasks
_ What network announces 140785090_ Is 192342 routed_ In which country is 9122942023 used_ What is its corresponding INETNUM object_ What widget provides real-time routing status_ By what percent did the number of prefixes announced by Kuwait increase over the last two years
_ How would you share interesting network events with a colleague
8
RIPE RIPEstat MENOG 13
2 MyViewsCreate custom views
9
bull Click theldquoMyViewrdquo Button
bull Drag and drop a widget onto the ldquoMyViewrdquo button
RIPE RIPEstat MENOG 13
2 MyViews
10
Newly created MyView
MyViews are only visible to you An option to share your views will be available soon
RIPE RIPEstat MENOG 13
2 MyViewsCustomise MyViews
11
bull Renamebull Re-orderbull Control visibilitybull Remove
Re-order widgets as you like
RIPE RIPEstat MENOG 13
2 MyViews Tasks
_ Create a RIPE Access account (if you donrsquot already have one)_ Create a MyView for a prefix containing the following widgets
_ Routing Status_ Looking Glass_ Routing History
_ Create another MyView with at least two widgets and give it a meaningful name
12
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)bull Compare results in different widgets
13
Go to ldquoUse Casesrdquo gt ldquoCompare Resultsrdquo
Select a widget
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)bull Compare results in different widgets
14
Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)In-widget comparison
15
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)Tasks
_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page
_ How does the Internet in Kuwait compare to the UK Use in-widget comparison
16
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder
17
Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo
In-depth information about abuse
Enter the IP address
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
18
Email contact to report abuse to
Rating of the contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
19
Details about the resource and abuse contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTasks
_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion
What can you do in these cases_ No abuse contact found_ No response on an abuse report
20
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated
and highly-interactive manner
bull Go to httpsstatripenetwidgetbgplay
21
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
22
Interactive graph visualisation
Control timeline
BGP event ASN orASN path details
Selection timeline
Control panel - Covered time period- RRC selection
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
23
Examples
- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlayTasks
_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network
24
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site Embedding widgets
_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site
_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api
25
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site
26
Prefix Count widget
AS Path Length widget
This ISP embedded widgets on its page
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site (Task)Tasks
_ Create a simple dashboard page to monitor your network_ Create a simple HTML page
_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml
_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo
27
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API
_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)
_ Result codes for a check show the state
28
State Result Code
Ok
Warning
Error
0
1
2
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message
RIPE RIPEstat MENOG 13
2 MyViewsCreate custom views
9
bull Click theldquoMyViewrdquo Button
bull Drag and drop a widget onto the ldquoMyViewrdquo button
RIPE RIPEstat MENOG 13
2 MyViews
10
Newly created MyView
MyViews are only visible to you An option to share your views will be available soon
RIPE RIPEstat MENOG 13
2 MyViewsCustomise MyViews
11
bull Renamebull Re-orderbull Control visibilitybull Remove
Re-order widgets as you like
RIPE RIPEstat MENOG 13
2 MyViews Tasks
_ Create a RIPE Access account (if you donrsquot already have one)_ Create a MyView for a prefix containing the following widgets
_ Routing Status_ Looking Glass_ Routing History
_ Create another MyView with at least two widgets and give it a meaningful name
12
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)bull Compare results in different widgets
13
Go to ldquoUse Casesrdquo gt ldquoCompare Resultsrdquo
Select a widget
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)bull Compare results in different widgets
14
Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)In-widget comparison
15
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)Tasks
_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page
_ How does the Internet in Kuwait compare to the UK Use in-widget comparison
16
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder
17
Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo
In-depth information about abuse
Enter the IP address
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
18
Email contact to report abuse to
Rating of the contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
19
Details about the resource and abuse contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTasks
_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion
What can you do in these cases_ No abuse contact found_ No response on an abuse report
20
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated
and highly-interactive manner
bull Go to httpsstatripenetwidgetbgplay
21
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
22
Interactive graph visualisation
Control timeline
BGP event ASN orASN path details
Selection timeline
Control panel - Covered time period- RRC selection
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
23
Examples
- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlayTasks
_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network
24
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site Embedding widgets
_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site
_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api
25
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site
26
Prefix Count widget
AS Path Length widget
This ISP embedded widgets on its page
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site (Task)Tasks
_ Create a simple dashboard page to monitor your network_ Create a simple HTML page
_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml
_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo
27
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API
_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)
_ Result codes for a check show the state
28
State Result Code
Ok
Warning
Error
0
1
2
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message
RIPE RIPEstat MENOG 13
2 MyViews
10
Newly created MyView
MyViews are only visible to you An option to share your views will be available soon
RIPE RIPEstat MENOG 13
2 MyViewsCustomise MyViews
11
bull Renamebull Re-orderbull Control visibilitybull Remove
Re-order widgets as you like
RIPE RIPEstat MENOG 13
2 MyViews Tasks
_ Create a RIPE Access account (if you donrsquot already have one)_ Create a MyView for a prefix containing the following widgets
_ Routing Status_ Looking Glass_ Routing History
_ Create another MyView with at least two widgets and give it a meaningful name
12
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)bull Compare results in different widgets
13
Go to ldquoUse Casesrdquo gt ldquoCompare Resultsrdquo
Select a widget
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)bull Compare results in different widgets
14
Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)In-widget comparison
15
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)Tasks
_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page
_ How does the Internet in Kuwait compare to the UK Use in-widget comparison
16
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder
17
Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo
In-depth information about abuse
Enter the IP address
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
18
Email contact to report abuse to
Rating of the contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
19
Details about the resource and abuse contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTasks
_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion
What can you do in these cases_ No abuse contact found_ No response on an abuse report
20
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated
and highly-interactive manner
bull Go to httpsstatripenetwidgetbgplay
21
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
22
Interactive graph visualisation
Control timeline
BGP event ASN orASN path details
Selection timeline
Control panel - Covered time period- RRC selection
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
23
Examples
- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlayTasks
_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network
24
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site Embedding widgets
_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site
_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api
25
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site
26
Prefix Count widget
AS Path Length widget
This ISP embedded widgets on its page
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site (Task)Tasks
_ Create a simple dashboard page to monitor your network_ Create a simple HTML page
_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml
_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo
27
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API
_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)
_ Result codes for a check show the state
28
State Result Code
Ok
Warning
Error
0
1
2
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message
RIPE RIPEstat MENOG 13
2 MyViewsCustomise MyViews
11
bull Renamebull Re-orderbull Control visibilitybull Remove
Re-order widgets as you like
RIPE RIPEstat MENOG 13
2 MyViews Tasks
_ Create a RIPE Access account (if you donrsquot already have one)_ Create a MyView for a prefix containing the following widgets
_ Routing Status_ Looking Glass_ Routing History
_ Create another MyView with at least two widgets and give it a meaningful name
12
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)bull Compare results in different widgets
13
Go to ldquoUse Casesrdquo gt ldquoCompare Resultsrdquo
Select a widget
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)bull Compare results in different widgets
14
Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)In-widget comparison
15
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)Tasks
_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page
_ How does the Internet in Kuwait compare to the UK Use in-widget comparison
16
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder
17
Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo
In-depth information about abuse
Enter the IP address
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
18
Email contact to report abuse to
Rating of the contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
19
Details about the resource and abuse contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTasks
_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion
What can you do in these cases_ No abuse contact found_ No response on an abuse report
20
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated
and highly-interactive manner
bull Go to httpsstatripenetwidgetbgplay
21
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
22
Interactive graph visualisation
Control timeline
BGP event ASN orASN path details
Selection timeline
Control panel - Covered time period- RRC selection
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
23
Examples
- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlayTasks
_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network
24
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site Embedding widgets
_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site
_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api
25
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site
26
Prefix Count widget
AS Path Length widget
This ISP embedded widgets on its page
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site (Task)Tasks
_ Create a simple dashboard page to monitor your network_ Create a simple HTML page
_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml
_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo
27
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API
_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)
_ Result codes for a check show the state
28
State Result Code
Ok
Warning
Error
0
1
2
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message
RIPE RIPEstat MENOG 13
2 MyViews Tasks
_ Create a RIPE Access account (if you donrsquot already have one)_ Create a MyView for a prefix containing the following widgets
_ Routing Status_ Looking Glass_ Routing History
_ Create another MyView with at least two widgets and give it a meaningful name
12
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)bull Compare results in different widgets
13
Go to ldquoUse Casesrdquo gt ldquoCompare Resultsrdquo
Select a widget
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)bull Compare results in different widgets
14
Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)In-widget comparison
15
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)Tasks
_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page
_ How does the Internet in Kuwait compare to the UK Use in-widget comparison
16
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder
17
Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo
In-depth information about abuse
Enter the IP address
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
18
Email contact to report abuse to
Rating of the contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
19
Details about the resource and abuse contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTasks
_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion
What can you do in these cases_ No abuse contact found_ No response on an abuse report
20
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated
and highly-interactive manner
bull Go to httpsstatripenetwidgetbgplay
21
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
22
Interactive graph visualisation
Control timeline
BGP event ASN orASN path details
Selection timeline
Control panel - Covered time period- RRC selection
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
23
Examples
- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlayTasks
_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network
24
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site Embedding widgets
_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site
_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api
25
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site
26
Prefix Count widget
AS Path Length widget
This ISP embedded widgets on its page
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site (Task)Tasks
_ Create a simple dashboard page to monitor your network_ Create a simple HTML page
_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml
_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo
27
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API
_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)
_ Result codes for a check show the state
28
State Result Code
Ok
Warning
Error
0
1
2
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)bull Compare results in different widgets
13
Go to ldquoUse Casesrdquo gt ldquoCompare Resultsrdquo
Select a widget
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)bull Compare results in different widgets
14
Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)In-widget comparison
15
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)Tasks
_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page
_ How does the Internet in Kuwait compare to the UK Use in-widget comparison
16
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder
17
Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo
In-depth information about abuse
Enter the IP address
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
18
Email contact to report abuse to
Rating of the contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
19
Details about the resource and abuse contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTasks
_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion
What can you do in these cases_ No abuse contact found_ No response on an abuse report
20
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated
and highly-interactive manner
bull Go to httpsstatripenetwidgetbgplay
21
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
22
Interactive graph visualisation
Control timeline
BGP event ASN orASN path details
Selection timeline
Control panel - Covered time period- RRC selection
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
23
Examples
- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlayTasks
_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network
24
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site Embedding widgets
_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site
_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api
25
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site
26
Prefix Count widget
AS Path Length widget
This ISP embedded widgets on its page
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site (Task)Tasks
_ Create a simple dashboard page to monitor your network_ Create a simple HTML page
_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml
_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo
27
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API
_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)
_ Result codes for a check show the state
28
State Result Code
Ok
Warning
Error
0
1
2
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)bull Compare results in different widgets
14
Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)In-widget comparison
15
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)Tasks
_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page
_ How does the Internet in Kuwait compare to the UK Use in-widget comparison
16
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder
17
Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo
In-depth information about abuse
Enter the IP address
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
18
Email contact to report abuse to
Rating of the contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
19
Details about the resource and abuse contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTasks
_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion
What can you do in these cases_ No abuse contact found_ No response on an abuse report
20
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated
and highly-interactive manner
bull Go to httpsstatripenetwidgetbgplay
21
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
22
Interactive graph visualisation
Control timeline
BGP event ASN orASN path details
Selection timeline
Control panel - Covered time period- RRC selection
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
23
Examples
- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlayTasks
_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network
24
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site Embedding widgets
_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site
_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api
25
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site
26
Prefix Count widget
AS Path Length widget
This ISP embedded widgets on its page
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site (Task)Tasks
_ Create a simple dashboard page to monitor your network_ Create a simple HTML page
_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml
_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo
27
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API
_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)
_ Result codes for a check show the state
28
State Result Code
Ok
Warning
Error
0
1
2
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)In-widget comparison
15
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)Tasks
_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page
_ How does the Internet in Kuwait compare to the UK Use in-widget comparison
16
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder
17
Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo
In-depth information about abuse
Enter the IP address
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
18
Email contact to report abuse to
Rating of the contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
19
Details about the resource and abuse contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTasks
_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion
What can you do in these cases_ No abuse contact found_ No response on an abuse report
20
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated
and highly-interactive manner
bull Go to httpsstatripenetwidgetbgplay
21
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
22
Interactive graph visualisation
Control timeline
BGP event ASN orASN path details
Selection timeline
Control panel - Covered time period- RRC selection
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
23
Examples
- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlayTasks
_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network
24
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site Embedding widgets
_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site
_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api
25
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site
26
Prefix Count widget
AS Path Length widget
This ISP embedded widgets on its page
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site (Task)Tasks
_ Create a simple dashboard page to monitor your network_ Create a simple HTML page
_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml
_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo
27
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API
_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)
_ Result codes for a check show the state
28
State Result Code
Ok
Warning
Error
0
1
2
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message
RIPE RIPEstat MENOG 13
3 Comparing Resources (Web Interface)Tasks
_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page
_ How does the Internet in Kuwait compare to the UK Use in-widget comparison
16
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder
17
Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo
In-depth information about abuse
Enter the IP address
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
18
Email contact to report abuse to
Rating of the contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
19
Details about the resource and abuse contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTasks
_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion
What can you do in these cases_ No abuse contact found_ No response on an abuse report
20
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated
and highly-interactive manner
bull Go to httpsstatripenetwidgetbgplay
21
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
22
Interactive graph visualisation
Control timeline
BGP event ASN orASN path details
Selection timeline
Control panel - Covered time period- RRC selection
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
23
Examples
- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlayTasks
_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network
24
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site Embedding widgets
_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site
_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api
25
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site
26
Prefix Count widget
AS Path Length widget
This ISP embedded widgets on its page
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site (Task)Tasks
_ Create a simple dashboard page to monitor your network_ Create a simple HTML page
_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml
_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo
27
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API
_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)
_ Result codes for a check show the state
28
State Result Code
Ok
Warning
Error
0
1
2
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder
17
Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo
In-depth information about abuse
Enter the IP address
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
18
Email contact to report abuse to
Rating of the contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
19
Details about the resource and abuse contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTasks
_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion
What can you do in these cases_ No abuse contact found_ No response on an abuse report
20
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated
and highly-interactive manner
bull Go to httpsstatripenetwidgetbgplay
21
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
22
Interactive graph visualisation
Control timeline
BGP event ASN orASN path details
Selection timeline
Control panel - Covered time period- RRC selection
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
23
Examples
- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlayTasks
_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network
24
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site Embedding widgets
_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site
_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api
25
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site
26
Prefix Count widget
AS Path Length widget
This ISP embedded widgets on its page
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site (Task)Tasks
_ Create a simple dashboard page to monitor your network_ Create a simple HTML page
_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml
_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo
27
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API
_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)
_ Result codes for a check show the state
28
State Result Code
Ok
Warning
Error
0
1
2
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
18
Email contact to report abuse to
Rating of the contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
19
Details about the resource and abuse contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTasks
_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion
What can you do in these cases_ No abuse contact found_ No response on an abuse report
20
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated
and highly-interactive manner
bull Go to httpsstatripenetwidgetbgplay
21
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
22
Interactive graph visualisation
Control timeline
BGP event ASN orASN path details
Selection timeline
Control panel - Covered time period- RRC selection
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
23
Examples
- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlayTasks
_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network
24
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site Embedding widgets
_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site
_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api
25
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site
26
Prefix Count widget
AS Path Length widget
This ISP embedded widgets on its page
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site (Task)Tasks
_ Create a simple dashboard page to monitor your network_ Create a simple HTML page
_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml
_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo
27
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API
_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)
_ Result codes for a check show the state
28
State Result Code
Ok
Warning
Error
0
1
2
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting Abuse
19
Details about the resource and abuse contact
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTasks
_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion
What can you do in these cases_ No abuse contact found_ No response on an abuse report
20
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated
and highly-interactive manner
bull Go to httpsstatripenetwidgetbgplay
21
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
22
Interactive graph visualisation
Control timeline
BGP event ASN orASN path details
Selection timeline
Control panel - Covered time period- RRC selection
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
23
Examples
- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlayTasks
_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network
24
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site Embedding widgets
_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site
_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api
25
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site
26
Prefix Count widget
AS Path Length widget
This ISP embedded widgets on its page
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site (Task)Tasks
_ Create a simple dashboard page to monitor your network_ Create a simple HTML page
_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml
_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo
27
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API
_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)
_ Result codes for a check show the state
28
State Result Code
Ok
Warning
Error
0
1
2
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message
RIPE RIPEstat MENOG 13
4 Finding Abuse Contacts amp Reporting AbuseTasks
_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion
What can you do in these cases_ No abuse contact found_ No response on an abuse report
20
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated
and highly-interactive manner
bull Go to httpsstatripenetwidgetbgplay
21
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
22
Interactive graph visualisation
Control timeline
BGP event ASN orASN path details
Selection timeline
Control panel - Covered time period- RRC selection
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
23
Examples
- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlayTasks
_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network
24
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site Embedding widgets
_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site
_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api
25
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site
26
Prefix Count widget
AS Path Length widget
This ISP embedded widgets on its page
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site (Task)Tasks
_ Create a simple dashboard page to monitor your network_ Create a simple HTML page
_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml
_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo
27
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API
_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)
_ Result codes for a check show the state
28
State Result Code
Ok
Warning
Error
0
1
2
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated
and highly-interactive manner
bull Go to httpsstatripenetwidgetbgplay
21
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
22
Interactive graph visualisation
Control timeline
BGP event ASN orASN path details
Selection timeline
Control panel - Covered time period- RRC selection
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
23
Examples
- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlayTasks
_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network
24
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site Embedding widgets
_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site
_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api
25
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site
26
Prefix Count widget
AS Path Length widget
This ISP embedded widgets on its page
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site (Task)Tasks
_ Create a simple dashboard page to monitor your network_ Create a simple HTML page
_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml
_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo
27
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API
_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)
_ Result codes for a check show the state
28
State Result Code
Ok
Warning
Error
0
1
2
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
22
Interactive graph visualisation
Control timeline
BGP event ASN orASN path details
Selection timeline
Control panel - Covered time period- RRC selection
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
23
Examples
- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlayTasks
_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network
24
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site Embedding widgets
_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site
_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api
25
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site
26
Prefix Count widget
AS Path Length widget
This ISP embedded widgets on its page
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site (Task)Tasks
_ Create a simple dashboard page to monitor your network_ Create a simple HTML page
_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml
_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo
27
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API
_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)
_ Result codes for a check show the state
28
State Result Code
Ok
Warning
Error
0
1
2
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlay
23
Examples
- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlayTasks
_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network
24
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site Embedding widgets
_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site
_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api
25
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site
26
Prefix Count widget
AS Path Length widget
This ISP embedded widgets on its page
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site (Task)Tasks
_ Create a simple dashboard page to monitor your network_ Create a simple HTML page
_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml
_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo
27
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API
_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)
_ Result codes for a check show the state
28
State Result Code
Ok
Warning
Error
0
1
2
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message
RIPE RIPEstat MENOG 13
5 Letrsquos BGPlayTasks
_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network
24
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site Embedding widgets
_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site
_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api
25
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site
26
Prefix Count widget
AS Path Length widget
This ISP embedded widgets on its page
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site (Task)Tasks
_ Create a simple dashboard page to monitor your network_ Create a simple HTML page
_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml
_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo
27
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API
_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)
_ Result codes for a check show the state
28
State Result Code
Ok
Warning
Error
0
1
2
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site Embedding widgets
_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site
_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api
25
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site
26
Prefix Count widget
AS Path Length widget
This ISP embedded widgets on its page
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site (Task)Tasks
_ Create a simple dashboard page to monitor your network_ Create a simple HTML page
_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml
_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo
27
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API
_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)
_ Result codes for a check show the state
28
State Result Code
Ok
Warning
Error
0
1
2
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site
26
Prefix Count widget
AS Path Length widget
This ISP embedded widgets on its page
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site (Task)Tasks
_ Create a simple dashboard page to monitor your network_ Create a simple HTML page
_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml
_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo
27
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API
_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)
_ Result codes for a check show the state
28
State Result Code
Ok
Warning
Error
0
1
2
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message
RIPE RIPEstat MENOG 13
6 Embedding Widgets On Your Own Site (Task)Tasks
_ Create a simple dashboard page to monitor your network_ Create a simple HTML page
_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml
_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo
27
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API
_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)
_ Result codes for a check show the state
28
State Result Code
Ok
Warning
Error
0
1
2
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API
_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)
_ Result codes for a check show the state
28
State Result Code
Ok
Warning
Error
0
1
2
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message
RIPE RIPEstat MENOG 13
7 Create a Nagios check (optional)Example of a Python based check
29
if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))
if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message