SlideShare a Scribd company logo
1 of 34
1© Bull, 2012
2nd October 2013 Dave Williams
Technical Architect
The All-in-One Nagios Solution -
2© Bull, 2012
Agenda
Background
The Raspberry Pi
The Raspberry Pi Nagios Recipe
All-in-One
Demonstration
Futures & ‘Blue Sky thinking’
Questions
3© Bull, 2012
Background
UK based
Mainframe (IBM & Honeywell)
Unix (HP-UX, AIX, Solaris)
Linux (RedHat, SLES, Debian)
Network (CASE, 3COM, CISCO)
Working for Bull
French Computer Manufacturer
Mainframes, Unix, HPC,
Security, Managed Services,
Advisory Services
4© Bull, 2012
Background
System Monitoring
OpenView
Netview
Open Master
Open Source Monitoring
NetSaint on AIX
Nagios
5© Bull, 2012
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.
6© Bull, 2012
The Raspberry Pi
Raspberry Pi’s are nearly everywhere
http://rastrack.co.uk
7© Bull, 2012
How big is yours ?
8© Bull, 2012
The All-in-One
9© Bull, 2012
This is probably big enough
10© Bull, 2012
The Raspberry Pi
11© Bull, 2012
Raspberry Pi
Because it is a 5V DC device it can be run from a small battery
pack – giving the ability to smooth incoming power and also
prevent power interruptions.
The SME monitor can survive power outages even when UPS’
are not deployed or are confined to essential equipment.
Open up possibilities of using Out of Band alerts for
environmental outages – using a real mobile phone for SMS
text alerting would mean that both the Raspberry Pi and the
mobile phone could continue to work during a total power
loss.
12© Bull, 2012
Raspberry Pi
An inexpensive way of powering your Raspberry Pi
13© Bull, 2012
Raspberry Pi
Something more elegant to act as a real UPS
14© Bull, 2012
The Raspberry Pi Nagios Recipe
Nagios Instance
3.5.2
4.0.0
Apache2
Asterix
Motion
15© Bull, 2012
All-in-One Alerting
16© Bull, 2012
Asterix Configuration
define command{
command_name notify-service-by-phone
command_line /usr/local/bin/notify-by-phone.sh $CONTACTADDRESS2$
"'This is a Nagios Service alert type $NOTIFICATIONTYPE$. Nagios Service Alarm.
$HOSTNAME$ has a problem with $SERVICEOUTPUT$. The problem is
$SERVICESTATE$.'"
"'$NOTIFICATIONTYPE$:$SERVICEDESC$:$HOSTNAME$:$SERVICESTATE$:$SERVICEO
UTPUT$'" $SERVICEEVENTID$
}
17© Bull, 2012
Asterix Configuration
/usr/local/bin/notify-by-phone.sh
#!/bin/bash
channel=$1
alarmtext=$2
alarmsub=$3
alarmid=$4
cd /tmp
echo $alarmtext > alarm_$alarmid.txt
echo $alarmsub > sub_$alarmid.txt
echo $alarmsub >> alarm_$alarmid.txt
18© Bull, 2012
Asterix Configuration
echo 'Press 1 to repeat this message, or press 2 to acknowledge the alert.' >>
alarm_$alarmid.txt
/usr/bin/text2wave -o alarm_$alarmid.wav alarm_$alarmid.txt
/usr/bin/sox alarm_$alarmid.wav -r 8000 alarm_$alarmid.ul
/bin/mv -f alarm_$alarmid.ul alarm_$alarmid.ulaw
/bin/rm alarm_$alarmid.wav
19© Bull, 2012
Asterix Configuration
echo "Channel: $channel
MaxRetries: 2
RetryTime: 60
WaitTime: 30
Context: alarm
Extension: 9999
Priority: 1
Set: alarmid=$alarmid" > alarm_$alarmid.call
/bin/chmod 777 alarm_$alarmid.call
/usr/bin/sudo /bin/mv alarm_$alarmid.call /var/spool/asterisk/outgoing
20© Bull, 2012
Asterix Configuration – extension.conf
[alarm]
exten => 9999,1,Answer
exten => 9999,2,NoOp(alarmid: ${alarmid})
exten => 9999,3,BackGround(/tmp/alarm_${alarmid})
exten => 9999,4,WaitExten(15)
exten => 9999,5,Hangup()
exten => _1,1,Goto(alarm,9999,3)
exten => _2,1,System(/usr/bin/sudo /bin/cp /tmp/sub_${alarmid}.txt
/home/nagios/tmp/)
exten => _2,2,System(/usr/bin/sudo /home/nagios/start.pl ${alarmid})
exten => _2,3,Background(/usr/local/share/sounds/HAL_goodbye)
exten => _2,4,Hangup()
21© Bull, 2012
Asterix Configuratio sip.conf
[voipfone]
type=peer
secret=?????
username=NNNNNNNN
fromuser=NNNNNNNN
fromdomain=sip.voipfone.net
host=sip.voipfone.net
insecure=very
dtmfmode= rfc2833
context=fromvoipfone # inbound calls falls in this context of
dialplan
22© Bull, 2012
Asterix results
'This is a Nagios Service alert type CUSTOM. Nagios Service
Alarm. localhost has a problem with DISK OK - free space: /
1337 MB (38% inode=67%):. The problem is OK.‘
Press 1 to repeat this message, or press 2 to acknowledge the
alert.
23© Bull, 2012
Asterix driven acknowledgement
24© Bull, 2012
Motion – motion.conf
; on_event_start value
on_event_start cd /etc/motion/scripts && send_nsca -H localhost -c send_nsca.cfg
< passive_camera_warning
Uses send_nsca to send standard alert:
File: passive_camera_warning contains :
localhost Camera Motion Detection 1 WARNING: Motion detected
25© Bull, 2012
All-in-One
Demonstration
Viewed using Midori browser
Memory before X & Browser
total used free shared buffers cached
Mem: 383972 146680 237292 0 16300 79924
-/+ buffers/cache: 50456 333516
Swap: 102396 0 102396
Memory after X & Browser
total used free shared buffers cached
Mem: 383972 246860 137112 0 23120 129804
-/+ buffers/cache: 93936 290036
Swap: 102396 0 102396
26© Bull, 2012
Futures & ‘Blue Sky thinking’
The All-in-One commercially could cost less than $1999
Including all equipment, a days installation / configuration and a limited
number (3-5) calls to a helpdesk.
Small & Medium enterprises could have their own system monitors with
alerting and visual displays for less than a cost of a small rack server.
Easily extend to Environment Monitoring
Possible European offer by Bull as ‘Vision-Pi’ as part of their Vision
Services offer.
27© Bull, 2012
Futures & ‘Blue Sky thinking’
Still more possibilities
Can Nagvis or NagiosTV be implemented on the All-in-One
Can Nagios XI be built and be practical on the All-in-One.
– Will the sizing & performance be practical ?
– Can a suitable licencing scheme be worked out with Ethan for ARM ?
What other monitoring scenarios can be added ?
28© Bull, 2012
Environment Monitoring
Using a 1-wire sensor DS18B20
Raspberry Pi already has kernel modules for this
t=23062, that is 23 degrees Centigrade
29© Bull, 2012
Fancy something bigger ?
30© Bull, 2012
Raspberry Pi Development System
Motorola Atrix LapDock & a couple of adapters
31© Bull, 2012
Closing Thoughts
Disruption – price / availability / capability
Hoover – the brand for Vacuum Cleaners
Phillips – name for Cross Head screwdrivers
Nagios – the name for system monitors
32© Bull, 2012
Questions ?
33© Bull, 2012
34© Bull, 2012

More Related Content

Similar to Nagios Conference 2013 - Dave Williams - The All-in-One Nagios Solution

Agile, DevOps, Cloud - practical tools of Digital Transformation by Paul Poli...
Agile, DevOps, Cloud - practical tools of Digital Transformation by Paul Poli...Agile, DevOps, Cloud - practical tools of Digital Transformation by Paul Poli...
Agile, DevOps, Cloud - practical tools of Digital Transformation by Paul Poli...Agile ME
 
Zero-downtime deployment of Micro-services with Kubernetes
Zero-downtime deployment of Micro-services with KubernetesZero-downtime deployment of Micro-services with Kubernetes
Zero-downtime deployment of Micro-services with KubernetesWojciech BarczyƄski
 
OmnibusCloud.short
OmnibusCloud.shortOmnibusCloud.short
OmnibusCloud.shortDmitry Ratner
 
Amora: A mobile remote assistant
Amora: A mobile remote assistantAmora: A mobile remote assistant
Amora: A mobile remote assistantgsroma
 
LCA 2014 project-builder.org presentation
LCA 2014 project-builder.org presentationLCA 2014 project-builder.org presentation
LCA 2014 project-builder.org presentationBruno Cornec
 
Leverage Cloud Computing to Accelerate Development and Test
Leverage Cloud Computing to Accelerate Development and TestLeverage Cloud Computing to Accelerate Development and Test
Leverage Cloud Computing to Accelerate Development and TestRightScale
 
Cloud computing
Cloud computingCloud computing
Cloud computingGenerate UK
 
DBaaS Bluemix Meetup DACH 26.8.14
DBaaS Bluemix Meetup DACH 26.8.14DBaaS Bluemix Meetup DACH 26.8.14
DBaaS Bluemix Meetup DACH 26.8.14Romeo Kienzler
 
Adobe Advertising Cloud: The Reality of Cloud Bursting with OpenStack
Adobe Advertising Cloud: The Reality of Cloud Bursting with OpenStackAdobe Advertising Cloud: The Reality of Cloud Bursting with OpenStack
Adobe Advertising Cloud: The Reality of Cloud Bursting with OpenStackNicolas Brousse
 
Enterprise Desktops Well Served - a technical perspective on virtual desktops
Enterprise Desktops Well Served - a technical perspective on virtual desktopsEnterprise Desktops Well Served - a technical perspective on virtual desktops
Enterprise Desktops Well Served - a technical perspective on virtual desktopsMolten Technologies
 
AMD 2014 Mobility APU Lineup Announcement
AMD 2014 Mobility APU Lineup AnnouncementAMD 2014 Mobility APU Lineup Announcement
AMD 2014 Mobility APU Lineup AnnouncementAMD
 
Windows 7: Unleash the Power
Windows 7: Unleash the PowerWindows 7: Unleash the Power
Windows 7: Unleash the PowerDoug Dooley
 
Release webinar architecture
Release webinar   architectureRelease webinar   architecture
Release webinar architectureBigData_Europe
 
Lavacon12 rethink content paper to tablet
Lavacon12 rethink content paper to tabletLavacon12 rethink content paper to tablet
Lavacon12 rethink content paper to tabletMaxwell Hoffmann
 
What is expected from Chief Cloud Officers?
What is expected from Chief Cloud Officers?What is expected from Chief Cloud Officers?
What is expected from Chief Cloud Officers?Bernard Paques
 
IBM PureSystems
IBM PureSystemsIBM PureSystems
IBM PureSystemsHelpSystems
 
Top 5 Reasons To Consider SolarWinds IPAM Over Infoblox
Top 5 Reasons To Consider SolarWinds IPAM Over InfobloxTop 5 Reasons To Consider SolarWinds IPAM Over Infoblox
Top 5 Reasons To Consider SolarWinds IPAM Over InfobloxSolarWinds
 

Similar to Nagios Conference 2013 - Dave Williams - The All-in-One Nagios Solution (20)

Agile, DevOps, Cloud - practical tools of Digital Transformation by Paul Poli...
Agile, DevOps, Cloud - practical tools of Digital Transformation by Paul Poli...Agile, DevOps, Cloud - practical tools of Digital Transformation by Paul Poli...
Agile, DevOps, Cloud - practical tools of Digital Transformation by Paul Poli...
 
Zero-downtime deployment of Micro-services with Kubernetes
Zero-downtime deployment of Micro-services with KubernetesZero-downtime deployment of Micro-services with Kubernetes
Zero-downtime deployment of Micro-services with Kubernetes
 
OmnibusCloud.short
OmnibusCloud.shortOmnibusCloud.short
OmnibusCloud.short
 
Amora: A mobile remote assistant
Amora: A mobile remote assistantAmora: A mobile remote assistant
Amora: A mobile remote assistant
 
LCA 2014 project-builder.org presentation
LCA 2014 project-builder.org presentationLCA 2014 project-builder.org presentation
LCA 2014 project-builder.org presentation
 
Leverage Cloud Computing to Accelerate Development and Test
Leverage Cloud Computing to Accelerate Development and TestLeverage Cloud Computing to Accelerate Development and Test
Leverage Cloud Computing to Accelerate Development and Test
 
Cloud computing
Cloud computingCloud computing
Cloud computing
 
DBaaS Bluemix Meetup DACH 26.8.14
DBaaS Bluemix Meetup DACH 26.8.14DBaaS Bluemix Meetup DACH 26.8.14
DBaaS Bluemix Meetup DACH 26.8.14
 
