Difference between revisions of "Nagios"

Jump to navigation Jump to search
1,998 bytes added ,  12:35, 31 August 2011
m
Another draft
(→‎Create SNMP Checks: First draft)
m (Another draft)
Line 1: Line 1:
== Introduction ==
Nagios is an open source monitoring tool. Its standard (Core) version is free for download and use with no real limitations, its premium (XI) version offers additional features, most notably a GUI interface with which to configure it.  Configuring Nagios is a bit of head scratcher at first, you seem to have to make lots of config changes in different places to get things working.  But once you've got the concepts in your head, its relatively straight forward.
Nagios is centred around device polling (it can receive SNMP traps, but its a more advanced feature), and the presentation of state data.  Though the first thing to appreciate is that Nagios doesn't actually do any monitoring, at its core it's a task scheduling and state management engine.  It needs third party '''plugins''', which do the actual monitoring a report back the state of the host you're monitoring to it.  There are plugins provided out-of-the-box, which will probably achieve most (if not all) of what you want.
This introduction is intended to explain the basic terminology, and get you going by demonstrating how to get a device or two monitored.
== Terminology ==
* '''host''' - A host is any network device that you want to monitor, be it a server, router, switch, SAN; anything that has an IP address.
* '''hostgroup''' - This is a collection of similar devices that you want to apply similar monitoring too, a host can be in more than one hostgroup.
* '''plugin''' - A plugin is a monitoring module, built to monitor/interface with a specific device, application etc,. It hides Nagios from the specific's of whatever its interfacing with.
* '''command''' - A command is command line call of a plugin with one or more parameters, which defines how you might use a plugin to test a host.
* '''service''' - A service is something that you care about on a host, that you want to test (eg web server response, ping, disk space, CPU,
== Useful Paths etc ==
{|cellpadding="4" cellspacing="0" border="1"
{|cellpadding="4" cellspacing="0" border="1"
|- style="background-color:#bbddff;"
|- style="background-color:#bbddff;"
Line 9: Line 24:
| <code> /usr/lib/nagios/plugins </code>  || Plugin executables
| <code> /usr/lib/nagios/plugins </code>  || Plugin executables
|-
|-
| <code> nagios3 -v /etc/nagios3/nagios.cfg </code>  || Config check
| <code> nagios3 -v /etc/nagios3/nagios.cfg </code>  || Config check - do before a restart to check a new config makes sense
|-
|-
| <code> service nagios3 restart </code>  || Restart service (reloads config)
| <code> service nagios3 restart </code>  || Restart service (reloads config - will fail if config is invalid!)
|}
|}
./usr/share/nagios
./usr/lib/nagios
./var/lib/nagios




Navigation menu