Hands-on session 2 Monitoring Jose Gonzalez Universidad Politecnica Madrid Attilio Broglio Create-Net

Slides:



Advertisements
Similar presentations
Presented by W1BAW Bruce Wattendorf. What is a Raspberry PI A $35 computer with out a monitor, keyboard, mouse but they all can be added.
Advertisements

By: Lloyd Albin 9/28/2012. We are not talking about a Raspberry Pie.
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
Sandor Acs 05/07/ OpenNebula 3.6 (beta) Hands-on.
1 Configuring Web services (Week 15, Monday 4/17/2006) © Abdou Illia, Spring 2006.
Danguardian and Squid Proxy Installation and Configuration.
TCP/IP Protocol Suite 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand the different types of.
DataStax Enterprise on Microsoft Azure. BrightView Analytics provides a robust Software-as-a-Service (SaaS) business solution, which delivers critical.
Installing and Setting up mongoDB replica set PREPARED BY SUDHEER KONDLA SOLUTIONS ARCHITECT.
Integrating HADOOP with Eclipse on a Virtual Machine Moheeb Alwarsh January 26, 2012 Kent State University.
Linux Networking Commands
V Avon High School Tech Crew Agenda Old Business –Delete Files New Business –Week 10 Topics: Coming up: –Yearbook Picture: Feb 7 12:20PM.
LANDesk Management Gateway
Building service testbeds on FIRE D5.2.5 Virtual Cluster on Federated Cloud Demonstration Kit August 2012 Version 1.0 Copyright © 2012 CESGA. All rights.
EXperimental Infrastructures for the Future Internet Process for Joining Infrastructure Owners Training - Basic.
Kernel Development using Virtualization Installing VMWare and using a virtual machine to build and test a Linux Kernel.
Lab How to Use WANem Last Update Copyright 2011 Kenneth M. Chipps Ph.D. 1.
Sponsored by the National Science Foundation Configuration Management For Experimenters: Ansible Hands-On Sarah Edwards, GPO.
Cassandra Installation Guide and Example Lecturer : Prof. Kyungbaek Kim Presenter : I Gde Dharma Nugraha.
Using the jFed tool to experiment from zero to hero Brecht Vermeulen Thijs Walcarius GEC 22, March 24 th, 2015.
A few Linux basics Network Monitoring & Management.
Components you will need - Part 2 High-level Overview on Monitoring Jose Gonzalez Universidad Politecnica Madrid
Delivery, Forwarding, and Routing of IP Packets
Sponsored by the National Science Foundation 1 September 15, 2015 Are you ready for the tutorial? 1.Grab a Worksheet and instructions 2.Did you do the.
ODP V2 Data Provider package overview Sergey Sukhonosov National Oceanographic Data Centre, Russia Training course on establishment of the ODP regional.
Sponsored by the National Science Foundation 1 GREESC15– May 25, 2015 Are you ready for the tutorial? 1.Grab a Worksheet and instructions 2.Did you do.
EXperimental Infrastructures for the Future Internet Training Session “Service Integration” Álvaro Alonso Joaquín Salvachúa UPM-DIT.
Sponsored by the National Science Foundation 1 Last updated April 1, 2013 Are you ready for the tutorial? 1.Sign In 2.Grab a Worksheet 3.Did you do the.
Centreon Deployment Chris Scicluna
Ubuntu, SUSE, OpenSUSE, CentOS & Oracle EL + hundreds on VM Depot Bring your own framework! Ecosystem Supported Microsoft 1st Party Support.
Sponsored by the National Science Foundation 1 ICDCS13: July 8, 2013 Are you ready for the tutorial? 1.Grab a Worksheet and instructions 2.Did you do the.
Node.js & Windows Azure AZR326  JavaScript on the Server!  Event driven I/O server-side JavaScript  Not thread based, each connection uses only a.
1© Copyright 2015 EMC Corporation. All rights reserved. COPRHD ON DOCKER YUN QIN, COPRHD DEVCON.
E-infrastructure shared between Europe and Latin America Introduction to the tutorial for site managers Vanessa Hamar Universidad de Los.
EXPOSING OVS STATISTICS FOR Q UANTUM USERS Tomer Shani Advanced Topics in Storage Systems Spring 2013.
Mininet and Openflow Labs. Install Mininet (do not do this in class) Download VirtualBox Download Xming for windows (X11) Download Mininet VM for linux-ubuntu.
WMarket For Adminstrators Install with Docker or the Automatic Script.
Detailed Components Monitoring Jose Gonzalez Universidad Politecnica Madrid
12th EELA TUTORIAL - USERS AND SYSTEM ADMINISTRATORS FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin.
EXperimental Infrastructures for the Future Internet XIFI Federation Manager Demonstration Daniel Nehls (TU Berlin) Training session Madrid,
1 Grid Monitoring with Nagios Aries Hung, Joanna Huang, Felix Lee, Min Tsai ASGC WLCG T2 Asia Workshop TIFR, Dec 2, 2006.
Installing CUDA, PyCUDA on Ubuntu
Your EC2 Instance. How to Connect to your EC2 Instance?
Configuring Guacamole create a folder for guacamole's configuration: mkdir /etc/guacamole create a file /etc/guacamole/guacamole.properties with the content:
Advancing CernVM-FS and its Development Infrastructure José Molina Colmenero CERN EP-SFT.
SCI-BUS is supported by the FP7 Capacities Programme under contract nr RI CloudBroker usage Zoltán Farkas MTA SZTAKI LPDS
Installing git In Linux: sudo apt-get install git In Windows: download it from run the setuphttp://git-scm.com/download/win.
WordPress and Etherpad with BlueMix and Docker. Our aim is to run on BlueMix containers (now in beta) these two famous services In the BlueMix dashboard,
1 E-Site - FTP Services Setup / install guide. 2 About FTP services can run on any desired port(s) Runs as a windows service Works for all sites installed.
Mininet and Openflow Labs
Advisor : Quincy Wu Speaker : Xang-Ting Date : 2010/06/08
Network Configuration
Hadoop Architecture Mr. Sriram
COP 4343 Unix System Administration
ECE 544: Middlebox lab Abhigyan Sharma.
What is nagios? Version 2 8/ M.A.Newhall.
Raspberry Pi in Headless Operation
Introduction to Networking
Lab 1 introduction, debrief
ECE544: Software Assignment 3
Programming Assignment #3
OPNFV Arno Installation & Validation Walk-Through
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
Configuring Internet-related services
OpenStack-alapú privát felhő üzemeltetés
CUPS Print Services.
Dovetail & CVP Tutorial/Demo
Hyperledger Fabric and Composer Install
See Next Slide Example 13 (continued)
Download the PPT and code from github as below
Presentation transcript:

