Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Nagios Conference 2011 - Dave Williams - Nagios In The Real World - The Datacentre


Published on

Dave William's presentation on using Nagios in the datacenter. The presentation was given during the Nagios World Conference North America held Sept 27-29th, 2011 in Saint Paul, MN. For more information on the conference (including photos and videos), visit:

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Nagios Conference 2011 - Dave Williams - Nagios In The Real World - The Datacentre

  1. 1. Nagios in the Real World Dave Williams Technical Architect
  2. 2. Agenda
  3. 3. Agenda <ul><li>Introduction </li></ul><ul><ul><li>General Background </li></ul></ul><ul><ul><li>System Monitoring Background </li></ul></ul><ul><li>Example Implementations of Nagios </li></ul><ul><ul><li>U K Customer Examples </li></ul></ul><ul><li>D atacentre Monitoring with Nagios </li></ul><ul><ul><li>What is a Datacentre ? </li></ul></ul><ul><ul><li>Software & Hardware combinations </li></ul></ul><ul><ul><li>Vision </li></ul></ul><ul><li>Conclusions </li></ul>
  4. 4. Background <ul><li>UK based </li></ul><ul><ul><li>Mainframe (IBM & Honeywell) </li></ul></ul><ul><ul><li>Unix (HP-UX, AIX, Solaris) </li></ul></ul><ul><ul><li>Network (CASE, 3COM, CISCO) </li></ul></ul><ul><li>W orking for Bull </li></ul><ul><ul><li>French Computer Manufacturer </li></ul></ul><ul><ul><li>M ainframes, Unix, HPC, Security, Managed Services </li></ul></ul>
  5. 5. Background <ul><li>System Monitoring </li></ul><ul><ul><li>OpenView </li></ul></ul><ul><ul><li>Netview </li></ul></ul><ul><ul><li>Open Master </li></ul></ul><ul><li>Open Source Monitoring </li></ul><ul><ul><li>NetSaint on AIX </li></ul></ul><ul><ul><li>Nagios </li></ul></ul>
  6. 6. Example Implementations
  7. 7. Crown Office Procurator Fiscal Service <ul><li>Responsible for the prosecution of crime in Scotland </li></ul><ul><ul><li>Investigation of suspicious deaths </li></ul></ul><ul><ul><li>Complaints against the Police </li></ul></ul><ul><li>IT Locations in Glasgow & Edinburgh </li></ul><ul><ul><li>W indows at every Courts of Justice in Scotland </li></ul></ul><ul><ul><li>AIX / Oracle DB at Glasgow & Edinburgh </li></ul></ul>
  8. 8. Crown Office Procurator Fiscal Service <ul><li>Already used Solarwinds for some network monitoring </li></ul><ul><li>S trategy demanded AIX based monitoring & reporting </li></ul><ul><ul><li>In a competitive tender Nagios selected </li></ul></ul><ul><ul><li>Main success points were – simplicity, ease of customisation </li></ul></ul><ul><ul><li>Fitted within AIX based distance data replication already in use </li></ul></ul>
  9. 9. Crown Office Procurator Fiscal Service <ul><li>60+ Windows systems monitored for CPU, Disk Space etc </li></ul><ul><li>2 AIX servers monitored for CPU, Disk Space etc </li></ul><ul><li>T wo Oracle Instances monitored for performance and DBspace usage </li></ul><ul><li>All alerts shown on monitor screen and if necessary SMS Text alerts </li></ul><ul><ul><li>Installed 2005, still working </li></ul></ul><ul><ul><li>Provides ‘backstop’ to Solarwinds for capacity monitoring on the WAN & LAN. </li></ul></ul>
  10. 10. Rother District Council <ul><li>“ Working with the community to improve the overall well-being of the District “ </li></ul><ul><ul><li>Responsible for Waste Collection, Housing, Planning & Building Control </li></ul></ul><ul><ul><li>The District covers some 200 square miles and serves a population of around 90,000 inhabitants. </li></ul></ul>
  11. 11. Rother District Council <ul><li>Monitoring 20+ Windows Servers for CPU, Disk Utilsation etc </li></ul><ul><li>Monitoring numerous disparate Applications </li></ul><ul><ul><li>Reporting on Availability </li></ul></ul><ul><ul><li>Monitoring Printer status </li></ul></ul><ul><ul><li>Unexpected benefits </li></ul></ul>
  12. 12. North Yorkshire County Council <ul><li>Internet Access system for 30,000 pupils </li></ul><ul><li>Monitoring e-mail, internet access, IDS, AV, Webservers </li></ul><ul><ul><li>Reporting on Availability </li></ul></ul><ul><ul><li>Monitoring Service Level Indicators </li></ul></ul><ul><ul><li>Mix of application providers (Scalix, Plesk) </li></ul></ul><ul><ul><li>Mix of appliance systems – Cisco, Panda, Radware, NetEnforcer, MyFilter </li></ul></ul>
  13. 13. North Yorkshire County Council <ul><li>System Schematic </li></ul>
  14. 14. North Yorkshire County Council <ul><li>Uses NRPE to perform active checks on hosts </li></ul><ul><li>Multi O/S support </li></ul><ul><ul><li>Debian </li></ul></ul><ul><ul><li>RedHat </li></ul></ul><ul><li>Uses NSCA to accept check results from Windows </li></ul><ul><ul><li>Via NagiosEventLog </li></ul></ul>
  15. 15. North Yorkshire County Council <ul><li>E-mail </li></ul><ul><ul><li>Scalix running on Redhat Cluster. Checking all processes, cluster state etc. </li></ul></ul><ul><li>PLESK Web server </li></ul><ul><ul><li>Checking availability of web sites via test installation </li></ul></ul><ul><ul><li>Monitoring disk utilsation and processor utilisation </li></ul></ul><ul><li>AV systems </li></ul><ul><ul><li>Monitoring availability </li></ul></ul><ul><ul><li>Checking on AV database </li></ul></ul><ul><li>Myfilter </li></ul><ul><ul><li>Monitoring email filters running </li></ul></ul><ul><ul><li>Checking that sufficient email filters are available </li></ul></ul>
  16. 16. North Yorkshire County Council <ul><li>E-mail </li></ul><ul><ul><li>Nagios server runs external email loopback test every 20 minutes to confirm external reachability. </li></ul></ul><ul><li>PLESK Web server </li></ul><ul><ul><li>Straightforward implementation of check_http </li></ul></ul><ul><li>NetBackup </li></ul><ul><ul><li>Monitoring that backups have run </li></ul></ul><ul><ul><li>Checking that enough backup tapes are available </li></ul></ul><ul><li>Business Availability </li></ul><ul><ul><li>Define which services constitute a business line </li></ul></ul><ul><ul><li>07:00 check – tell support before the customers come on line </li></ul></ul>
  17. 17. NYCC - Nagiosgraph <ul><li>Nagiosgraph </li></ul><ul><ul><li>Uses process_performance _data </li></ul></ul><ul><ul><li>Example of Unix load average </li></ul></ul>
  18. 18. NYCC – Nagios Monitoring <ul><li>Scalix Email System </li></ul>
  19. 19. NYCC <ul><li>Alerts sent via email to customers as well as support </li></ul><ul><li>Backup notifications via SMS Text </li></ul><ul><li>Use Nagios Looking Glass for Customer View </li></ul><ul><li>nagiosgraph used to catch all service performance data </li></ul><ul><ul><li>Debian & Redhat perfomance metrics </li></ul></ul><ul><ul><li>Network throughput from LAN switches </li></ul></ul><ul><ul><li>LDAP response time </li></ul></ul>
  20. 20. D atacentre Monitoring with Nagios
  21. 21. What is a DataCentre ? <ul><li>A data center (or datacentre) is a facility used to house computer systems and associated components, such as telecommunications and storage systems. It generally includes redundant or backup power supplies, redundant data communications connections, environmental controls and security devices. </li></ul><ul><li>(Wikipedia) </li></ul>
  22. 22. How good is your DataCentre ? <ul><li>The TIA-942:Data Center Standards Overview describes the requirements for the data centre infrastructure. The simplest is a Tier 1 data centre, which is basically a server room , following basic guidelines for the installation of computer systems. The most stringent level is a Tier 4 data centre, which is designed to host mission critical computer systems, with fully redundant subsystems and compartmentalized security zones controlled by biometric access controls methods . </li></ul><ul><li>(Wikipedia) </li></ul>
  23. 23. What is a DataCentre ? <ul><li>Tier 1 Requirements </li></ul><ul><ul><li>Single non-redundant distribution path serving the IT equipment </li></ul></ul><ul><ul><li>Non-redundant capacity components </li></ul></ul><ul><ul><li>Basic site infrastructure guaranteeing 99.671% availability </li></ul></ul><ul><li>Tier 2 Requirements </li></ul><ul><ul><li>Fulfills all Tier 1 requirements </li></ul></ul><ul><ul><li>Redundant site infrastructure capacity components guaranteeing 99.741% availability </li></ul></ul><ul><li>Tier 3 Requirements </li></ul><ul><ul><li>Fulfills all Tier 1 and Tier 2 requirements </li></ul></ul><ul><ul><li>Multiple independent distribution paths serving the IT equipment </li></ul></ul><ul><ul><li>All IT equipment must be dual-powered and fully compatible with the topology of a site's architecture Concurrently maintainable site infrastructure guaranteeing 99.982% availability </li></ul></ul><ul><li>Tier 4 Requirements </li></ul><ul><ul><li>Fulfills all Tier 1, Tier 2 and Tier 3 requirements </li></ul></ul><ul><ul><li>All cooling equipment is independently dual-powered, including chillers and heating, ventilating and air-conditioning (HVAC) systems </li></ul></ul><ul><ul><li>Fault-tolerant site infrastructure with electrical power storage and distribution facilities guaranteeing 99.995% availability </li></ul></ul><ul><li>© Uptime Institute </li></ul>
  24. 24. What is a Green DataCentre ? <ul><li>The most commonly used metric to determine the energy efficiency of a data centre is power usage effectiveness , or PUE. This simple ratio is the total power entering the data centre divided by the power used by the IT equipment. </li></ul><ul><ul><li>PUE = Total facility Power / IT Equipment Power </li></ul></ul><ul><li>Power used by support equipment, often referred to as overhead load, mainly consists of cooling systems, power delivery, and other facility infrastructure like lighting. The average data centre in the US has a PUE of 2.0, meaning that the facility uses one Watt of overhead power for every Watt delivered to IT equipment. State-of-the-art data centre energy efficiency is estimated to be roughly 1.2. </li></ul>
  25. 25. Bull Datacentre BC1 ? <ul><li>New datacentre build on an already existing site </li></ul><ul><li>Design criteria PUE 1.6 </li></ul><ul><li>Easily expanded on demand </li></ul><ul><li>Tier 3 </li></ul>
  26. 26. Bull UK Datacentre BC1 <ul><li>What do you get for £1.2m ? </li></ul>
  27. 27. Bull UK Datacentre BC1 <ul><li>New Mains Incomer </li></ul><ul><ul><li>Took feed from 11Kv ring </li></ul></ul><ul><ul><li>H ad to build own substation </li></ul></ul><ul><li>1 .2Mw Generator </li></ul><ul><ul><li>Required 8000 litre fuel tank </li></ul></ul><ul><ul><li>Switchgear to automatically start generator if mains incomer fails (10-45 seconds) </li></ul></ul><ul><li>3 x Ambient CRAC Units </li></ul><ul><ul><li>Cooling via external temperature differential </li></ul></ul><ul><ul><li>N+1 configuration </li></ul></ul><ul><ul><li>Hot Aisle Containment </li></ul></ul><ul><li>I n-Line UPS </li></ul><ul><ul><li>UPS only required to keep IT equipment running until generator fires up </li></ul></ul><ul><ul><li>Uses space in Cab rows, easily scalable according to load </li></ul></ul>
  28. 28. Bull UK Datacentre BC1 - Monitoring <ul><li>Physical Environment </li></ul><ul><ul><li>APC Netbotz Devices </li></ul></ul><ul><ul><ul><li>Translate inputs from sensors </li></ul></ul></ul><ul><ul><ul><li>Humidity, Temperature, Dew Point </li></ul></ul></ul><ul><ul><li>SEAL I/O Dry Contact </li></ul></ul><ul><ul><ul><li>Voltage indicators </li></ul></ul></ul><ul><ul><ul><li>For CRAC, FM200, Generator, UPS </li></ul></ul></ul><ul><li>Electrical Efficiency </li></ul><ul><ul><li>PowerLogic ION software reads from power meters </li></ul></ul><ul><ul><li>Power meter on every Distribution Board </li></ul></ul><ul><ul><li>Real-time calculation of PUE </li></ul></ul><ul><li>Power Distribution </li></ul><ul><ul><li>Every PDU strip (2 per Cab) monitored for power consumption & problems </li></ul></ul><ul><ul><li>A number of PDU strips also have remote control down to socket level </li></ul></ul><ul><li>Management Network </li></ul><ul><ul><li>LAN infrastructure required to support the Datacentre </li></ul></ul><ul><ul><li>Servers required to support the datacentre </li></ul></ul><ul><ul><li>External alert mechanisms </li></ul></ul>
  29. 29. Bull UK Datacentre BC1 <ul><li>What does Netbotz look like ? </li></ul>
  30. 30. Bull UK Datacentre BC1 <ul><li>What does SeaLevel look like ? </li></ul>
  31. 31. Bull UK Datacentre BC1 <ul><li>What does ION look like ? </li></ul>
  32. 32. Bull UK Datacentre BC1 <ul><li>What does a metered PDU look like ? </li></ul>
  33. 33. Bull UK Datacentre BC1 <ul><li>What does a managed PDU look like ? </li></ul>
  34. 34. Bull UK Datacentre BC1 <ul><li>Nagios Map </li></ul>
  35. 35. Bull UK Datacentre BC1 <ul><li>Nagios Host Groups </li></ul>
  36. 36. Bull UK Datacentre BC1 <ul><li>Do things go wrong - yes </li></ul>
  37. 37. Bull UK Datacentre BC1 <ul><li>Do things go wrong - yes & no </li></ul>
  38. 38. Datacentre Monitoring Schematic
  39. 39. Nagios Products in use <ul><li>Nagios Core </li></ul><ul><ul><li>NRPE </li></ul></ul><ul><ul><li>NSCA </li></ul></ul><ul><li>Nagios Looking Glass </li></ul><ul><li>Nagvis </li></ul><ul><li>EventDB </li></ul><ul><li>SNMPTT </li></ul><ul><li>Nagmap </li></ul><ul><li>NDO </li></ul>
  40. 40. Other Open Source Products in use <ul><li>Nedi </li></ul><ul><li>Arpwatch </li></ul><ul><li>PSAD </li></ul><ul><li>SMS-Client </li></ul><ul><li>Bacula </li></ul><ul><li>Confluence (Wiki) </li></ul><ul><li>i-doit (ITIL CMDB) </li></ul><ul><li>MRTG </li></ul><ul><li>Routers2cgi </li></ul>
  41. 41. BC1 Datacentre Monitoring Elements <ul><li>Nagios Core </li></ul><ul><ul><li>Normal install with direct polling of devices </li></ul></ul><ul><ul><li>Only looking at Datacentre </li></ul></ul><ul><li>Nagios Display System </li></ul><ul><ul><li>Central reporting Nagios </li></ul></ul><ul><ul><li>Absorbs updates from other Nagios instances </li></ul></ul><ul><li>Information Display </li></ul><ul><ul><li>Normal system with 5 heads </li></ul></ul><ul><li>Nagios Customer System </li></ul><ul><ul><li>Running on an appliance connected to Customer network </li></ul></ul><ul><ul><li>Sends data via encrypted secured link to Display System </li></ul></ul><ul><li>Backup System </li></ul><ul><ul><li>Use tape library </li></ul></ul><ul><ul><li>Hosts CMDB & WiKi </li></ul></ul>
  42. 42. BC1 Datacentre Nagios Core <ul><li>Hardware Platform - Intel </li></ul><ul><ul><li>O/S Centos 5 </li></ul></ul><ul><ul><li>X eon 2.8Ghz , 8Gb memory, 72GB RAID-1 disk </li></ul></ul><ul><li>N agios 3.2.0 </li></ul><ul><ul><li>B uilt from source tarball </li></ul></ul><ul><li>Nagios Plugins 1.4.15-2 </li></ul><ul><ul><li>I nstalled from RPM </li></ul></ul>
  43. 43. BC1 Datacentre Nagios Display System <ul><li>Hardware Platform - Intel </li></ul><ul><ul><li>O/S Fedora Core 9 </li></ul></ul><ul><ul><li>P4 2.8Ghz , 2.5Gb memory, 76GB RAID-1 disk </li></ul></ul><ul><ul><li>Nvidia dual monitor display Card – DVI interfaces </li></ul></ul><ul><li>N agios 3.0.6 </li></ul><ul><ul><li>B uilt from source tarball </li></ul></ul><ul><li>Nagios Plugins 1.4.13-9 </li></ul><ul><ul><li>I nstalled from RPM </li></ul></ul>
  44. 44. BC1 Datacentre Normal Display System <ul><li>Hardware Platform - AMD </li></ul><ul><ul><li>O/S Centos 5 </li></ul></ul><ul><ul><li>Athlon 1.2Ghz , 1.0 Gb memory, 3GB disk </li></ul></ul><ul><ul><li>Matrox G200 Quad Head </li></ul></ul><ul><li>Runs console displays – http/RDP/ssh </li></ul>
  45. 45. BC1 Datacentre Customer System <ul><li>Hardware Platform – Motion Tablet </li></ul><ul><ul><li>O/S Ubuntu 10.04 LTS </li></ul></ul><ul><ul><li>Pentium M 1.5Ghz , 0.5 Gb memory, 30GB disk </li></ul></ul><ul><ul><li>Touch Screen tablet system </li></ul></ul><ul><li>Nagios 3.2.3 </li></ul><ul><ul><li>Built from tarball </li></ul></ul><ul><li>Nagios Plugins 1.4.15 </li></ul><ul><ul><li>Built from tarball </li></ul></ul><ul><li>Nagios NSCA </li></ul><ul><ul><li>Sends status (encrypted) to central reporting system </li></ul></ul>
  46. 46. BC1 Datacentre Backup System <ul><li>Hardware Platform – Intel </li></ul><ul><ul><li>O/S Centos 5 </li></ul></ul><ul><ul><li>Xeon 3.06Ghz , 2.0 Gb memory, 108GB disk </li></ul></ul><ul><li>Uses Bacula 5.0.3 </li></ul><ul><ul><li>Controls SDLT 20 slot tape library </li></ul></ul><ul><ul><li>Backs up all Datacentre Infrastructure </li></ul></ul><ul><ul><ul><li>Windows </li></ul></ul></ul><ul><ul><ul><li>Centos </li></ul></ul></ul><ul><ul><ul><li>Ubuntu </li></ul></ul></ul>
  47. 47. Conclusions
  48. 48. Conclusions <ul><li>Strategic Overall Design </li></ul><ul><ul><li>Know what you need to monitor </li></ul></ul><ul><ul><li>Know who needs to be told </li></ul></ul><ul><li>E xpect to throw the first version away </li></ul><ul><ul><li>Only when you have fully engineered the solution will you understand all of the issues </li></ul></ul><ul><ul><li>Keep a record of design decisions </li></ul></ul><ul><li>You will have to make it pretty for management </li></ul><ul><ul><li>Accept that an attractive display will be required </li></ul></ul><ul><ul><li>Reporting will become key </li></ul></ul><ul><li>I t must be reliable </li></ul><ul><ul><li>Make backups </li></ul></ul><ul><ul><li>Consider clustering & recovery options </li></ul></ul>
  49. 49. & Hints
  50. 50. Hints & Experience <ul><li>Separate Display systems from Monitoring systems </li></ul><ul><ul><li>If you are tracking 10,000’s of services you don’t want processor heavy graphics as well </li></ul></ul><ul><li>E scalation & Alerting take time </li></ul><ul><ul><li>Firstly to get right with your organisation </li></ul></ul><ul><ul><li>Secondly to actually physically do ! </li></ul></ul><ul><li>Suppliers go out of their way to make it difficult </li></ul><ul><ul><li>Don’t give in – there is always a way to get Nagios involved </li></ul></ul><ul><ul><li>Screen scrape, email, telnet,RS232 are all possible </li></ul></ul><ul><li>SNMP is your friend </li></ul><ul><ul><li>When in doubt use SNMP to help you out </li></ul></ul><ul><ul><li>SNMP V3 with AES cypher is suitably secure for most implementations </li></ul></ul>