Adobe Advertising Cloud: The Reality of Cloud Bursting with OpenStack
Adobe Advertising Cloud: The Reality of Cloud Bursting with OpenStackAdobe Advertising Cloud: The Reality of Cloud Bursting with OpenStack
Adobe Advertising Cloud: The Reality of Cloud Bursting with OpenStack
 
hybriData IIoT Workshop for AAPG Short Course
hybriData IIoT Workshop for AAPG Short CoursehybriData IIoT Workshop for AAPG Short Course
hybriData IIoT Workshop for AAPG Short Course
 
Enterprise Desktops Well Served - a technical perspective on virtual desktops
Enterprise Desktops Well Served - a technical perspective on virtual desktopsEnterprise Desktops Well Served - a technical perspective on virtual desktops
Enterprise Desktops Well Served - a technical perspective on virtual desktops
 
AMD 2014 Mobility APU Lineup Announcement
AMD 2014 Mobility APU Lineup AnnouncementAMD 2014 Mobility APU Lineup Announcement
AMD 2014 Mobility APU Lineup Announcement
 
Dreambox caMip
Dreambox caMipDreambox caMip
Dreambox caMip
 
Windows 7: Unleash the Power
Windows 7: Unleash the PowerWindows 7: Unleash the Power
Windows 7: Unleash the Power
 
Release webinar architecture
Release webinar   architectureRelease webinar   architecture
Release webinar architecture
 
Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
 
Lavacon12 rethink content paper to tablet
Lavacon12 rethink content paper to tabletLavacon12 rethink content paper to tablet
Lavacon12 rethink content paper to tablet
 
What is expected from Chief Cloud Officers?
What is expected from Chief Cloud Officers?What is expected from Chief Cloud Officers?
What is expected from Chief Cloud Officers?
 
IBM PureSystems
IBM PureSystemsIBM PureSystems
IBM PureSystems
 
Top 5 Reasons To Consider SolarWinds IPAM Over Infoblox
Top 5 Reasons To Consider SolarWinds IPAM Over InfobloxTop 5 Reasons To Consider SolarWinds IPAM Over Infoblox
Top 5 Reasons To Consider SolarWinds IPAM Over Infoblox
 

More from Nagios

Nagios XI Best Practices
Nagios XI Best PracticesNagios XI Best Practices
Nagios XI Best PracticesNagios
 
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 OverviewNagios
 
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 HoodNagios
 
Sean Falzon - Nagios - Resilient Notifications
Sean Falzon - Nagios - Resilient NotificationsSean Falzon - Nagios - Resilient Notifications
Sean Falzon - Nagios - Resilient NotificationsNagios
 
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 EditionNagios
 
Janice Singh - Writing Custom Nagios Plugins
Janice Singh - Writing Custom Nagios PluginsJanice Singh - Writing Custom Nagios Plugins
Janice Singh - Writing Custom Nagios PluginsNagios
 
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 ExperienceNagios
 
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 ChecksNagios
 
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 InstallationNagios
 
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...Nagios
 
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 NagiosNagios
 
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.Nagios
 
Eric Loyd - Fractal Nagios
Eric Loyd - Fractal NagiosEric Loyd - Fractal Nagios
Eric Loyd - Fractal NagiosNagios
 
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...Nagios
 
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
 
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 OpeningNagios
 
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 CoreNagios
 
Nagios Log Server - Features
Nagios Log Server - FeaturesNagios Log Server - Features
Nagios Log Server - FeaturesNagios
 
Nagios Network Analyzer - Features
Nagios Network Analyzer - FeaturesNagios Network Analyzer - Features
Nagios Network Analyzer - FeaturesNagios
 
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 NagiosNagios
 

More from 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
 

Recently uploaded

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel AraĂșjo
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 

Recently uploaded (20)

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 