Hands-on session 2 Monitoring Jose Gonzalez Universidad Politecnica Madrid Attilio Broglio Create-Net

Monitoring Dashboard Monitoring single VMs Monitoring inter- domain connectivity Bandwidth Latency Monitoring inter- domain connectivity Bandwidth Latency Overview 25/06/2014Madrid FI-Ops Training Sessions: Hands-on session 2 - Monitoring2

Training Environment (I) Each “node” will be composed of 2 VMs: –Ubuntu server 64bit 25/06/2014Madrid FI-Ops Training Sessions: Hands-on session 2 - Monitoring3 Controller VM Monitoring VM

Training Environment (II) Controller VM: –OpenStack (Grizzly) –NRPE Plugin –OpenStack Data Collector-ODC Adapter Monitoring VM: –Nagios (+Event Broker) –NGSI Adapter (+Parsers) –Context Broker (v0.13) –Network Active Monitoring-NAM Adapter 25/06/2014Madrid FI-Ops Training Sessions: Hands-on session 2 - Monitoring4

Training Environment (III) 25/06/2014 Madrid FI-Ops Training Sessions: Hands-on session 2 - Monitoring5 NGSI Adapter NAM Adapter Monitoring VM ODC Adapter NRPE Plugin Controller VM Event Broker mongoDB Context Broker

