Nagios
is the most popular, open source, powerful monitoring system. It enables organizations to identify and resolve IT infrastructure problems before they affect critical business processes. Nagios has capability of monitoring application, services, entire IT infrastructure.
This is Part-1 of complete article How to Setup Nagios Monitoring Server with NagiosQL on CentOS/RHEL 6/5, In this part you will find the steps to setup Nagios Monitoring Server on CentOS/RHEL systems.
Step 1: Add EPEL RPM Repository
Before starting setup, first we need to add EPEL RPM repository in our system using one of following commands.
Step 2: Setup Required Packages/Services
We assume that you have fresh installed CentOS/RHEL systems, So our first requirement is to install Apache and PHP first. Use the following commands to complete it. You can find detailed LAMP setup instruction here.
Install Packages:
Start Services:
Step 3: Install Nagios Core Service
After installing required packages, Lets install Nagios core service and plugins using yum. Nagios is available under yum repositories, so simply execute below commands to install it.
Nagios Defaults:
Nagios configuration file:
/etc/nagios/nagios.cfg
Nagios Apache configuration file:
/etc/httpd/conf.d/nagios.conf
Web Document Root:
/usr/share/nagios/html
User Auth file:
/etc/nagios/passwd
Step 4: Install Nagios Plugins
After installing Nagios core package, install nagios-plugins which is required to proper working of Nagios.
Step 5: Create admin Account
To secure nagios in apache, create an user using following command. This command will prompt to enter password twice. We recommend to keep username as nagiosadmin.
Step 6: Verify and Start Nagios
Use the following commands to verify nagios install and start nagios core service.
Step 7: Access Nagios in Web Browser
Nagios creates its own apache configuration file /etc/httpd/conf.d/nagios.conf. There are no need to make any changes to it. Simply open below url in browser.
[change domain name with your domain or ip]
Continue to NagiosQL3 Integration with Nagios Core Service
The post How to Setup Nagios Monitoring Server with NagiosQL on CentOS/RHEL 6/5 – Part-1 appeared first on TecAdmin.net.