Nagios Conference 2013 - Dave Williams - The All-in-One Nagios Solution

  • 1. 1© Bull, 2012 2nd October 2013 Dave Williams Technical Architect The All-in-One Nagios Solution -
  • 2. 2© Bull, 2012 Agenda Background The Raspberry Pi The Raspberry Pi Nagios Recipe All-in-One Demonstration Futures & ‘Blue Sky thinking’ Questions
  • 3. 3© Bull, 2012 Background UK based Mainframe (IBM & Honeywell) Unix (HP-UX, AIX, Solaris) Linux (RedHat, SLES, Debian) Network (CASE, 3COM, CISCO) Working for Bull French Computer Manufacturer Mainframes, Unix, HPC, Security, Managed Services, Advisory Services
  • 4. 4© Bull, 2012 Background System Monitoring OpenView Netview Open Master Open Source Monitoring NetSaint on AIX Nagios
  • 5. 5© Bull, 2012 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.
  • 6. 6© Bull, 2012 The Raspberry Pi Raspberry Pi’s are nearly everywhere http://rastrack.co.uk
  • 7. 7© Bull, 2012 How big is yours ?
  • 8. 8© Bull, 2012 The All-in-One
  • 9. 9© Bull, 2012 This is probably big enough
  • 10. 10© Bull, 2012 The Raspberry Pi
  • 11. 11© Bull, 2012 Raspberry Pi Because it is a 5V DC device it can be run from a small battery pack – giving the ability to smooth incoming power and also prevent power interruptions. The SME monitor can survive power outages even when UPS’ are not deployed or are confined to essential equipment. Open up possibilities of using Out of Band alerts for environmental outages – using a real mobile phone for SMS text alerting would mean that both the Raspberry Pi and the mobile phone could continue to work during a total power loss.
  • 12. 12© Bull, 2012 Raspberry Pi An inexpensive way of powering your Raspberry Pi
  • 13. 13© Bull, 2012 Raspberry Pi Something more elegant to act as a real UPS
  • 14. 14© Bull, 2012 The Raspberry Pi Nagios Recipe Nagios Instance 3.5.2 4.0.0 Apache2 Asterix Motion
  • 16. 16© Bull, 2012 Asterix Configuration define command{ command_name notify-service-by-phone command_line /usr/local/bin/notify-by-phone.sh $CONTACTADDRESS2$ "'This is a Nagios Service alert type $NOTIFICATIONTYPE$. Nagios Service Alarm. $HOSTNAME$ has a problem with $SERVICEOUTPUT$. The problem is $SERVICESTATE$.'" "'$NOTIFICATIONTYPE$:$SERVICEDESC$:$HOSTNAME$:$SERVICESTATE$:$SERVICEO UTPUT$'" $SERVICEEVENTID$ }
  • 17. 17© Bull, 2012 Asterix Configuration /usr/local/bin/notify-by-phone.sh #!/bin/bash channel=$1 alarmtext=$2 alarmsub=$3 alarmid=$4 cd /tmp echo $alarmtext > alarm_$alarmid.txt echo $alarmsub > sub_$alarmid.txt echo $alarmsub >> alarm_$alarmid.txt
  • 18. 18© Bull, 2012 Asterix Configuration echo 'Press 1 to repeat this message, or press 2 to acknowledge the alert.' >> alarm_$alarmid.txt /usr/bin/text2wave -o alarm_$alarmid.wav alarm_$alarmid.txt /usr/bin/sox alarm_$alarmid.wav -r 8000 alarm_$alarmid.ul /bin/mv -f alarm_$alarmid.ul alarm_$alarmid.ulaw /bin/rm alarm_$alarmid.wav
  • 19. 19© Bull, 2012 Asterix Configuration echo "Channel: $channel MaxRetries: 2 RetryTime: 60 WaitTime: 30 Context: alarm Extension: 9999 Priority: 1 Set: alarmid=$alarmid" > alarm_$alarmid.call /bin/chmod 777 alarm_$alarmid.call /usr/bin/sudo /bin/mv alarm_$alarmid.call /var/spool/asterisk/outgoing
  • 20. 20© Bull, 2012 Asterix Configuration – extension.conf [alarm] exten => 9999,1,Answer exten => 9999,2,NoOp(alarmid: ${alarmid}) exten => 9999,3,BackGround(/tmp/alarm_${alarmid}) exten => 9999,4,WaitExten(15) exten => 9999,5,Hangup() exten => _1,1,Goto(alarm,9999,3) exten => _2,1,System(/usr/bin/sudo /bin/cp /tmp/sub_${alarmid}.txt /home/nagios/tmp/) exten => _2,2,System(/usr/bin/sudo /home/nagios/start.pl ${alarmid}) exten => _2,3,Background(/usr/local/share/sounds/HAL_goodbye) exten => _2,4,Hangup()
  • 21. 21© Bull, 2012 Asterix Configuratio sip.conf [voipfone] type=peer secret=????? username=NNNNNNNN fromuser=NNNNNNNN fromdomain=sip.voipfone.net host=sip.voipfone.net insecure=very dtmfmode= rfc2833 context=fromvoipfone # inbound calls falls in this context of dialplan
  • 22. 22© Bull, 2012 Asterix results 'This is a Nagios Service alert type CUSTOM. Nagios Service Alarm. localhost has a problem with DISK OK - free space: / 1337 MB (38% inode=67%):. The problem is OK.‘ Press 1 to repeat this message, or press 2 to acknowledge the alert.
  • 23. 23© Bull, 2012 Asterix driven acknowledgement
  • 24. 24© Bull, 2012 Motion – motion.conf ; on_event_start value on_event_start cd /etc/motion/scripts && send_nsca -H localhost -c send_nsca.cfg < passive_camera_warning Uses send_nsca to send standard alert: File: passive_camera_warning contains : localhost Camera Motion Detection 1 WARNING: Motion detected
  • 25. 25© Bull, 2012 All-in-One Demonstration Viewed using Midori browser Memory before X & Browser total used free shared buffers cached Mem: 383972 146680 237292 0 16300 79924 -/+ buffers/cache: 50456 333516 Swap: 102396 0 102396 Memory after X & Browser total used free shared buffers cached Mem: 383972 246860 137112 0 23120 129804 -/+ buffers/cache: 93936 290036 Swap: 102396 0 102396
  • 26. 26© Bull, 2012 Futures & ‘Blue Sky thinking’ The All-in-One commercially could cost less than $1999 Including all equipment, a days installation / configuration and a limited number (3-5) calls to a helpdesk. Small & Medium enterprises could have their own system monitors with alerting and visual displays for less than a cost of a small rack server. Easily extend to Environment Monitoring Possible European offer by Bull as ‘Vision-Pi’ as part of their Vision Services offer.
  • 27. 27© Bull, 2012 Futures & ‘Blue Sky thinking’ Still more possibilities Can Nagvis or NagiosTV be implemented on the All-in-One Can Nagios XI be built and be practical on the All-in-One. – Will the sizing & performance be practical ? – Can a suitable licencing scheme be worked out with Ethan for ARM ? What other monitoring scenarios can be added ?
  • 28. 28© Bull, 2012 Environment Monitoring Using a 1-wire sensor DS18B20 Raspberry Pi already has kernel modules for this t=23062, that is 23 degrees Centigrade
  • 29. 29© Bull, 2012 Fancy something bigger ?
  • 30. 30© Bull, 2012 Raspberry Pi Development System Motorola Atrix LapDock & a couple of adapters
  • 31. 31© Bull, 2012 Closing Thoughts Disruption – price / availability / capability Hoover – the brand for Vacuum Cleaners Phillips – name for Cross Head screwdrivers Nagios – the name for system monitors

