Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Nagios

You're reading from   Learning Nagios A beginners guide on Nagios

Arrow left icon
Product type Paperback
Published in Aug 2016
Publisher
ISBN-13 9781785885952
Length 414 pages
Edition 3rd Edition
Tools
Arrow right icon
Authors (2):
Arrow left icon
Wojciech Kocjan Wojciech Kocjan
Author Profile Icon Wojciech Kocjan
Wojciech Kocjan
Piotr Beltowski Piotr Beltowski
Author Profile Icon Piotr Beltowski
Piotr Beltowski
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Introducing Nagios FREE CHAPTER 2. Installing Nagios 4 3. Configuring Nagios 4. Using the Built-in Web Interface 5. Using Additional Interfaces 6. Using the Nagios Plugins 7. Advanced Configuration 8. Notifications and Events 9. Passive Checks and NRDP 10. Monitoring Remote Hosts 11. Monitoring Using SNMP 12. Advanced Monitoring 13. Programming Nagios

Chapter 1. Introducing Nagios

Imagine you're an administrator of a large IT infrastructure. You have just started receiving e-mails that a web application has suddenly stopped working. When you try to access the same page, it just does not load. What are the possibilities? Is it the router? Maybe the firewall? Perhaps the machine hosting the page is down? The server process has crashed? Before you even start thinking rationally about what to do, your boss calls about the critical situation and demands explanations. In all this panic, you'll probably start plugging everything in and out of the network, rebooting the machine... and it still doesn't help.

After hours of nervous digging into the issue, you've finally found the root cause: although the web server was working properly, it continuously timed out during communication with the database server. This is because the machine with the database did not get an IP address assigned. Your organization requires all IP addresses to be configured using the DHCP protocol and the local DHCP server ran out of memory and killed several processes, including the dhcpd process responsible for assigning IP addresses. Imagine how much time it would take to determine all this manually! To make things worse, the database server could be located in another branch of the company or in a different time zone, and it could be the middle of the night over there.

But what if you had Nagios up and running across your entire company? You would just go to the web interface and see that there are no problems with the web server and the machine on which it is running. There would also be a list of issues—the machine serving IP addresses to the entire company does not do its job and the database is down. If the setup also monitored the DHCP server, you'd get a warning e-mail that little swap memory is available or too many processes are running. Maybe it would even have an event handler for such cases to just kill or restart non-critical processes. Also, Nagios would try to restart the dhcpd process over the network in case it is down.

In the worst case, Nagios would reduce hours of investigation to ten minutes. Ideally, you would just get an e-mail that there was such a problem and another e-mail that it's already fixed. You would just disable a few services and increase the swap size for the DHCP machine and solve the problem permanently. Hopefully, it would be solved fast enough so that nobody would notice that there was a problem in the first place!

You have been reading a chapter from
Learning Nagios - Third Edition
Published in: Aug 2016
Publisher:
ISBN-13: 9781785885952
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image