A List of Apache Web Server Books

The Accidental Administrator: Linux Server Step-by-Step Configuration Guide by Don R Crawley
Administering Apache by Mark Allan Arnold, Clint Miller, James Sheetz and Jeff D. Almeida
Apache 2 Pocket Reference: For Apache Programmers & Administrators (Pocket Reference (O'Reilly)) by Andrew Ford
Apache Administrator's Handbook by Rich Bowen, Daniel Lopez Ridruejo and Allan Liska
Apache Cookbook: Solutions and Examples for Apache Administration by Rich Bowen and Ken Coar
Apache Essentials: Install, Configure, Maintain (Pioneering Series) by Darren James Harkness
Apache Hadoop YARN: Moving beyond MapReduce and Batch Processing with Apache Hadoop 2 (Addison-Wesley Data & Analytics) by Arun Murthy, Vinod Vavilapalli, Douglas Eadline, Joseph Niemiec and Jeff Markham
Apache HTTP Server 2.2 Official Documentation - Volume I. Server Administration by Apache Software Foundation
Apache HTTP Server 2.4 Reference Manual 2/3 (Volume 2) by Apache Contributors
Apache HTTP Server introduction by Antun Peicevic
Apache HTTP Server: Questions and Answers by George A Duckett
Apache HTTP Server Reference Manual - For Apache Version 2.2.17 by Apache Software Foundation
The Apache Modules Book: Application Development with Apache by Nick Kew
Apache Phrasebook by Daniel Lopez and  Jesus Blanco
Apache Server 2.0: A Beginner's Guide by Kate Wrightson
Apache Server 2.0: The Complete Reference by Ryan B. Bloom
Apache: The Definitive Guide (3rd Edition) by Ben Laurie and Peter Laurie
AWS Scripted: How to Automate the Deployment of Secure and Resilient Websites with Amazon Web Services VPC, ELB, EC2, RDS, IAM, SES and SNS by Christian Cerri
Beginning JSP , JSF and Tomcat Web Development: From Novice to Professional  by Giulio Zambon  and  Michael Sekler
Build a Home Webserver Using Fedora 11 by Roy Ellwood
Course Ilt Sair Apache Web Server  by Course Technology Ilt
The Definitive Guide to Apache mod_rewrite (Definitive Guides (Hardcover)) by Rich Bowen
Fedora Linux: A Complete Guide to Red Hat's Community Distribution by Chris Tyler
Hardening Apache (Expert's Voice in Open Source Books for Professionals by Pro) by Tony Mobily
Instant Apache ServiceMix How-to by Henryk Konsek
LAMP Stack for Humans: How to turn a laptop into a web server on your local network by Jay Versluis
Linux Apache Web Server Administration, Second Edition (Craig Hunt Linux Library) by Charles Aulds
Linux Web Server Development: A Step-by-Step Guide for Ubuntu, Fedora, and other Linux Distributions by Christos Karayiannis
OpenVMS with Apache, WASD, and OSU: The Nonstop Webserver (HP Technologies) by Alan Winston
Practical Ajax Projects with Java Technology (Expert's Voice) by Frank Zammetti
Preventing Web Attacks with Apache by Ryan C. Barnett
Pro Apache Beehive (Expert's Voice in Java) by Kunal Mittal  and  Srinivas Kanchanavally
Pro Apache (Expert's Voice) by Peter Wainwright
The Programmer's Guide to Apache Thrift by Randy Abernethy
Pro SpringSource dm Server (Expert's Voice in Open Source) by Gary Mak and Daniel Rubio
Run Your Own Web Server Using Linux & Apache: Install, Administer, and Secure Your Own Web Server by Tony Steidler-Dennison
Sair Linux and GNU Certification Level II, Apache and Web Servers: Apache and Web Servers Level 2 by Sair Development Team
Sams Teach Yourself Apache 2 in 24 Hours by Daniel Lopez Ridruejo and Ian Kallen
Sams Teach Yourself PHP, MySQL and Apache All in One (5th Edition) by Julie C. Meloni
Server Administration III: Web by Dr. Kerry Cox
Setting up LAMP: Getting Linux, Apache, MySQL, and PHP Working Together by Eric Filson and Erick Rosebrock
Unified Log Processing: Integrating and processing event streams by Alexander Dean
Writing Apache Modules with Perl and C: The Apache API and mod_perl  by Doug MacEachern and Lincoln Stein

How Do You Integrate PHP with Postgresql?

Problem scenario
You want your PHP files (either a frontend web page or a purely backend script) to integrate with Postgres.  You want .php files to log into a Postgres database to run SQL commands.  How do you do this?

Solution
Install php5-pgsql or php7.0-pgsql.  It depends on your version of PHP.  Use this command to find out what version of PHP you have:  php --version

Install this module:  libapache2-mod-php.  As root or with a "sudo " in front of this command, run:
apt-get -y install libapache2-mod-php

To install the php pgsql package on Ubuntu, you should run a command like one of these as root:  
apt-get install php5-pgsql
apt-get install php7.0-pgsql

How Do You Install Vagrant on an Ubuntu Linux Server?

Problem scenario
You have Ubuntu 14.04 or 16.x, and you want to install Vagrant 1.x. (If you have Ubuntu 16.0x or higher and want to install Vagrant 2.x, go to the very bottom.)  How do you do it?

Solution
1. Run this command: sudo find / -name sources.list #find the file that governs Debian packages

3.  Ignore /usr/share/doc/apt/examples/sources.list.  Make a copy of the other sources.list as a back up (in case you need to rollback).

4.  Modify one sources.list file (not /usr/share/doc/apt/examples/sources.list) to include these stanzas (from "#Universe Repos" to "...trusty-updates universe") in addition to whatever else was already in the file:

# Universe Repos
deb http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty universe

###### Ubuntu Update Repos Universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty-security universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-security universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe

5.  After you save the changes to sources.list, run these commands:

sudo apt-get -y update
​sudo apt-get -y install vagrant

6.  To confirm installation, run this command:  vagrant version

End of this solution.

==================================================================================

Problem scenario
How do you install Vagrant 2.x on Ubuntu 16.x or higher?

Solution
Run these commands:

curl https://releases.hashicorp.com/vagrant/2.0.3/vagrant_2.0.3_x86_64.deb > /tmp/vagrant_2.0.3_x86_64.deb
sudo dpkg -i /tmp/vagrant_2.0.3_x86_64.deb

Grammar and the Modern Age

In technical writing there is emphasis on clarity.  Often grammar rules are not followed.  The past tense of the verb run is "ran."  The past tense of the verb come is "came."  The past participle of the verb run is "run."  The past participle of the verb come is "come."  Do not confuse the past tense with the past participle.

So these two sentences are grammatical:  The email has not come yet.  The script has not run yet.  These two sentences are also grammatical:  The emails have not come yet.  The scripts have not run yet.

Some authors say that ungrammatical published articles can ruin a reputation.  We are skeptical of this, but we appreciate it when articles adhere to the rules of English.  For good books on English grammar, you may want to read Strunk and White, a book by Adams Media, or The Chicago Style Manual.

A List of Hadoop Books

Advanced Analytics with Spark: Patterns for Learning from Data at Scale by Sandy Ryza, Uri Laserson, Sean Owen and Josh Wills
Agile Data Science: Building Data Analytics Applications with Hadoop by Russell Jurney
Apache Drill: The SQL query engine for Hadoop and NoSQL by Ted Dunning, Ellen Friedman, Tomer Shiran and Jacques Nadeau
Apache Flume: Distributed Log Collection for Hadoop -Second Edition by Steve Hoffman
Apache Hadoop YARN: Moving beyond MapReduce and Batch Processing with Apache Hadoop 2 (Addison-Wesley Data & Analytics) by Arun Murthy, Vinod Vavilapalli, Douglas Eadline, Joseph Niemiec and Jeff Markham
Apache Oozie: The Workflow Scheduler for Hadoop by Mohammad Kamrul Islam and Aravind Srinivasan 
Apache Solr 3 Enterprise Search Server by David Smiley and Eric Pugh
Apache Solr 3.1 Cookbook by Rafal Kuć
Apache Solr High Performance by Surendra Mohan
Apache Spark in 24 Hours, Sams Teach Yourself by Jeffrey Aven
Apache Sqoop Cookbook: Unlocking Hadoop for Your Relational Database by Kathleen Ting and Jarek Jarcec Cecho
Architecting HBase Applications: A Guidebook for Successful Development and Design by Jean-Marc Spaggiari and Kevin O'Dell
Beginning Apache Pig: Big Data Processing Made Easy by Balaswamy Vaddeman
Big Data Analytics Beyond Hadoop: Real-Time Applications with Storm, Spark, and More Hadoop Alternatives (FT Press Analytics) by Vijay Srinivas Agneeswaran
Big Data Analytics with R and Hadoop by Vignesh Prajapati
Big Data: A Revolution That Will Transform How We Live, Work, and Think by Viktor Mayer-Schönberger and Kenneth Cukier
Big Data Essentials by Anil Maheshwari
Big Data For Beginners: Understanding SMART Big Data, Data Mining & Data Analytics For improved Business Performance, Life Decisions & More! (Data ... Computer Programming, Growth Hacking, ITIL)
by Vince Reynolds
Big Data For Dummies by Judith Hurwitz, Alan Nugent, Fern Halper and Marcia Kaufman
Big Data Forensics: Learning Hadoop Investigations by Joe Sremack
Big Data Governance: Modern Data Management Principles for Hadoop, NoSQL & Big Data Analytics
by Peter Ghavami PhD
Big Data Made Easy: A Working Guide to the Complete Hadoop Toolset by Michael Frampton
Big Data, MapReduce, Hadoop, and Spark with Python: Master Big Data Analytics and Data Wrangling with MapReduce Fundamentals using Hadoop, Spark, and Python by Lazy Programmer
Big Data: Principles and best practices of scalable realtime data systems by Nathan Marz and James Warren
Big Data SMACK: A Guide to Apache Spark, Mesos, Akka, Cassandra, and Kafka by Raul Estrada and Isaac Ruiz
CCA175: Hadoop and Spark Developer Exam Hands-on Practice Book and Preparation: CCA175 & CCP:DE575 by HadoopExam Learning Resources
Cassandra: The Definitive Guide: Distributed Data at Web Scale by Jeff Carpenter and Eben Hewitt Cloudera Certified Developer for Apache Hadoop Last Minute Guide: CCD-410 by LMG
Data Analytics Made Accessible: 2017 edition by Anil Maheshwari
Data Analytics with Hadoop: An Introduction for Data Scientists by Benjamin Bengfort and Jenny Kim Data Algorithms: Recipes for Scaling Up with Hadoop and Spark by Mahmoud Parsian
Data Munging with Hadoop (Addison-Wesley Data & Analytics Series) by Ofer Mendelevitch and Casey Stella
Data Science and Big Data Analytics: Discovering, Analyzing, Visualizing and Presenting Data by EMC Education Services
Data Science for Business: What You Need to Know about Data Mining and Data-Analytic Thinking by Foster Provost and Tom Fawcett
Data Science from Scratch: First Principles with Python by Joel Grus
Deep Learning: A Practitioner's Approach by Josh Patterson and Adam Gibson
Deep Learning with Hadoop by Dipayan Dev
Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable Systems by Martin Kleppmann
The Enterprise Big Data Lake: Delivering on the Promise of Hadoop and Data Science in the Enterprise by Alex Gorelik
Enterprise Data Design Patterns: Best Practices for Putting Hadoop to Work by Douglas Moore and Jeffrey Breen
Enterprise Lucene and Solr by Lajos Moczar
Expert Hadoop Administration: Managing, Tuning, and Securing Spark, YARN, and HDFS (Addison-Wesley Data & Analytics Series) by Sam R. Alapati
Field Guide to Hadoop: An Introduction to Hadoop, Its Ecosystem, and Aligned Technologies
by Kevin Sitto and Marshall Presser
Ecosystem (Addison-Wesley Data & Analytics) by Douglas Eadline
Fundamentals of Deep Learning: Designing Next-Generation Machine Intelligence Algorithms
by Nikhil Buduma (Author) and Nicholas Locascio (Contributor)
Getting Started with Impala: Interactive SQL for Apache Hadoop by John Russell
Hadoop 2.x Administration Cookbook by Gurmukh Singh
Hadoop 2 Essentials: An End-to-End Approach by Dr. Henry H Liu
Hadoop 2 Quick-Start Guide: Learn the Essentials of Big Data Computing in the Apache Hadoop 2
HADOOP & YARN INTERVIEW QUESTION AND ANSWER: LEARN BIG DATA HADOOP & YARN IN QA - ALL INTERVIEW QUESTIONS COVERED by GICGAC ACADEMY
Hadoop and Big Data: Introduction to Basics of Big data analytics by Dr. Rajesh Pasupuleti
Hadoop Application Architectures: Designing Real-World Big Data Applications by Mark Grover, Ted Malaska, Jonathan Seidman and Gwen Shapira
Hadoop Backup and Recovery solutions by Gaurav Barot, Chintan Mehta and Amij Patel
Hadoop Beginner's Guide by Garry Turkington
Hadoop Big Data Guide for beginners by Parveen
Hadoop Big Data Interview Questions (Illustrated): Shyam Mallesh by Shyam Mallesh
Hadoop Blueprints by Anurag Shrivastava and Tanmay Deshpande
Hadoop Beginner's Guide by Garry Turkington
Hadoop Cluster Deployment by Danil Zburivsky
Hadoop: The Definitive Guide: Storage and Analysis at Internet Scale by Tom White
Hadoop: Data Processing and Modelling by Garry Turkington, Tanmay Deshpande and Sandeep Karanth
Hadoop: The Engine That Drives Big Data (New Street Executive Summaries) by Lars Nielsen
Hadoop Essentials: A Quantitative Approach by Henry H. Liu
Hadoop Essentials - Tackling the Challenges of Big Data with Hadoop (Community Experience Distilled)
by Shiva Achari
Hadoop For Dummies by Dirk deRoos
Hadoop for Finance Essentials by Rajiv Tiwari
Hadoop in 24 Hours, Sams Teach Yourself by Jeffrey Aven
Hadoop in Action by Chuck Lam
Hadoop Interview Guide by Monika Singla, Sneha Poddar and Shivansh Kumar
Hadoop in the Enterprise: Architecture: A Guide to Successful Integration by Jan Kunigk, Lars George, Paul Wilkinson and Ian Buss
Hadoop in Practice: Includes 104 Techniques by Alex Holmes
Hadoop MapReduce v2 Cookbook Second Edition by Thilina Gunarathne
Hadoop Operations: A Guide for Developers and Administrators by Eric Sammer
Hadoop Operations and Cluster Management Cookbook by Shumin Guo
Hadoop Real World Solutions Cookbook - Second Edition by Tanmay Deshpande
HADOOP Security Best Practices by Jason Burkett
Hadoop Security: Protecting Your Big Data Platform by Ben Spivey and Joey Echeverria
Hadoop Succinctly by Elton Stoneman
HBase: The Definitive Guide: Random Access to Your Planet-Size Data by Lars George
High Performance Spark: Best Practices for Scaling and Optimizing Apache Spark by Holden Karau and Rachel Warren
Integrating Hadoop by William McKnight
Introducing Data Science: Big Data, Machine Learning, and more, using Python tools
by Davy Cielen, Arno Meysman and Mohamed Ali
Kick Start: Hadoop: Learn Hadoop in Hours! by Mario Meir-Huber
Leaders and Innovators: How Data-Driven Organizations Are Winning with Analytics (Wiley and SAS Business Series) by Tho H. Nguyen, Bill Franks and James Taylor
Learning Hadoop 2 by Garry Turkington and Gabriele Modena  
Learn Hadoop in 1 Day: Master Big Data with this complete Guide by Krishna Rungta
Learning Spark: Lightning-Fast Big Data Analysis by Holden Karau, Andy Konwinski, Patrick Wendell and Matei Zaharia
MapReduce Design Patterns: Building Effective Algorithms and Analytics for Hadoop and Other Systems by Donald Miner and Adam Shook
Mastering Hadoop by Sandeep Karanth
Moving Hadoop to the Cloud: Harnessing Cloud Features and Flexibility for Hadoop Clusters by Bill Havanki
Network Storage: Tools and Technologies for Storing Your Company's Data by James O'Reilly
NoSQL and SQL Data Modeling: Bringing Together Data, Semantics, and Software by Ted Hills
Practical Data Science with Hadoop and Spark: Designing and Building Effective Analytics at Scale (Addison-Wesley Data & Analytics) by Ofer Mendelevitch, Casey Stella and Douglas Eadline
Practical Hadoop Ecosystem: A Definitive Guide to Hadoop-Related Frameworks and Tools by Deepak Vohra
Practical Hadoop Migration: How to Integrate Your RDBMS with the Hadoop Ecosystem and Re-Architect Relational Applications to NoSQL by Bhushan Lakhe
Practical Hive: A Guide to Hadoop's Data Warehouse System by Scott Shaw, Andreas François Vermeulen, Ankur Gupta and David Kjerrumgaard
Practical Hadoop Security by Bhushan Lakhe
Practical Machine Learning with H2O: Powerful, Scalable Techniques for Deep Learning and AI by Darren Cook
Pro Apache Hadoop by Jason Venner, Sameer Wadkar and Madhu Siddalingaiah
Professional Hadoop by Benoy Antony, Konstantin Boudnik, Cheryl Adams, Branky Shao, Cazen Lee and Kai Sasaki
Pro Hadoop (Expert's Voice in Open Source) by Jason Venner
Pro Hadoop Data Analytics: Designing and Building Big Data Systems using the Hadoop Ecosystem by Kerry Koitzsch
Programming Hive: Data Warehouse and Query Language for Hadoop by Edward Capriolo, Dean Wampler and Jason Rutherglen
Programming Pig: Dataflow Scripting with Hadoop by Alan Gates, Daniel Dai
Pro Microsoft HDInsight: Hadoop on Windows by Debarchan Sarkar
Python for Data Analysis: Data Wrangling with Pandas, NumPy, and IPython by Wes McKinney
Python Machine Learning by Sebastian Raschka
Real-World Hadoop by Ted Dunning and Ellen Friedman
SAS and Hadoop Technology: Overview by SAS Institute
Scaling Big Data with Hadoop and Solr - Second Edition by Hrishikesh Vijay Karambelkar
Securing Hadoop by Sudheesh Narayanan
Spark in Action by Petar Zecevic and Marko Bonaci
Top 50 Apache Hadoop Interview Questions and Answers by Knowledge Powerhouse
Using R to Unlock the Value of Big Data: Big Data Analytics with Oracle R Enterprise and Oracle R Connector for Hadoop by Mark Hornick and Tom Plunkett
Virtualizing Hadoop: How to Install, Deploy, and Optimize Hadoop in a Virtualized Architecture (VMware Press Technology) by George Trujillo, Charles Kim, Steve Jones, Rommel Garcia and Justin Murray

For a list of Apache Spark books, see this posting.

What Is the Difference between the Internal IP Address of a Server and the External IP Address?

Problem scenario
You want to find the external and internal IP addresses of your servers.  You are not sure which is which.  

Solution
The internal IP address is found by issuing one of these commands on Linux:

ip addr show
ifconfig

For Windows, open a command prompt and run this command:

ipconfig

For Linux servers the external IP address is found by running this command (assuming your server has access to the internet):

curl http://icanhazip.com

For Windows open a web browser and go to http://ipchicken.com

If you are using AWS and your server does not have access to the internet, go to the EC2 dashboard.  The IP address shown there will be the external IP address.

How Do You Install and Configure the NRPE Agent (to Have Nagios Monitor) on a RHEL Server in AWS?

Problem scenario
You have Nagios core installed on a server in AWS.  You want a new AWS RedHat Enterprise Linux server to have the NRPE agent.  You want thorough directions for this process to potentially automate it.  How do you install and configure the NRPE agent on a RHEL server and configure a Nagios core server to monitor it?

Solution
Prerequisites

  1. You need to know the internal IP address of 1) the Nagios core server; for RHEL 7.x, use ifconfig. 2) the server that will receive the NRPE agent. 
  2. The AWS Security Group must have a certain rule configured for Nagios to perform ping tests.  We suggest you go to Security Groups.  Go to Inbound Rules and click "Edit."  Click "Add Rule."  For type use "ALL ICMP - IPv4." For "Source" keep it at Custom.  For the blank field use this (where x.x.x.x is the internal IP address of the Nagios core server):  x.x.x.x/32

Method
#1  (Done from Nagios client; the server destined to have the NRPE agent.)   Below is the content of a script.  You must change the x.x.x.x to the IP address of the Nagios core server.  Then run the script below on the server that you want to have the NRPE agent installed and configured on. (To run it you might run a command like this sudo bash /tmp/install.sh.)

# Script written by continualintegration.com
#!/bin/bash

yum -y update

yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

yum -y install nrpe nagios-plugins-users nagios-plugins-load nagios-plugins-swap nagios-plugins-disk nagios-plugins-procs

cd /etc/nagios
cp nrpe.cfg nrpe.cfg.bak

cat nrpe.cfg.bak | sed -e 's/allowed_hosts=127.0.0.1,::1/allowed_hosts=x.x.x.x/g' > nrpe.cfg
# The old way of doing the above command required perl. Here it is:

# perl -i -pe 's/.*/allowed_hosts=x.x.x.x/ if $.==81' nrpe.cfg
​# /etc/nagios/nrpe.cfg has an allowed_hosts stanza
# This setting can support multiple Nagios core servers.  The IP addresses should be separated by a comma if you have more than one.

systemctl restart nrpe
systemctl enable nrpe

# Last line of script

#2 (Done from Nagios core server)  vi /usr/local/nagios/etc/servers/contint.cfg
The content below is what you'll need for this contint.cfg file.  You just have to change three parts:

i) Replace y.y.y.y with the IP address printed at the end of the script of #3 (the internal IP address of the RHEL server to get the NRPE agent).

ii) Replace the "contint" in every spot below with the hostname found in step #3.

# RedHat Linux Host configuration file.  (Largely taken from https://www.howtoforge.com/tutorial/ubuntu-nagios/)
# You can create other .cfg files with unique names in the same directory /usr/local/nagios/etc/servers/

define host {
        use                          linux-server
        host_name                    contint
        alias                        contint
        address                      y.y.y.y
        register                     1
}

define service {
      host_name                       contint
      service_description             PING
      check_command                   check_ping!100.0,20%!500.0,60%
      max_check_attempts              2
      check_interval                  2
      retry_interval                  2
      check_period                    24x7
      check_freshness                 1
      contact_groups                  admins
      notification_interval           2
      notification_period             24x7
      notifications_enabled           1
      register                        1
}

define service {
      host_name                       contint
      service_description             Check Users
      check_command           check_local_users!20!50
      max_check_attempts              2
      check_interval                  2
      retry_interval                  2
      check_period                    24x7
      check_freshness                 1
      contact_groups                  admins
      notification_interval           2
      notification_period             24x7
      notifications_enabled           1
      register                        1
}

define service {
      host_name                       contint
      service_description             Local Disk
      check_command                   check_local_disk!20%!10%!/
      max_check_attempts              2
      check_interval                  2
      retry_interval                  2
      check_period                    24x7
      check_freshness                 1
      contact_groups                  admins
      notification_interval           2
      notification_period             24x7
      notifications_enabled           1
      register                        1
}

define service {
      host_name                       contint
      service_description             Check SSH
      check_command                   check_ssh
      max_check_attempts              2
      check_interval                  2
      retry_interval                  2
      check_period                    24x7
      check_freshness                 1
      contact_groups                  admins
      notification_interval           2
      notification_period             24x7
      notifications_enabled           1
      register                        1
}

define service {
      host_name                       contint
      service_description             Total Process
      check_command                   check_local_procs!250!400!RSZDT
      max_check_attempts              2
      check_interval                  2
      retry_interval                  2
      check_period                    24x7
      check_freshness                 1
      contact_groups                  admins
      notification_interval           2
      notification_period             24x7
      notifications_enabled           1
      register                        1
}

#3 (Done from Nagios core server) 
Run this command:
sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

If an error is found in the output, correct the problem.  If zero errors are found, proceed to step #4.

#4  (Done from Nagios client; the server destined to have the NRPE agent.) 
Run these commands:

sudo systemctl restart nrpe
sudo systemctl enable nrpe

#5  (Done from Nagios core server) 
Run these commands:

sudo systemctl restart httpd
sudo systemctl restart nagios