Editor's Notes

  1. Every year more people purchase and deploy RasPi’s.
  2. Not every enterprise needs a system monitoring suite like this:However :All enterprises need some system monitoring
  3. The all-in-one 23” monitor with everything included :- Speakers for Audible alerts USB Hub to support Wireless Dongle / Keyboard / Mouse / Camera – other stuff
 Got round only having two USB ports by choosing a monitor with speakers &amp; a powered USB hub
  4. VESA mount on the back of the monitor , short cables etc to tidy up – dependant on monitor design
  5. Classic Raspberry Pi Model B layout
  6. A selection of products ‘welded’ together to provide the system
  7. Here is a log of the Nagios instance detecting physical motion (Camera Motion Detection) and then generating a telephone call (Notify-by-phone.sh)
  8. So building up notify-service-by-phone , starts with command-line running script notify-by-phone with the usual suspects as arguments (including serviceeventid.
  9. I’ve built this using a Monitor purchased from BestBuy on Monday and then added a Raspberry Pi , a VESA mount and some cables. As you can see from the slide there is still real memory left even after loading Apache, Nagios, Motion &amp; Asterix as well as the X display system and the X based GUI with web browser.
  10. A waterproof 2m DS18B20 costs $9.95

  11. To make Raspberry Pi development easier why not get hold of a Motorola LapDock for its Atrix phone and with a couple of adapters (micro HDMI mainly) – it’s the Raspberry Pi laptop
.
  12. Click to add comments