SlideShare une entreprise Scribd logo
1  sur  37
Embedding Nagios in the
       Raspberry Pi




                             26th September   Dave Williams
                                       2012   Lead Technical Architect




© Bull, 2012                                                             1
Agenda




© Bull, 2012    2
Agenda

               Background
               The Raspberry Pi
               The Raspberry Pi Nagios Recipe
               Using DNX on the Raspberry Pi
               Demonstration
               Futures & ‘Blue Sky thinking’
               Conclusion




© Bull, 2012                                    3
Background

       UK based
               Mainframe (IBM & Honeywell)
               Unix (HP-UX, AIX, Solaris)
               Network (CASE, 3COM, CISCO)
       Working for Bull
               French Computer Manufacturer
               Mainframes, Unix, HPC,
               Security, Managed Services




© Bull, 2012                                  4
Background

       System Monitoring
               OpenView
               Netview
               Open Master
       Open Source Monitoring
               NetSaint on AIX
               Nagios




© Bull, 2012                     5
The Raspberry Pi

       Eben Upton and his colleagues at the
       University of Cambridge’s Computer
       Laboratory, became concerned
       about the year-on-year decline in the
       numbers and skills levels of the A
       Level students applying to read
       Computer Science in each academic
       year
       The Raspberry Pi is a credit-card
       sized computer that plugs into your
       TV and a keyboard. It’s a capable
       little PC which can be used for many
       of the things that your desktop PC
       does, like spreadsheets, word-
       processing and games. It also plays
       high-definition video.

© Bull, 2012                                   6
The Raspberry Pi




© Bull, 2012              7
The Raspberry Pi




       Raspberry Pi’s are nearly everywhere

       http://rastrack.co.uk
© Bull, 2012                                  8
The Raspberry Pi

       The demo / sample system is running Debian – Squeeze




       Soon to be updated to Wheezy




© Bull, 2012                                                  9
The Raspberry Pi Nagios Recipe

       See
         http://exchange.nagios.org/directory/Documentation/Nagios-
         Core-Documentation/Nagios-and-Raspberry-PI/details

       Yes it’s already in the Nagios Core documentation set !




© Bull, 2012                                                          10
The Raspberry Pi Nagios Recipe

       #apt-get update
       #apt-get install php5 apache2 libgd2-xpm libgd2-xpm-dev
         libgd2-dev libpng12-dev libjpeg62-dev libgd-tools libpng12-
         dev libgd2-xpm libgd2-xpm-dev libssl-dev gnutls-bin iputils
       #groupadd www-data
       #groupadd nagios
       #adduser nagios
       #usermod -G nagios nagios
       #usermod -G www-data,nagios www-data
       #mkdir /usr/local/nagios
       #chown -R nagios:nagios /usr/local/Nagios


© Bull, 2012                                                           11
The Raspberry Pi Nagios Recipe

       Whoops ! We also need GD-Utils….

       root@raspberrypi:/tmp# wget
         http://www.boutell.com/gd/http/gd-2.0.33.tar.gz
       root@raspberrypi:/tmp# tar -zxvf gd-2.0.33.tar.gz
       root@raspberrypi:/tmp/gd-2.0.33# ./configure
       root@raspberrypi:/tmp/gd-2.0.33# make && make install




© Bull, 2012                                                   12
The Raspberry Pi Nagios Recipe

       Now we need to get on and install:
       root@raspberrypi:/tmp# wget
         http://prdownloads.sourceforge.net/sourceforge/nagios/na
         gios-3.4.1.tar.gz
       root@raspberrypi:/tmp# tar xzf nagios-3.4.1.tar.gz
       root@raspberrypi:/tmp/nagios# ./configure –
         prefix=/usr/local/nagios –with-cgiurl=/nagios/cgi-bin –with-
         htmurl=/nagios/ –with-nagios-user=nagios –with-nagios-
         group=nagios –with-command-group=nagios
       And then make:
       root@raspberrypi:/tmp/nagios# make all



