Home > Networking Tips > Network Engineering > Network monitoring with Nagios, part one
Networking Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

NETWORK ENGINEERING

Network monitoring with Nagios, part one


Bernard Golden
04.18.2006
Rating: -4.50- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


How can a system administrator monitor a large number of machines and services to proactively address problems before anyone else suffers from them?

The answer is Nagios.

Nagios is an open source network monitoring tool. It is free, powerful and flexible. It can be tricky to learn and implement, but can reduce enormously the amount of time required to keep track of how your organization's IT infrastructure is performing.

I'll cover the usefulness and architecture of Nagios in part one of this two-part column. In part two, I'll offer configuration examples and advice.

To understand the usefulness of Nagios, consider a typical IT infrastructure that one or more system administrators are responsible for. Even a small company may have a number of pieces of hardware with many services and software packages running on them. Larger companies may have hundreds or even thousands of items to keep up and running. Both small and large companies may have decentralized operations, implying a decentralized IT infrastructure, with no ability to physically see many of the machines at all.

Naturally, each piece of hardware will have a unique set of software products running on it. Faced with a multitude of hardware and software to monitor, administrators cannot pay attention to each specific item; the default posture in this kind of situation is to respond to service outages on a reactive basis. Worse, awareness of the problem usually comes only after an end-user complains.

Beyond the obvious public relations problem, there are also inefficiencies inherent in reactive problem solving. Problems that might have only taken a few minutes to address if caught early can become much more time-consuming if addressed later. For example, a database that is running out of disk space for its logs might be easy to fix before the last byte of disk is consumed, but fixing the problem once the system is hung due to inability to write log records is much harder to do.

Therefore, an automated tool that can help in system administration can be extremely helpful. These tools go by the generic name of network management software, and all share the capability to:

  • Keep track of all the services and machines running in the infrastructure;
  • Raise alerts before small problems become large ones;
  • Run from a central location to reduce the need to physically go to each machine; and,
  • Provide a visual representation of system-wide status, outstanding problems, etc.

Two main problems keep network management software from being more widely used:

  • It tends to be extremely expensive; and,
  • It requires significant work to configure for a given environment.

Nagios is an open source network management tool that solves the first problem. It too, requires a fair amount of configuration, but there are a couple of suggestions to reduce that burden later in this article.

The Nagios architecture

The Nagios application runs on a central server, either Linux or Unix. Each piece of hardware that must be monitored runs a Nagios daemon that communicates with the central server. Depending on the instructions in the configuration files the central server reads, it will "reach out and touch" the remote daemon to instruct it to run a necessary check. While the application must run on Linux or Unix, the remote machines may be any piece of hardware that may be communicated with.

Depending upon the response from the remote machine, Nagios will then respond with an appropriate action, again, according to its configuration. Depending upon what remote test needs to be performed, Nagios will perform the test via a native machine capability (e.g., test to see if a file exists) or will run a custom test program (called a plugin) to test something more specific (e.g., check to see if a particular set of values has been placed into a database). If a check return value is not correct, Nagios will raise an alert via one or several methods -- again, according to how it has been configured.

Now, let's move on to part two, where I provide an example of a Nagios configuration.

About the author:
Bernard Golden is CEO of Navica Inc., a systems integration firm specializing in open source software. He writes a column for SearchEnterpriseLinux.com called Golden's Rules and answers your questions about open source software issues.

This article originally appeared on SearchOpenSource.com.

Rate this Tip
To rate tips, you must be a member of SearchNetworking.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Network Engineering
Recovering domain controllers after a server disk failure
Recovering from a server disk failure: The shortcomings of NTBCKUP
Enabling Windows Vista's Network Mapping feature on domain networks
Prevent unauthorized USB devices with software restriction policies, third-party apps
How to subnet: Subnetting calculations and shortcuts
Using Windows Vista group policy to prevent unauthorized USB device use
ISDN implementation: Part 3 -- Cisco router ISDN configuration
Troubleshoot network problems with Network Monitor
Disabling IPv6 in Windows Vista -- Pros and cons
Cleaning up: Managing Windows networks using scripts, part 2

Network Monitoring
Internet monitoring vendor adds throttling, filtering, to its appliance
How green is my network? -- A look at the cost-savings benefit of green IT
Network pros spend months on troubleshooting
Open source network monitoring reaches for the enterprise
Troubleshooting remote scripting using Network Monitor 3.0: Managing Windows networks using scripts -- Part 8
Network visibility critical to catching performance loss before end users complain
When fighting peer-to-peer, packet shaping can be more effective than cat-and-mouse
Network monitoring vendors sell SMBs on usability
Open source network monitoring: Monitor your routers with Cacti
How the NetFlow protocol monitors your WAN
Network Monitoring Research

Network Management Software
The evolving NOC and IT prestige: How to break down silos and prove your worth
AlterPoint launches ZipForge, a repository for open source network configuration platform
Remote access security management software is a time saver for network administrators
How asset management can benefit your network
When fighting peer-to-peer, packet shaping can be more effective than cat-and-mouse
Network monitoring vendors sell SMBs on usability
Introduction to firewalls: Types of firewall
Automated network management alleviates staff shortages
Network management best practices: Collecting essential data to optimize network performance
What network monitoring software is recommended?

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
10-high-day busy period  (SearchNetworking.com)
ACK  (SearchNetworking.com)
baseboard management controller  (SearchNetworking.com)
call failure rate  (SearchNetworking.com)
jam  (SearchNetworking.com)
Jini  (SearchNetworking.com)
maximum segment size  (SearchNetworking.com)
maximum transmission unit  (SearchNetworking.com)
netstat  (SearchNetworking.com)
network tracking tool  (SearchNetworking.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.

HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsWebcastsWhite PapersNetworking Product Trials
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2000 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts