Installing Nagios on CentOS 4.x

Last modified on:
09-22-2006 – Added to the nagios.cfg file section.
11-02-2006 – Nothing exciting, just HTML changes.
12-19-2006 – Added upgrading from 2.5. to 2.6 notes

By: Max Hetrick
Table of contents:

1. System installed/tested on
2. References
3. Packages/Dependencies
4. Upgrading from 2.4
5. Upgrading from 2.5
6. Apache Setup
7. Installation
8. Nagios Apache File
9. Configure htpasswd File
10. Configure CGI
11. Configure nagios.cfg
12. Object Configuration Files
1. Timeperiods
2. Contacts/Contact Groups
3. Hosts and Host Groups
4. Services
13. Starting Nagios
14. Escalations
15. Extended Informations
16. Dependencies
17. The End

This document will breeze through installing and configuring everything necessary to get Nagios up and running. This will not touch in detail on the actual configuration directives Nagios uses. For that, documentation is readily available from the Nagios website, or locally after Nagios is installed. I’ll be explaining installation through RPM from Dag’s repo, but source is available if you prefer to build your own. Again, documentation for this is readily available. I use Dag’s repo from a seperate dag.repo file within /etc/yum.repos.d on my system, so I’ll be explaining it through the –enablerepo switch from Yum. Some, however, prefer to load Dag’s extra packages with apt-get. If you prefer this, simply substitute the Yum commands with your preferred method. This also assumes you already have a working e-mail server in your existing network as well. That’s how notifications will get sent, and that’s beyond the scope of this.

Read more at maxsworld.org

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s