Steps to follow Download from the FTP the two VMs images Start from a clean Ubuntu image Import them in the VirtualBox and … Let’s start!!! 25/06/2014Madrid FI-Ops Training Sessions: Hands-on session 2 - Monitoring6

NAM Installation 1. Check the IP assigned. –$ifconfig 2. Install NAM Adapter in each node Requirements –Install Node.js $ sudo apt-get update $ sudo apt-get install -y python-software-properties python g++ make $ sudo add-apt-repository -y ppa:chris-lea/node.js $ sudo apt-get update $ sudo apt-get install nodejs 25/06/2014Madrid FI-Ops Training Sessions: Hands-on session 2 - Monitoring7 ifconfig eth1 Link encap:Ethernet HWaddr 08:00:27:0e:d8:85 inet addr: Bcast: Mask: ……. ifconfig eth1 Link encap:Ethernet HWaddr 08:00:27:0e:d8:85 inet addr: Bcast: Mask: …….

–Install mongodb $ sudo apt-get install mongodb –Install iperf $ sudo apt-get install iperf –Install ntp $ sudo apt-get install iperf Install NAM Adapter $ sudo npm nam_adapter 3. Run NAM Adapter $cd node_modules/nam_adapter /nam_adapter/$./NAMadapter start 25/06/2014Madrid FI-Ops Training Sessions: Hands-on session 2 - Monitoring8 NAM Installation

4. Config NAM Adapter 25/06/2014Madrid FI-Ops Training Sessions: Hands-on session 2 - Monitoring9 User: userxifi Password: xifiMaster2014 NAM Installation

NAM Test Case Each NAM instance will be able to reach other instances 25/06/2014Madrid FI-Ops Training Sessions: Hands-on session 2 - Monitoring10 NAM

Acknowledgments: The research conducted by XIFI receives funding from the European Commission FP7 under grant agreement N°: The European Commission has no responsibility for the content of this presentation. Thank you for your attention! More information about XIFI: More information about FI-Ops: Jose Gonzalez - Universidad Politecnica Madrid Attilio Broglio – CreateNet 25/06/201411Madrid FI-Ops Training Sessions: Hands-on session 2 - Monitoring

Additional information Installation and Setup 25/06/201412Madrid FI-Ops Training Sessions: Hands-on session 2 - Monitoring

ContextBroker0.13 on Ubuntu ContextBroker installation –cd /home/xifi/madrid_demo –sudo apt-get install alien mongodb git –wget 1.x86_64.rpm –no-check-certificate –sudo alien contextBroker x86_64.rpm –sudo dpkg -i contextbroker_ _amd64.deb For installation please look at: – ware.org/plugins/mediawiki/wiki/fiware/index.php/Publish/Subscribe_Broke r_-_Orion_Context_Broker_-_Installation_and_Administration_Guide NOTES: ContextBroker 0.13 rpm is built for CentOS On Ubuntu kernel<3.x (only some problems with lib) On Ubuntu kernrl>3.0 (must be recompiled.. because of monfo DB driver) 25/06/201413Madrid FI-Ops Training Sessions: Hands-on session 2 - Monitoring

ContextBroker0.13 on Ubuntu Download additional package –mkdir -p /home/xifi/madrid_demo –cd /home/xifi/madrid_demo –mkdir additional_file –cd additional_file –wget –wget ftp://ftp.univie.ac.at/systems/linux/fedora/epel/5/x86_64/boost141- thread el5.x86_64.rpm –wget ftp://ftp.univie.ac.at/systems/linux/fedora/epel/5/x86_64/boost141- filesystem el5.x86_64.rpm –wget ftp://ftp.univie.ac.at/systems/linux/fedora/epel/5/x86_64/boost141- system el5.x86_64.rpm 25/06/201414Madrid FI-Ops Training Sessions: Hands-on session 2 - Monitoring