© Bull, 2012                                                            13
The Raspberry Pi Nagios Recipe

       root@raspberrypi:/tmp/nagios# make install-init
       Install and configure the directory for that holds the external
         command file:
       root@raspberrypi:/tmp/nagios# make install-commandmode
       Install the apache configuration:
       root@raspberrypi:/tmp/nagios# make install-webconf
       And at the end install the sample config files:
       root@raspberrypi:/tmp/nagios# make install-config

       Restart the apache daemon:
       root@raspberrypi:/tmp/nagios# /etc/init.d/apache2 reload


© Bull, 2012                                                             14
The Raspberry Pi Nagios Recipe

       Now for the plugins :

       apt-get install nagios-plugins nagios-snmp-plugins
       Or by compiling them:
       root@raspberrypi:/tmp# wget
         http://prdownloads.sourceforge.net/sourceforge/nagiosplug
         /nagios-plugins-1.4.15.tar.gz
       root@raspberrypi:/tmp# tar xzf nagios-plugins-1.4.15.tar.gz
       root@raspberrypi:/tmp/nagios-plugins-1.4.15# ./configure
       root@raspberrypi:/tmp/nagios-plugins-1.4.15# make && make
         install


© Bull, 2012                                                         15
Using DNX

       1.Download the automated installation script to the /tmp
          directory:
          # cd /tmp
       2. # wget
          http://assets.nagios.com/downloads/nagiosxi/scripts/NagiosXI
       3. Make the script executable:
       # chmod +x NagiosXI-DNX.sh
       4. Run the script in client mode
       # ./NagiosXI-DNX.sh -c
       5. Repeat steps 1-4 for each slave system.
       6. Repeat steps 1-3 on the master Nagios server.
       7. Run the script in server mode, optionally enabling automatic
          synchronization

© Bull, 2012                                                             16
Using DNX

       Of course it’s not that easy :
       Modify the script to run under Debian,
       206c206
       < # iptables -I INPUT -p udp --dport 12480:12482 -j ACCEPT
       ---
       >    iptables -I INPUT -p udp --dport 12480:12482 -j ACCEPT
       246c246
       < wget -c $DOWNLOAD_URL -o dnx-$DNX_VERSION.tar.gz
       ---
       > wget -c $DOWNLOAD_URL



© Bull, 2012                                                         17
Using DNX




© Bull, 2012       18
Demonstration

       First the Raspberry Pi running Nagios & DNX




       Oh – just one more thing…..




© Bull, 2012                                         19
Futures & ‘Blue Sky thinking’

       No limits to the possible uses for the RaspberryPI:

               Remember it has a GPIO output capability so….

       •        For example true ‘traffic light displays’




© Bull, 2012                                                   20
Raspberry Pi , Nagios & Traffic Lights




© Bull, 2012                                    21
RaspberryPi, Nagios & Traffic Lights




© Bull, 2012                                  22
Futures & ‘Blue Sky thinking’

       No limits to the possible uses for the RaspberryPI:

       •       Rolling text displays
       •       Digital Signage – Screenly-ose (on github.com)




© Bull, 2012                                                    23
Futures & ‘Blue Sky thinking’




                                 3D image of Tera 100
                        You could build a supercomputer like this




© Bull, 2012                                                        24
Futures & ‘Blue Sky thinking’




                         Futures & ‘Blue Sky thinking




                                         Iridis-pi
                       But with Raspberry PI it might look like this –
                        64 nodes using Message Passing Interface


© Bull, 2012                                                             25
Futures & ‘Blue Sky thinking’




                               Futures & ‘Blue Sky thinking




                                              Iridis-pi
                 Pair of Raspberry PI compute nodes in their Lego racking enclosure



© Bull, 2012                                                                          26
Futures & ‘Blue Sky thinking’

       How about adding a simple PBX to your current Nagios set-up?




           Or just two lines that tell you something ?




