Skip to content
View in the app

A better way to browse. Learn more.

Gear Crushers

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Installing nagios xi on centos 6.x

Featured Replies

First let's install the pre-req's


 


INSTALL APACHE



yum install httpd -y


service httpd start


chkconfig httpd on

NOTE: If you get an error like



[root@srvr01 ~]# service httpd start


Starting httpd: httpd: apr_sockaddr_info_get() failed for srvr01.thezah.com


httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName


 



The fix is to add your IPAddress and hostname to /etc/hosts


 


Allow port 80 through the builtin firewall (iptables)



vi /etc/sysconfig/iptables

Add the following line




-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT

Restart the builtin firewall



service iptables restart

Test that Apache is working by opening a browser and navigating to http://localhost/ or http://server-ip-address/


 


INSTALL MySQL



yum install mysql mysql-server -y

Start MySQL Service



service mysqld start

Turn mysql service each time your server reboots



chkconfig mysqld on

Set the mysql root password



mysql_secure_installation

INSTALL PHP



yum install php -y

Create a test php file



vi /var/www/html/testphp.php

Add the following




<?php
phpinfo();
?>

Restart Apache



service httpd restart

See if your PHP is working by loading that testphp.php file you created



http://server-ip-address/testphp.php

Install mysql plugin for php



yum install php-mysql -y

INSTALL phpMyAdmin


PreReq is to add distribution that holds the phpmyadmin package to yum repository



wget http://epel.mirror.net.in/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6-8.noarch.rpm
yum repolist


installing phpmyadmin



yum install phpmyadmin -y


cp /usr/share/phpMyAdmin/config.sample.inc.php /usr/share/phpMyAdmin/config.inc.php


vi /usr/share/phpMyAdmin/config.inc.php

change cookie to http



/* Authentication type */ 
$cfg['Servers'][$i]['auth_type'] = 'http';

edit config to allow access



vi /etc/httpd/conf.d/phpMyAdmin.conf

Comment out entire





#    
#     # Apache 2.4 
#     Require local 
#    
#    
#     # Apache 2.2 
#     Order Deny,Allow 
#     Deny from All 
#     Allow from 127.0.0.1 
#     Allow from ::1 
#    
#


 


Restart Apache



service httpd restart

Test phpMyAdmin by navigating to http://server-ip-address/phpmyadmin/



 


 



INSTALL NAGIOS

 



cd /tmp





tar xzf xi-latest.tar.gz




cd /tmp/nagiosxi




./fullinstall


 


 


 


 


 


 



Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.