How To Monitor Linux and Windows Server And Network Using Nagios
This is a user contributed tutorial.
Nagios is free, open source host, service and network monitoring services. Nagios provides an extensible framework, that can monitor pretty much anything using plugins. Some of the items that can be monitored using Nagios plugins are listed below.
=> Disk space usage of remote Linux and Windows server
=> CPU Usage
=> Memory usage
=> Hardware Temperature
=> VPN tunnels
=> Router and Switches
=> Databases
=> Network services (DHCP, DNS, LDAP, SMTP etc.)
Nagios Configurations are very granular and managed using following three different category of configuration files:
- Nagios server and web console configuration files can be used to configure the Nagios server itself. For e.g. Use the nagios.cfg and cgi.cfg
- Resource files can be used to store user defined macros and sensitive configuration informations such as passwords.
- Object definition configuration files are used to store information about the hosts, services, commands, contacts, notification period etc.
Nagios has a web front end to display the status. Apart from getting the notification about the hosts and service status through email, SMS etc., you can also see the hosts, services, status through nagios web front end. You can project is on the NOC (Network Operation Center) to view the current status of your whole data center. You can also perform few actions on the web console such as disable and enable notification for a specific service. If you have defined the relationship between your hosts properly in the nagios configuration files, you can use the 3D display view to see a graphical representation of the whole data center visually. This also provides reporting feature where you can view the historic data such as availability of a particular service on a specific host over a period of time.

(Fig. 01 – Nagios web UI displaying status of various services on a Linux host)
Notification process on the Nagios is defined at a very granular level that it covers a wide range of possible scenarios on the notification including escalation process where a specific contact group can be notified if an issues has not been fixed after certain number of initial notifications. This is very helpful to automatically notify the management team about a critical service that was not fixed immediately.
Nagios can also be configured in a distributed setup, where datacenters from different parts of the world can be monitored using local nagios server that can report the status back to a central nagios server. This is achieved by NSCA (Nagios Service Check Acceptor) sending monitoring results from the local nagios server to the central server.
Following articles from The Geek Stuff blog, explains about everything that is required to get a jumpstart on the Nagios installation, configuration on Linux. This also explains about how to monitor Linux and Windows host.
- Nagios 3.0 Jumpstart guide for Linux - Overview, installation and configuration
- How to monitor remote Linux host using Nagios 3.0
- How to monitor remote Windows machine using Nagios on Linux
This article was written by Ramesh Natarajan. At the The Geek Stuff blog he shares his knowledge and experience on Linux and other Geeky stuff. He has more than 15 years of experience in IT industry and has performed very intensive work on Linux system administration, DBA, Hardware and Storage. nixCraft welcomes readers' tips / howtos.
E-mail this to a friend
Printable version
You may also be interested in other helpful articles:
- Suse Linux: Nagios Basic Installation and Configuration
- Howto: Building a Self-Healing Network with NAGIOS and Cfengine
- Download of the day: AutoScan Network Monitoring - Management Tool
- How To Track Changes in Your Linux Filesystem
- Linux MySQL server monitoring
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: cpu usage, disk space usage, extensible framework, free open source, graphical representation, linux host, memory usage, monitoring services, nagios plugins, network monitoring, nsclient, openview, rrdtool, server monitoring, service status, web front



Recent Comments
Today ~ 6 Comments
Today ~ 10 Comments
Today ~ 5 Comments
Yesterday ~ 22 Comments
Yesterday ~ 11 Comments