© Bull, 2012                                                          27
Futures & ‘Blue Sky thinking’

       Take data from a weather station and post Twitter feeds & web
         site info




© Bull, 2012                                                           28
Conclusions


               For $35 this is a ‘fire & forget’ solution

               Quite capable of monitoring SME’s and with DNX support even
               larger environments

               Possibly the easiest way to drive / monitor exotic devices
               Only limited by your imagination




© Bull, 2012                                                                 29
Questions




© Bull, 2012       30
© Bull, 2012   31
© Bull, 2012   32
Standard slide with title, text over two columns

               First level text        First level text
                 Second level text       Second level text
                   –Third level text       –Third level text
                 Fourth level text      Fourth level text




© Bull, 2012                                                   33
Colour palette
                        Core colours                         BOOST colours



       R178 V178 B178      R95 V95 B95   R41 V41 B41   R0 V117 B182   R96 V52 B129




        R151 V191 B13     R119 V185 B0   R0 V128 B0    R238 V134 B0    R182 V0 B34




       R255 V204 B102




© Bull, 2012                                                                         34
Click to add title

               click to add text




© Bull, 2012                       35
Standard slide with image




                            Le cloud by Bull logo




© Bull, 2012                                        36
Standard slide with title and image




                             3D image of Tera 100




© Bull, 2012                                        37

Contenu connexe

Similaire à Nagios Conference 2012 - Dave Williams - Embedding Nagios using RaspberyPi

Cloud Foundry, the Open Platform as a Service - Oscon - July 2012
Cloud Foundry, the Open Platform as a Service - Oscon - July 2012Cloud Foundry, the Open Platform as a Service - Oscon - July 2012
Cloud Foundry, the Open Platform as a Service - Oscon - July 2012
Patrick Chanezon
 

Similaire à Nagios Conference 2012 - Dave Williams - Embedding Nagios using RaspberyPi (20)

Nagios Conference 2013 - Dave Williams - The All-in-One Nagios Solution
Nagios Conference 2013 - Dave Williams - The All-in-One Nagios SolutionNagios Conference 2013 - Dave Williams - The All-in-One Nagios Solution
Nagios Conference 2013 - Dave Williams - The All-in-One Nagios Solution
 
Hadoop Operations: Starting Out Small / So Your Cluster Isn't Yahoo-sized (yet)
Hadoop Operations: Starting Out Small / So Your Cluster Isn't Yahoo-sized (yet)Hadoop Operations: Starting Out Small / So Your Cluster Isn't Yahoo-sized (yet)
Hadoop Operations: Starting Out Small / So Your Cluster Isn't Yahoo-sized (yet)
 
Hadoop operations
Hadoop operationsHadoop operations
Hadoop operations
 
Using Docker For Development
Using Docker For DevelopmentUsing Docker For Development
Using Docker For Development
 
DCEU 18: Developing with Docker Containers
DCEU 18: Developing with Docker ContainersDCEU 18: Developing with Docker Containers
DCEU 18: Developing with Docker Containers
 
"Using TensorFlow Lite to Deploy Deep Learning on Cortex-M Microcontrollers,"...
"Using TensorFlow Lite to Deploy Deep Learning on Cortex-M Microcontrollers,"..."Using TensorFlow Lite to Deploy Deep Learning on Cortex-M Microcontrollers,"...
"Using TensorFlow Lite to Deploy Deep Learning on Cortex-M Microcontrollers,"...
 
Debugging embedded devices using GDB
Debugging embedded devices using GDBDebugging embedded devices using GDB
Debugging embedded devices using GDB
 
Release webinar architecture
Release webinar   architectureRelease webinar   architecture
Release webinar architecture
 