ContextBroker0.13 on Ubuntu Install additional packages (Tricks for Ubuntu) –tar -xvzf libmicrohttpd tar.gz –cd libmicrohttpd / –./configure –make –sudo make install –sudo ln -s /usr/local/lib/libmicrohttpd.so.10 /usr/lib/libmicrohttpd.so.10 –sudo alien boost141-thread el5.x86_64.rpm –sudo dpkg -i boost141-thread_ _amd64.deb –sudo ln -s /usr/lib64/libboost_thread-mt.so.5 /usr/local/lib/libboost_thread-mt.so.5 –sudo alien boost141-filesystem el5.x86_64.rpm –sudo dpkg -i boost141-filesystem_ _amd64.deb –sudo ln -s /usr/lib64/libboost_filesystem-mt.so.5 /usr/lib/libboost_filesystem-mt.so.5 –sudo alien boost141-system el5.x86_64.rpm –sudo dpkg -i boost141-system_ _amd64.deb –sudo ln -s /usr/lib64/libboost_system-mt.so.5 /usr/lib/libboost_system-mt.so.5 25/06/201415Madrid FI-Ops Training Sessions: Hands-on session 2 - Monitoring

ContextBroker0.13 on Ubuntu Unix user CB listen port Log DB host DB name How to configure the context Broker /etc/sysconfig/contextBroker BROKER_USER=orion BROKER_PORT=1026 BROKER_LOG_DIR=/var/log/contextBroker BROKER_PID_FILE=/var/log/contextBroker/contextBroker.pid BROKER_DATABASE_HOST=localhost BROKER_DATABASE_NAME=orion 25/06/201416Madrid FI-Ops Training Sessions: Hands-on session 2 - Monitoring

Monitoring VM- NGSI_ADAPTER NGSI_adapter installation –sudo apt-get install python-software-properties –sudo add-apt-repository ppa:chris-lea/node.js –sudo apt-get update –apt-get install -y python-software-properties python g++ make –sudo apt-get -y install nodejs –sudo apt-get install software-properties-common –git clone –cd fiware-monitoring/ngsi_adapter/src –npm install –sudo chmod +x adapter –ln -s /home/xifi/madrid_demo/fiware-monitoring/ngsi_adapter/src/adapter /usr/bin/adapter For installation look at: – 25/06/201417Madrid FI-Ops Training Sessions: Hands-on session 2 - Monitoring

Monitoring VM- NGSI_ADAPTER NGSI Adapter listen port NGSI Adapter host IP ContextBroker IP How to configure the ngsi_adapter /home/xifi/madrid_demo/fiware- monitoring/ngsi_adapter/src/config/options.js defaults = { brokerUrl: ' listenHost: ' ', listenPort: 1027, retries: 2 }; Change logger property of the ngsi_adapter /home/xifi/madrid_demo/fiware- monitoring/ngsi_adapter/src/config/logger.js Number of retries 25/06/201418Madrid FI-Ops Training Sessions: Hands-on session 2 - Monitoring

Monitoring VM- NGSI_ADAPTER Add parsers... –cd /home/xifi/madrid_demo/fiware-monitoring/ngsi_adapter/src/lib/parsers –cp -rf parsers parsers.old –mkdir parsers –wget -nd -r -l 1 -A js --no-check-certificate –wget -nd -r -l 1 -A js --no- check-certificate –wget -nd -r -l 1 -A js adapter/ --no-check-certificate –wget -nd -r -l 1 -A js - -no-check-certificate –wget -nd -r -l 1 -A js monitoring/ngsi-adapter-parsers/ --no-check-certificate Run as: –service ngsi_adapter start –$ adapter --listenPort brokerUrl 25/06/201419Madrid FI-Ops Training Sessions: Hands-on session 2 - Monitoring

Monitoring VM- NAGIOS Log file New controller RegionID Ngsi adapter IP:port NAGIOS INSTALLATION (Nagios core 3.4.1) NAGIOS CONFIGURATION (Nagios core 3.4.1) /usr/local/nagios/etc nagios.cfg log_file=/usr/local/nagios/var/nagios.log cfg_file=/usr/local/nagios/etc/objects/hostgroup_switch.cfg cfg_file=/usr/local/nagios/etc/objects/localhost.cfg cfg_file=/usr/local/nagios/etc/objects/xifi_controller_1.cfg broker_module=/usr/local/nagios/lib/ngsi_event_broker_xifi.so -r dummyRegion -u 25/06/201420Madrid FI-Ops Training Sessions: Hands-on session 2 - Monitoring

Monitoring VM- NAGIOS NAGIOS CONFIGURATION (Nagios core 3.4.1) /usr/local/nagios/etc/objects xifi_controller_1.cfg define host { use linux-server host_name node-1 alias Ubuntu address hostgroups Controllers} define service { name xifi-host-service use generic-service _entity_type host_service } ;define service { ;use xifi-host-service ;host_name node-1 ;service_description nova-scheduler ;check_command check_nrpe!check_nova_scheduler ;} define service { use xifi-host-service host_name node-1 service_description nova-api check_command check_nrpe!check_nova_api } 25/06/201421Madrid FI-Ops Training Sessions: Hands-on session 2 - Monitoring

Monitoring VM- NAGIOS Define a new entity type Define the service NAGIOS CONFIGURATION (Nagios core 3.4.1) /usr/local/nagios/etc/objects xifi_controller_1.cfg define service { name xifi-host-service use generic-service _entity_type host_service } define service { use xifi-host-service host_name node-1 service_description nova-api check_command check_nrpe!check_nova_api } 25/06/201422Madrid FI-Ops Training Sessions: Hands-on session 2 - Monitoring

Monitoring VM- NAGIOS Check name Monitored host IP NAGIOS CONFIGURATION (Nagios core 3.4.1) Just two useful commands Check your configuration:  /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg Check your command  /usr/local/nagios/libexec/check_nrpe -H c check_nova_api 25/06/201423Madrid FI-Ops Training Sessions: Hands-on session 2 - Monitoring

CONTROLLER VM - ODC ODC INSTALLATION –mkdir -p /usr/local/ODC –cd /usr/local/ODC –wget ta_Collector/Trunk/OpenstackDataCollector/opensta ckDataCollector.py --no-check-certificate –wget ta_Collector/Trunk/OpenstackDataCollector/opensta ckDataCollector.pyodc.conf –no-check-certificate 25/06/201424Madrid FI-Ops Training Sessions: Hands-on session 2 - Monitoring

CONTROLLER VM - ODC Look at your nova.conf file Your region info Your NGSI adapter ODC CONFIGURATION vim /ur/local/ODC/odc.conf +username = admin +password = admin +tenant_name = admin +auth_url = +regionName = pseudoRegion +regionId = pseudoRegion +location = IT +latitude = longitude= 1.1 +agentUrl= :1027/ python openstackDataCollector.py dump cat results.dumped 25/06/201425Madrid FI-Ops Training Sessions: Hands-on session 2 - Monitoring

CONTROLLER VM - NRPE NRPE NAGIOS INSTALLATION (Nagios core 3.4.1) – NRPE NAGIOS CONFIGURATION (Nagios core 3.4.1) /usr/local/nagios/etc/nrpe.cfg command[check_nova_api]=/usr/local/nagios/libexec/check_pr ocs -c1: -C nova-api 25/06/201426Madrid FI-Ops Training Sessions: Hands-on session 2 - Monitoring