Why Users Are Moving on from Docker and Leaving Its Security Risks Behind (Sp...
Why Users Are Moving on from Docker and Leaving Its Security Risks Behind (Sp...Why Users Are Moving on from Docker and Leaving Its Security Risks Behind (Sp...
Why Users Are Moving on from Docker and Leaving Its Security Risks Behind (Sp...
 
Securing Containers - Sathyajit Bhat - Adobe
Securing Containers - Sathyajit Bhat - AdobeSecuring Containers - Sathyajit Bhat - Adobe
Securing Containers - Sathyajit Bhat - Adobe
 
Cloud foundry and openstackcloud
Cloud foundry and openstackcloudCloud foundry and openstackcloud
Cloud foundry and openstackcloud
 
Cloud Foundry, the Open Platform as a Service - Oscon - July 2012
Cloud Foundry, the Open Platform as a Service - Oscon - July 2012Cloud Foundry, the Open Platform as a Service - Oscon - July 2012
Cloud Foundry, the Open Platform as a Service - Oscon - July 2012
 
Building and Customizing CoreOS
Building and Customizing CoreOSBuilding and Customizing CoreOS
Building and Customizing CoreOS
 
Java Device I/O at Raspberry PI to Build a Candy Vending Machine
Java Device I/O at Raspberry PI to Build a Candy Vending MachineJava Device I/O at Raspberry PI to Build a Candy Vending Machine
Java Device I/O at Raspberry PI to Build a Candy Vending Machine
 
2015 DockerCon Using Docker in production at bity.com
2015 DockerCon Using Docker in production at bity.com2015 DockerCon Using Docker in production at bity.com
2015 DockerCon Using Docker in production at bity.com
 
HP Advanced Technology Group: Docker and Ansible
HP Advanced Technology Group: Docker and AnsibleHP Advanced Technology Group: Docker and Ansible
HP Advanced Technology Group: Docker and Ansible
 
C language in our world 2015
C language in our world 2015C language in our world 2015
C language in our world 2015
 
Leveraging docker for hadoop build automation and big data stack provisioning
Leveraging docker for hadoop build automation and big data stack provisioningLeveraging docker for hadoop build automation and big data stack provisioning
Leveraging docker for hadoop build automation and big data stack provisioning
 
Leveraging Docker for Hadoop build automation and Big Data stack provisioning
Leveraging Docker for Hadoop build automation and Big Data stack provisioningLeveraging Docker for Hadoop build automation and Big Data stack provisioning
Leveraging Docker for Hadoop build automation and Big Data stack provisioning
 
Dreambox caMip
Dreambox caMipDreambox caMip
Dreambox caMip
 

Plus de Nagios

Plus de Nagios (20)

Nagios XI Best Practices
Nagios XI Best PracticesNagios XI Best Practices
Nagios XI Best Practices
 
Jesse Olson - Nagios Log Server Architecture Overview
Jesse Olson - Nagios Log Server Architecture OverviewJesse Olson - Nagios Log Server Architecture Overview
Jesse Olson - Nagios Log Server Architecture Overview
 
Trevor McDonald - Nagios XI Under The Hood
Trevor McDonald  - Nagios XI Under The HoodTrevor McDonald  - Nagios XI Under The Hood
Trevor McDonald - Nagios XI Under The Hood
 
Sean Falzon - Nagios - Resilient Notifications
Sean Falzon - Nagios - Resilient NotificationsSean Falzon - Nagios - Resilient Notifications
Sean Falzon - Nagios - Resilient Notifications
 
Marcus Rochelle - Landis+Gyr - Monitoring with Nagios Enterprise Edition
Marcus Rochelle - Landis+Gyr - Monitoring with Nagios Enterprise EditionMarcus Rochelle - Landis+Gyr - Monitoring with Nagios Enterprise Edition
Marcus Rochelle - Landis+Gyr - Monitoring with Nagios Enterprise Edition
 
Janice Singh - Writing Custom Nagios Plugins
Janice Singh - Writing Custom Nagios PluginsJanice Singh - Writing Custom Nagios Plugins
Janice Singh - Writing Custom Nagios Plugins
 
Dave Williams - Nagios Log Server - Practical Experience
Dave Williams - Nagios Log Server - Practical ExperienceDave Williams - Nagios Log Server - Practical Experience
Dave Williams - Nagios Log Server - Practical Experience
 
Mike Weber - Nagios and Group Deployment of Service Checks
Mike Weber - Nagios and Group Deployment of Service ChecksMike Weber - Nagios and Group Deployment of Service Checks
Mike Weber - Nagios and Group Deployment of Service Checks
 
Mike Guthrie - Revamping Your 10 Year Old Nagios Installation
Mike Guthrie - Revamping Your 10 Year Old Nagios InstallationMike Guthrie - Revamping Your 10 Year Old Nagios Installation
Mike Guthrie - Revamping Your 10 Year Old Nagios Installation
 
Bryan Heden - Agile Networks - Using Nagios XI as the platform for Monitoring...
Bryan Heden - Agile Networks - Using Nagios XI as the platform for Monitoring...Bryan Heden - Agile Networks - Using Nagios XI as the platform for Monitoring...
Bryan Heden - Agile Networks - Using Nagios XI as the platform for Monitoring...
 
Matt Bruzek - Monitoring Your Public Cloud With Nagios
Matt Bruzek - Monitoring Your Public Cloud With NagiosMatt Bruzek - Monitoring Your Public Cloud With Nagios
Matt Bruzek - Monitoring Your Public Cloud With Nagios
 
Lee Myers - What To Do When Nagios Notification Don't Meet Your Needs.
Lee Myers - What To Do When Nagios Notification Don't Meet Your Needs.Lee Myers - What To Do When Nagios Notification Don't Meet Your Needs.
Lee Myers - What To Do When Nagios Notification Don't Meet Your Needs.
 
Eric Loyd - Fractal Nagios
Eric Loyd - Fractal NagiosEric Loyd - Fractal Nagios
Eric Loyd - Fractal Nagios
 
Marcelo Perazolo, Lead Software Architect, IBM Corporation - Monitoring a Pow...
Marcelo Perazolo, Lead Software Architect, IBM Corporation - Monitoring a Pow...Marcelo Perazolo, Lead Software Architect, IBM Corporation - Monitoring a Pow...
Marcelo Perazolo, Lead Software Architect, IBM Corporation - Monitoring a Pow...
 
Thomas Schmainda - Tracking Boeing Satellites With Nagios - Nagios World Conf...
Thomas Schmainda - Tracking Boeing Satellites With Nagios - Nagios World Conf...Thomas Schmainda - Tracking Boeing Satellites With Nagios - Nagios World Conf...
Thomas Schmainda - Tracking Boeing Satellites With Nagios - Nagios World Conf...
 
Nagios World Conference 2015 - Scott Wilkerson Opening
Nagios World Conference 2015 - Scott Wilkerson OpeningNagios World Conference 2015 - Scott Wilkerson Opening
Nagios World Conference 2015 - Scott Wilkerson Opening
 
Nrpe - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core
Nrpe - Nagios Remote Plugin Executor. NRPE plugin for Nagios CoreNrpe - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core
Nrpe - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core
 
Nagios Log Server - Features
Nagios Log Server - FeaturesNagios Log Server - Features
Nagios Log Server - Features
 
Nagios Network Analyzer - Features
Nagios Network Analyzer - FeaturesNagios Network Analyzer - Features
Nagios Network Analyzer - Features
 
Nagios Conference 2014 - Dorance Martinez Cortes - Customizing Nagios
Nagios Conference 2014 - Dorance Martinez Cortes - Customizing NagiosNagios Conference 2014 - Dorance Martinez Cortes - Customizing Nagios
Nagios Conference 2014 - Dorance Martinez Cortes - Customizing Nagios
 

Dernier

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Dernier (20)

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 

Nagios Conference 2012 - Dave Williams - Embedding Nagios using RaspberyPi

  • 1. Embedding Nagios in the Raspberry Pi 26th September Dave Williams 2012 Lead Technical Architect © Bull, 2012 1
  • 3. Agenda Background The Raspberry Pi The Raspberry Pi Nagios Recipe Using DNX on the Raspberry Pi Demonstration Futures & ‘Blue Sky thinking’ Conclusion © Bull, 2012 3
  • 4. Background UK based Mainframe (IBM & Honeywell) Unix (HP-UX, AIX, Solaris) Network (CASE, 3COM, CISCO) Working for Bull French Computer Manufacturer Mainframes, Unix, HPC, Security, Managed Services © Bull, 2012 4
  • 5. Background System Monitoring OpenView Netview Open Master Open Source Monitoring NetSaint on AIX Nagios © Bull, 2012 5
  • 6. The Raspberry Pi Eben Upton and his colleagues at the University of Cambridge’s Computer Laboratory, became concerned about the year-on-year decline in the numbers and skills levels of the A Level students applying to read Computer Science in each academic year The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word- processing and games. It also plays high-definition video. © Bull, 2012 6
  • 7. The Raspberry Pi © Bull, 2012 7
  • 8. The Raspberry Pi Raspberry Pi’s are nearly everywhere http://rastrack.co.uk © Bull, 2012 8
  • 9. The Raspberry Pi The demo / sample system is running Debian – Squeeze Soon to be updated to Wheezy © Bull, 2012 9
  • 10. The Raspberry Pi Nagios Recipe See http://exchange.nagios.org/directory/Documentation/Nagios- Core-Documentation/Nagios-and-Raspberry-PI/details Yes it’s already in the Nagios Core documentation set ! © Bull, 2012 10
  • 11. The Raspberry Pi Nagios Recipe #apt-get update #apt-get install php5 apache2 libgd2-xpm libgd2-xpm-dev libgd2-dev libpng12-dev libjpeg62-dev libgd-tools libpng12- dev libgd2-xpm libgd2-xpm-dev libssl-dev gnutls-bin iputils #groupadd www-data #groupadd nagios #adduser nagios #usermod -G nagios nagios #usermod -G www-data,nagios www-data #mkdir /usr/local/nagios #chown -R nagios:nagios /usr/local/Nagios © Bull, 2012 11
  • 12. The Raspberry Pi Nagios Recipe Whoops ! We also need GD-Utils…. root@raspberrypi:/tmp# wget http://www.boutell.com/gd/http/gd-2.0.33.tar.gz root@raspberrypi:/tmp# tar -zxvf gd-2.0.33.tar.gz root@raspberrypi:/tmp/gd-2.0.33# ./configure root@raspberrypi:/tmp/gd-2.0.33# make && make install © Bull, 2012 12
  • 13. The Raspberry Pi Nagios Recipe Now we need to get on and install: root@raspberrypi:/tmp# wget http://prdownloads.sourceforge.net/sourceforge/nagios/na gios-3.4.1.tar.gz root@raspberrypi:/tmp# tar xzf nagios-3.4.1.tar.gz root@raspberrypi:/tmp/nagios# ./configure – prefix=/usr/local/nagios –with-cgiurl=/nagios/cgi-bin –with- htmurl=/nagios/ –with-nagios-user=nagios –with-nagios- group=nagios –with-command-group=nagios And then make: root@raspberrypi:/tmp/nagios# make all © Bull, 2012 13
  • 14. The Raspberry Pi Nagios Recipe root@raspberrypi:/tmp/nagios# make install-init Install and configure the directory for that holds the external command file: root@raspberrypi:/tmp/nagios# make install-commandmode Install the apache configuration: root@raspberrypi:/tmp/nagios# make install-webconf And at the end install the sample config files: root@raspberrypi:/tmp/nagios# make install-config Restart the apache daemon: root@raspberrypi:/tmp/nagios# /etc/init.d/apache2 reload © Bull, 2012 14
  • 15. The Raspberry Pi Nagios Recipe Now for the plugins : apt-get install nagios-plugins nagios-snmp-plugins Or by compiling them: root@raspberrypi:/tmp# wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug /nagios-plugins-1.4.15.tar.gz root@raspberrypi:/tmp# tar xzf nagios-plugins-1.4.15.tar.gz root@raspberrypi:/tmp/nagios-plugins-1.4.15# ./configure root@raspberrypi:/tmp/nagios-plugins-1.4.15# make && make install © Bull, 2012 15
  • 16. Using DNX 1.Download the automated installation script to the /tmp directory: # cd /tmp 2. # wget http://assets.nagios.com/downloads/nagiosxi/scripts/NagiosXI 3. Make the script executable: # chmod +x NagiosXI-DNX.sh 4. Run the script in client mode # ./NagiosXI-DNX.sh -c 5. Repeat steps 1-4 for each slave system. 6. Repeat steps 1-3 on the master Nagios server. 7. Run the script in server mode, optionally enabling automatic synchronization © Bull, 2012 16
  • 17. Using DNX Of course it’s not that easy : Modify the script to run under Debian, 206c206 < # iptables -I INPUT -p udp --dport 12480:12482 -j ACCEPT --- > iptables -I INPUT -p udp --dport 12480:12482 -j ACCEPT 246c246 < wget -c $DOWNLOAD_URL -o dnx-$DNX_VERSION.tar.gz --- > wget -c $DOWNLOAD_URL © Bull, 2012 17
  • 19. Demonstration First the Raspberry Pi running Nagios & DNX Oh – just one more thing….. © Bull, 2012 19
  • 20. Futures & ‘Blue Sky thinking’ No limits to the possible uses for the RaspberryPI: Remember it has a GPIO output capability so…. • For example true ‘traffic light displays’ © Bull, 2012 20
  • 21. Raspberry Pi , Nagios & Traffic Lights © Bull, 2012 21
  • 22. RaspberryPi, Nagios & Traffic Lights © Bull, 2012 22
  • 23. Futures & ‘Blue Sky thinking’ No limits to the possible uses for the RaspberryPI: • Rolling text displays • Digital Signage – Screenly-ose (on github.com) © Bull, 2012 23
  • 24. Futures & ‘Blue Sky thinking’ 3D image of Tera 100 You could build a supercomputer like this © Bull, 2012 24
  • 25. Futures & ‘Blue Sky thinking’ Futures & ‘Blue Sky thinking Iridis-pi But with Raspberry PI it might look like this – 64 nodes using Message Passing Interface © Bull, 2012 25
  • 26. Futures & ‘Blue Sky thinking’ Futures & ‘Blue Sky thinking Iridis-pi Pair of Raspberry PI compute nodes in their Lego racking enclosure © Bull, 2012 26
  • 27. Futures & ‘Blue Sky thinking’ How about adding a simple PBX to your current Nagios set-up? Or just two lines that tell you something ? © Bull, 2012 27
  • 28. Futures & ‘Blue Sky thinking’ Take data from a weather station and post Twitter feeds & web site info © Bull, 2012 28
  • 29. Conclusions For $35 this is a ‘fire & forget’ solution Quite capable of monitoring SME’s and with DNX support even larger environments Possibly the easiest way to drive / monitor exotic devices Only limited by your imagination © Bull, 2012 29
  • 33. Standard slide with title, text over two columns First level text First level text Second level text Second level text –Third level text –Third level text  Fourth level text  Fourth level text © Bull, 2012 33
  • 34. Colour palette Core colours BOOST colours R178 V178 B178 R95 V95 B95 R41 V41 B41 R0 V117 B182 R96 V52 B129 R151 V191 B13 R119 V185 B0 R0 V128 B0 R238 V134 B0 R182 V0 B34 R255 V204 B102 © Bull, 2012 34
  • 35. Click to add title click to add text © Bull, 2012 35
  • 36. Standard slide with image Le cloud by Bull logo © Bull, 2012 36
  • 37. Standard slide with title and image 3D image of Tera 100 © Bull, 2012 37

Notes de l'éditeur

  1. Click to add comments
  2. Click to add comments
  3. First some background about me Then a description of the RaspberryPi – components &amp; the intenet behind it Pretty much a blow by blow description of how to install / compile Nagios on Squeezy on the RasPi Using mod_gearman distributing Nagios tasks using the Raspi Hopefully show you it working… What is the future for this technique &amp; technology Wrap up &amp; Questions
  4. Over 35 years working in the IT industry Coding real time systems and then on to Operating system support GeCOS &amp; Transaction Processing – assembler / machine code Network Processor software development Customer Facing IBM Mainframes MVS / VM – SNA VTAM / NCP – Bureau Environment / Service Orientated Bull – Honeywell Bull / CIIHB / Honeywell - worked at R&amp;D in Toronto / Minneapolis / Grenoble
  5. Bull Toronto was R&amp;D centre for system monitoring SNMp &amp; Graphical systems Openview on HP kit for IBM Bureau ISDN / Dial-In systems (from FT / Legal document systems) Netview for IBM SNA networks Open Master Openview like system written by Bull – AIX based Saw Netsaint 0.6 finally complied by Chris Rothecker, tried it decided I could do a better port – did it. – built AIX installp file that contained everything GD etc. released via the Bull freeware site. Followed project and continued to work with Nagios under AIX. Later evangelized Nagios in Bull and worked on the Linux based versions
  6. The idea behind a tiny and cheap computer for kids came in 2006, when Eben Upton and his colleagues at the University of Cambridge’s Computer Laboratory, including Rob Mullins, Jack Lang and Alan Mycroft, became concerned about the year-on-year decline in the numbers and skills levels of the A Level students applying to read Computer Science in each academic year. From a situation in the 1990s where most of the kids applying were coming to interview as experienced hobbyist programmers, the landscape in the 2000s was very different; a typical applicant might only have done a little web design. Something had changed the way kids were interacting with computers. A number of problems were identified: the colonisation of the ICT curriculum with lessons on using Word and Excel, or writing webpages; the end of the dot-com boom; and the rise of the home PC and games console to replace the Amigas, BBC Micros, Spectrum ZX and Commodore 64 machines that people of an earlier generation learned to program on. There isn’t much any small group of people can do to address problems like an inadequate school curriculum or the end of a financial bubble. But we felt that we could try to do something about the situation where computers had become so expensive and arcane that programming experimentation on them had to be forbidden by parents; and to find a platform that, like those old home computers, could boot into a programming environment. From 2006 to 2008, Eben designed several versions of what has now become the Raspberry Pi; you can see one of the earliest prototypes
  7. Wheezy has optimisation for the floating point processor and will use the dynamic overclocking firmware
  8. 4GB SSD is .130 8GB is .128 , remember to start nagios as root….
  9. Today 17 th in top 500 was 6 th when first built (2010) i.top500.org
  10. Inspired by the low-cost computing power of the Raspberry Pi, a team at the University of Southampton has used the ARM-based Linux computer-on-a-board as a building block for a low-cost supercomputer—racked and stacked using Lego blocks. And they’ve published a step-by-step guide for anyone interested in creating their own Raspberry Pi high-performance computing “bramble.&quot; Led by Professor Simon Cox, with Lego expertise lent by Cox’s 6-year old son James (who spent the summer learning to program on the Raspberry Pi using Python and MIT&apos;s Scratch), the team used 64 Raspberry Pi computers, each equipped with a 16-gigabyte SD card to construct a functioning computing cluster for under £2,500 (a bit over $4,000)—not including the Ethernet swtiches used to connect the nodes.
  11. Click to add comments
  12. The weather station that I’ve been using since November 2010 is one I bought from Maplin. They usually sell for about £125 but a couple of times a year they reduce them down to between £50-£70. N96FY USB Wireless Weather Forecaster. At the time of writing this they’ve got it reduced to £69.
  13. Click to add comments
  14. Click to add comments
  15. Click to add comments
  16. Click to add comments
  17. Click to add comments
  18. Click to add comments
  19. Click to add comments