{"id":11508,"date":"2019-03-14T09:49:44","date_gmt":"2019-03-14T09:49:44","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=11508"},"modified":"2019-03-14T09:50:58","modified_gmt":"2019-03-14T09:50:58","slug":"how-to-install-nagios-4-3-4-on-rhel-centos-and-fedora","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/14\/how-to-install-nagios-4-3-4-on-rhel-centos-and-fedora\/","title":{"rendered":"How to Install Nagios 4.3.4 on RHEL, CentOS and Fedora"},"content":{"rendered":"<p><strong>Nagios<\/strong>\u00a0is an awesome\u00a0<strong>Open Source<\/strong>\u00a0monitoring tool, its provides you more comprehensive monitoring environment to always keep an eye on your all\u00a0<strong>machines<\/strong>\u00a0\/\u00a0<strong>networks<\/strong>\u00a0whether you are in a your data center or just your small labs.<\/p>\n<p>With\u00a0<strong>Nagios<\/strong>, you can monitor your remote hosts and their services remotely on a single window. It shows\u00a0<strong>warnings<\/strong>\u00a0and\u00a0<strong>indicates<\/strong>\u00a0if something goes wrong in your\u00a0<strong>servers<\/strong>\u00a0which eventually helps us to detect some problems before they occur. It helps us to reduce\u00a0<strong>downtime<\/strong>\u00a0and\u00a0<strong>business losses<\/strong>.<\/p>\n<p>Recently,\u00a0<strong>Nagios<\/strong>\u00a0released its latest versions\u00a0<strong>Nagios Core 4.3.4<\/strong>\u00a0and its latest stable release of\u00a0<strong>Nagios plugins 2.2.1<\/strong>\u00a0on April 19, 2017.<\/p>\n<p>This article is intended to guide you with easy instructions on how to install latest\u00a0<strong>Nagios Core 4.3.4<\/strong>\u00a0from source (tarball) on\u00a0<strong>RHEL 7.x\/6.x\/5.x<\/strong>,\u00a0<strong>CentOS 7.x\/6.x\/5.x<\/strong>\u00a0and\u00a0<strong>Fedora 26-20<\/strong>\u00a0distributions.<\/p>\n<p>Within\u00a0<strong>30 minutes<\/strong>\u00a0you will be monitoring your local machine, no any advanced installation procedure only basic installation that will work\u00a0<strong>100%<\/strong>\u00a0on most of the today\u2019s Linux servers.<\/p>\n<p><strong>Please Note<\/strong>: The installation instructions were shown in here are written based on\u00a0<strong>CentOS 7.2<\/strong>\u00a0Linux distribution.<\/p>\n<h3>Installing Nagios 4.3.4 and Nagios Plugin 2.2.1<\/h3>\n<p>If you follow these instructions correctly, you will end up with following information.<\/p>\n<ol>\n<li>Nagios and its plugins will be installed under\u00a0<strong>\/usr\/local\/nagios<\/strong>\u00a0directory.<\/li>\n<li>Nagios will be configured to monitor few services of your local machine (<strong>Disk Usage<\/strong>,\u00a0<strong>CPU Load<\/strong>,\u00a0<strong>Current Users<\/strong>,\u00a0<strong>Total Processes<\/strong>, etc.)<\/li>\n<li>Nagios web interface will be available at\u00a0<strong>http:\/\/localhost\/nagios<\/strong><\/li>\n<\/ol>\n<h4>Step 1: Install Required Dependencies<\/h4>\n<p>We need to install\u00a0<strong>Apache<\/strong>,\u00a0<strong>PHP<\/strong>\u00a0and some libraries like\u00a0<strong>gcc<\/strong>,\u00a0<strong>glibc<\/strong>,\u00a0<strong>glibc-common<\/strong>\u00a0and\u00a0<strong>GD<\/strong>\u00a0libraries and its development libraries before installing\u00a0<strong>Nagios 4.3.4<\/strong>\u00a0with source. And to do so, we can use\u00a0<strong>yum<\/strong>\u00a0default package installer.<\/p>\n<pre>[root@tecmint]# <strong>yum install -y httpd httpd-tools php gcc glibc glibc-common gd gd-devel make net-snmp<\/strong>\r\n\r\n-------------- <strong>On Fedora 22+ Onwards<\/strong> -------------- \r\n[root@tecmint]# <strong>dnf install -y httpd httpd-tools php gcc glibc glibc-common gd gd-devel make net-snmp<\/strong>\r\n<\/pre>\n<h4>Step 2: Create Nagios User and Group<\/h4>\n<p>Create a new\u00a0<strong>nagios<\/strong>\u00a0user and\u00a0<strong>nagcmd<\/strong>\u00a0group account and set a\u00a0<strong>password<\/strong>.<\/p>\n<pre>[root@tecmint]# useradd nagios\r\n[root@tecmint]# groupadd nagcmd<\/pre>\n<p>Next, add both the\u00a0<strong>nagios<\/strong>\u00a0user and the\u00a0<strong>apache<\/strong>\u00a0user to the\u00a0<strong>nagcmd<\/strong>\u00a0group.<\/p>\n<pre>[root@tecmint]# usermod -G nagcmd nagios\r\n[root@tecmint]# usermod -G nagcmd apache<\/pre>\n<h4>Step 3: Download Nagios Core 4.3.4 and Nagios Plugin 2.2.1<\/h4>\n<p>Create a directory for your\u00a0<strong>Nagios<\/strong>\u00a0installation and all its future downloads.<\/p>\n<pre>[root@tecmint]# mkdir \/root\/nagios\r\n[root@tecmint]# cd \/root\/nagios<\/pre>\n<p>Now download latest\u00a0<strong>Nagios Core 4.3.4<\/strong>\u00a0and\u00a0<strong>Nagios plugins 2.2.1<\/strong>\u00a0packages with\u00a0<a title=\"Linux wget Command\" href=\"https:\/\/www.tecmint.com\/10-wget-command-examples-in-linux\/\" target=\"_blank\" rel=\"noopener\">wget command<\/a>.<\/p>\n<pre>[root@tecmint nagios~]# wget https:\/\/assets.nagios.com\/downloads\/nagioscore\/releases\/nagios-4.3.4.tar.gz\r\n[root@tecmint nagios~]# wget https:\/\/nagios-plugins.org\/download\/nagios-plugins-2.2.1.tar.gz\r\n<\/pre>\n<h4>Step 4: Extract Nagios Core and its Plugins<\/h4>\n<p>We need to extract downloaded package with\u00a0<a title=\"Linux tar command\" href=\"https:\/\/www.tecmint.com\/18-tar-command-examples-in-linux\/\" target=\"_blank\" rel=\"noopener\">tar command<\/a>\u00a0as follows.<\/p>\n<pre>[root@tecmint nagios~]# tar -xvf nagios-4.3.4.tar.gz\r\n[root@tecmint nagios~]# tar -xvf nagios-plugins-2.2.1.tar.gz<\/pre>\n<p>When you extract these tarballs with tar command, two new folders will appear in that directory.<\/p>\n<pre>[root@tecmint nagios ~]# ls -l\r\ntotal 13520\r\ndrwxrwxr-x 18 root root     4096 Aug 24 17:43 <strong>nagios-4.3.4<\/strong>\r\n-rw-r--r--  1 root root 11101966 Aug 24 17:48 nagios-4.3.4.tar.gz\r\ndrwxr-xr-x 15 root root     4096 Apr 19 12:04 <strong>nagios-plugins-2.2.1<\/strong>\r\n-rw-r--r--  1 root root  2728818 Apr 19 12:04 nagios-plugins-2.2.1.tar.gz\r\n<\/pre>\n<h4>Configure Nagios Core<\/h4>\n<p>Now, first we will configure\u00a0<strong>Nagios Core<\/strong>\u00a0and to do so we need to go to\u00a0<strong>Nagios<\/strong>\u00a0directory and run configure file and if everything goes fine, it will show the output in the end as sample output. Please see below.<\/p>\n<pre>[root@tecmint nagios~]# cd nagios-4.3.4\/\r\n[root@tecmint nagios-4.3.4 ]# .\/configure --with-command-group=nagcmd<\/pre>\n<h5>Sample output:<\/h5>\n<pre>Creating sample config files in sample-config\/ ...\r\n\r\n\r\n*** Configuration summary for nagios 4.3.4 2017-08-24 ***:\r\n\r\n General Options:\r\n -------------------------\r\n        Nagios executable:  nagios\r\n        Nagios user\/group:  nagios,nagios\r\n       Command user\/group:  nagios,nagcmd\r\n             Event Broker:  yes\r\n        Install ${prefix}:  \/usr\/local\/nagios\r\n    Install ${includedir}:  \/usr\/local\/nagios\/include\/nagios\r\n                Lock file:  \/run\/nagios.lock\r\n   Check result directory:  ${prefix}\/var\/spool\/checkresults\r\n           Init directory:  \/etc\/rc.d\/init.d\r\n  Apache conf.d directory:  \/etc\/httpd\/conf.d\r\n             Mail program:  \/usr\/bin\/mail\r\n                  Host OS:  linux-gnu\r\n          IOBroker Method:  epoll\r\n\r\n Web Interface Options:\r\n ------------------------\r\n                 HTML URL:  http:\/\/localhost\/nagios\/\r\n                  CGI URL:  http:\/\/localhost\/nagios\/cgi-bin\/\r\n Traceroute (used by WAP):  \/usr\/bin\/traceroute\r\n\r\n\r\nReview the options above for accuracy.  If they look okay,\r\ntype 'make all' to compile the main program and CGIs.\r\n<\/pre>\n<p>After configuring, we need to\u00a0<strong>compile<\/strong>\u00a0and\u00a0<strong>install<\/strong>\u00a0all the binaries with\u00a0<strong>make all<\/strong>\u00a0and\u00a0<strong>make install<\/strong>\u00a0command, it will install all the needed libraries in your machine and we can proceed further.<\/p>\n<pre>[root@tecmint nagios-4.3.4 ]# make all\r\n[root@tecmint nagios-4.3.4 ]# make install<\/pre>\n<h5>Sample output:<\/h5>\n<pre>*** Exfoliation theme installed ***\r\nNOTE: Use 'make install-classicui' to revert to classic Nagios theme\r\n\r\nmake[1]: Leaving directory `\/root\/nagios\/nagios-4.3.4'\r\nmake install-basic\r\nmake[1]: Entering directory `\/root\/nagios\/nagios-4.3.4'\r\n\/usr\/bin\/install -c -m 775 -o nagios -g nagios -d \/usr\/local\/nagios\/libexec\r\n\/usr\/bin\/install -c -m 775 -o nagios -g nagios -d \/usr\/local\/nagios\/var\r\n\/usr\/bin\/install -c -m 775 -o nagios -g nagios -d \/usr\/local\/nagios\/var\/archives\r\n\/usr\/bin\/install -c -m 775 -o nagios -g nagcmd -d \/usr\/local\/nagios\/var\/spool\/checkresults\r\nchmod g+s \/usr\/local\/nagios\/var\/spool\/checkresults\r\n\r\n*** Main program, CGIs and HTML files installed ***\r\n\r\nYou can continue with installing Nagios as follows (type 'make'\r\nwithout any arguments for a list of all possible options):\r\n\r\n  make install-init\r\n     - This installs the init script in \/etc\/rc.d\/init.d\r\n\r\n  make install-commandmode\r\n     - This installs and configures permissions on the\r\n       directory for holding the external command file\r\n\r\n  make install-config\r\n     - This installs sample config files in \/usr\/local\/nagios\/etc\r\n\r\nmake[1]: Leaving directory `\/root\/nagios\/nagios-4.3.4'\r\n<\/pre>\n<p>Following command will install the\u00a0<strong>init scripts<\/strong>\u00a0for Nagios.<\/p>\n<pre>[root@tecmint nagios-4.3.4 ]# make install-init<\/pre>\n<p>To make nagios work from command line we need to install\u00a0<strong>command-mode<\/strong>.<\/p>\n<pre>[root@tecmint nagios-4.3.4 ]# make install-commandmode<\/pre>\n<p>Next, install sample nagios files, please run following command.<\/p>\n<pre>[root@tecmint nagios-4.3.4 ]# make install-config<\/pre>\n<h5>Sample output:<\/h5>\n<pre>\/usr\/bin\/install -c -m 775 -o nagios -g nagios -d \/usr\/local\/nagios\/etc\r\n\/usr\/bin\/install -c -m 775 -o nagios -g nagios -d \/usr\/local\/nagios\/etc\/objects\r\n\/usr\/bin\/install -c -b -m 664 -o nagios -g nagios sample-config\/nagios.cfg \/usr\/local\/nagios\/etc\/nagios.cfg\r\n\/usr\/bin\/install -c -b -m 664 -o nagios -g nagios sample-config\/cgi.cfg \/usr\/local\/nagios\/etc\/cgi.cfg\r\n\/usr\/bin\/install -c -b -m 660 -o nagios -g nagios sample-config\/resource.cfg \/usr\/local\/nagios\/etc\/resource.cfg\r\n\/usr\/bin\/install -c -b -m 664 -o nagios -g nagios sample-config\/template-object\/templates.cfg \/usr\/local\/nagios\/etc\/objects\/templates.cfg\r\n\/usr\/bin\/install -c -b -m 664 -o nagios -g nagios sample-config\/template-object\/commands.cfg \/usr\/local\/nagios\/etc\/objects\/commands.cfg\r\n\/usr\/bin\/install -c -b -m 664 -o nagios -g nagios sample-config\/template-object\/contacts.cfg \/usr\/local\/nagios\/etc\/objects\/contacts.cfg\r\n\/usr\/bin\/install -c -b -m 664 -o nagios -g nagios sample-config\/template-object\/timeperiods.cfg \/usr\/local\/nagios\/etc\/objects\/timeperiods.cfg\r\n\/usr\/bin\/install -c -b -m 664 -o nagios -g nagios sample-config\/template-object\/localhost.cfg \/usr\/local\/nagios\/etc\/objects\/localhost.cfg\r\n\/usr\/bin\/install -c -b -m 664 -o nagios -g nagios sample-config\/template-object\/windows.cfg \/usr\/local\/nagios\/etc\/objects\/windows.cfg\r\n\/usr\/bin\/install -c -b -m 664 -o nagios -g nagios sample-config\/template-object\/printer.cfg \/usr\/local\/nagios\/etc\/objects\/printer.cfg\r\n\/usr\/bin\/install -c -b -m 664 -o nagios -g nagios sample-config\/template-object\/switch.cfg \/usr\/local\/nagios\/etc\/objects\/switch.cfg\r\n\r\n*** Config files installed ***\r\n\r\nRemember, these are *SAMPLE* config files.  You'll need to read\r\nthe documentation for more information on how to actually define\r\nservices, hosts, etc. to fit your particular needs.\r\n<\/pre>\n<h4>Step 5: Customizing Nagios Configuration<\/h4>\n<p>Open the \u201c<strong>contacts.cfg<\/strong>\u201d file with your choice of editor and set the\u00a0<strong>email address<\/strong>\u00a0associated with the nagiosadmin contact definition to receiving email alerts.<\/p>\n<pre># vi \/usr\/local\/nagios\/etc\/objects\/contacts.cfg<\/pre>\n<h5>Sample Output<\/h5>\n<pre>###############################################################################\r\n###############################################################################\r\n#\r\n# CONTACTS\r\n#\r\n###############################################################################\r\n###############################################################################\r\n\r\n# Just one contact defined by default - the Nagios admin (that's you)\r\n# This contact definition inherits a lot of default values from the 'generic-contact'\r\n# template which is defined elsewhere.\r\n\r\ndefine contact{\r\n       contact_name                    nagiosadmin             ; Short name of user\r\n       use                             generic-contact         ; Inherit default values from generic-contact template (defined above)\r\n       alias                           Nagios Admin            ; Full name of user\r\n\r\n       email                           <strong>admin@tecmint.com<\/strong>     ; *** CHANGE THIS TO YOUR EMAIL ADDRESS ****\r\n       }<\/pre>\n<h4>Step 6: Install and Configure Web Interface for Nagios<\/h4>\n<p>We are done with all configuration in the backend, now we will configure Web Interface For Nagios with following command. The below command will Configure Web interface for Nagios and a web admin user will be created \u201c<strong>nagiosadmin<\/strong>\u201d.<\/p>\n<pre>[root@tecmint nagios-4.3.4 ]# make install-webconf<\/pre>\n<p>In this step, we will be creating a password for \u201c<strong>nagiosadmin<\/strong>\u201d. After executing this command, please provide a\u00a0<strong>password twice<\/strong>\u00a0and keep it remember because this password will be used when you login in the Nagios Web interface.<\/p>\n<pre>[root@tecmint nagios-4.3.4]# htpasswd -s -c \/usr\/local\/nagios\/etc\/htpasswd.users nagiosadmin\r\nNew password:\r\nRe-type new password:\r\nAdding password for user nagiosadmin<\/pre>\n<p>Restart\u00a0<strong>Apache<\/strong>\u00a0to make the new settings take effect.<\/p>\n<pre>[root@tecmint ]# service httpd start               [<strong>On RHEL\/CentOS 6\/5 and Fedora<\/strong>]\r\n[root@tecmint ]# systemctl start httpd.service     [<strong>On RHEL\/CentOS 7 and Fedora 19 Onwards<\/strong>]\r\n<\/pre>\n<h4>Step 7: Compile and Install Nagios Plugin<\/h4>\n<p>We have downloaded nagios plugins in\u00a0<strong>\/root\/nagios<\/strong>, Go there and configure and install it as directed below.<\/p>\n<pre>[root@tecmint nagios]# cd \/root\/nagios\r\n[root@tecmint nagios]# cd nagios-plugins-2.2.1\/\r\n[root@tecmint nagios]# .\/configure --with-nagios-user=nagios --with-nagios-group=nagios\r\n[root@tecmint nagios]# make\r\n[root@tecmint nagios]# make install<\/pre>\n<h4>Step 8: Verify Nagios Configuration Files<\/h4>\n<p>Now we are all done with\u00a0<strong>Nagios configuration<\/strong>\u00a0and its time to\u00a0<strong>verify<\/strong>\u00a0it and to do so please insert following command. If everything goes smooth it will show up similar to below output.<\/p>\n<pre>[root@tecmint nagios]# \/usr\/local\/nagios\/bin\/nagios -v \/usr\/local\/nagios\/etc\/nagios.cfg<\/pre>\n<h5>Sample Output<\/h5>\n<pre>Nagios Core 4.3.4\r\nCopyright (c) 2009-present Nagios Core Development Team and Community Contributors\r\nCopyright (c) 1999-2009 Ethan Galstad\r\nLast Modified: 2017-08-24\r\nLicense: GPL\r\n\r\nWebsite: https:\/\/www.nagios.org\r\nReading configuration data...\r\n   Read main config file okay...\r\n   Read object config files okay...\r\n\r\nRunning pre-flight check on configuration data...\r\n\r\nChecking objects...\r\n\tChecked 8 services.\r\n\tChecked 1 hosts.\r\n\tChecked 1 host groups.\r\n\tChecked 0 service groups.\r\n\tChecked 1 contacts.\r\n\tChecked 1 contact groups.\r\n\tChecked 24 commands.\r\n\tChecked 5 time periods.\r\n\tChecked 0 host escalations.\r\n\tChecked 0 service escalations.\r\nChecking for circular paths...\r\n\tChecked 1 hosts\r\n\tChecked 0 service dependencies\r\n\tChecked 0 host dependencies\r\n\tChecked 5 timeperiods\r\nChecking global event handlers...\r\nChecking obsessive compulsive processor commands...\r\nChecking misc settings...\r\n\r\nTotal Warnings: 0\r\nTotal Errors:   0\r\n\r\nThings look okay - No serious problems were detected during the pre-flight check\r\n<\/pre>\n<h4>Step 9: Add Nagios Services to System Startup<\/h4>\n<p>To make Nagios work across reboots, we need to add\u00a0<strong>nagios<\/strong>\u00a0and\u00a0<strong>httpd<\/strong>\u00a0with\u00a0<strong>chkconfig<\/strong>\u00a0and\u00a0<strong>systemctl<\/strong>command.<\/p>\n<h5>On RHEL\/CentOS 6\/5 and Fedora<\/h5>\n<pre>[root@tecmint ]# chkconfig --add nagios\r\n[root@tecmint ]# chkconfig --level 35 nagios on\r\n[root@tecmint ]# chkconfig --add httpd\r\n[root@tecmint ]# chkconfig --level 35 httpd on<\/pre>\n<h5>On RHEL\/CentOS 7 and Fedora 19-26<\/h5>\n<pre>[root@tecmint ]# systemctl enable nagios\r\n[root@tecmint ]# systemctl enable httpd\r\n<\/pre>\n<p>Restart\u00a0<strong>Nagios<\/strong>\u00a0to make the new settings take effect.<\/p>\n<pre>[root@tecmint ]# service nagios start              [<strong>On RHEL\/CentOS 6\/5 and Fedora<\/strong>]\r\n[root@tecmint ]# systemctl start nagios.service    [<strong>On RHEL\/CentOS 7 and Fedora 19-24<\/strong>]\r\n<\/pre>\n<h4>Step 10: Login to the Nagios Web Interface<\/h4>\n<p>Your nagios is ready to work, please open it in your browser with \u201c<strong>http:\/\/Your-server-IP-address\/nagios<\/strong>\u201d or \u201c<strong>http:\/\/FQDN\/nagios<\/strong>\u201d and Provide the username \u201c<strong>nagiosadmin<\/strong>\u201d and\u00a0<strong>password<\/strong>.<\/p>\n<h5>Nagios Web Dashboard<\/h5>\n<div id=\"attachment_27644\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/10\/Nagios-Core.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27644\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/10\/Nagios-Core.png\" sizes=\"auto, (max-width: 1136px) 100vw, 1136px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/10\/Nagios-Core.png 1136w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/10\/Nagios-Core-768x439.png 768w\" alt=\"Nagios Core Running on CentOS 7.2\" width=\"1136\" height=\"649\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Nagios Core Running on CentOS 7.2<\/p>\n<\/div>\n<h5>Host View<\/h5>\n<div id=\"attachment_22117\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/10\/Nagios-Host-View.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-22117\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/10\/Nagios-Host-View.png\" sizes=\"auto, (max-width: 856px) 100vw, 856px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/10\/Nagios-Host-View.png 856w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/10\/Nagios-Host-View-768x408.png 768w\" alt=\"Nagios Host View\" width=\"856\" height=\"455\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Nagios Host View<\/p>\n<\/div>\n<h5>Nagios Overview<\/h5>\n<div id=\"attachment_22118\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/10\/Nagios-Monitoring-Overview.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-22118\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/10\/Nagios-Monitoring-Overview.png\" sizes=\"auto, (max-width: 935px) 100vw, 935px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/10\/Nagios-Monitoring-Overview.png 935w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/10\/Nagios-Monitoring-Overview-768x656.png 768w\" alt=\"Nagios Monitoring Overview\" width=\"935\" height=\"799\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Nagios Monitoring Overview<\/p>\n<\/div>\n<h5>Service View<\/h5>\n<div id=\"attachment_22119\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/10\/Nagios-Host-Services-Monitoring.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-22119\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/10\/Nagios-Host-Services-Monitoring.png\" sizes=\"auto, (max-width: 936px) 100vw, 936px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/10\/Nagios-Host-Services-Monitoring.png 936w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/10\/Nagios-Host-Services-Monitoring-768x657.png 768w\" alt=\"Nagios Hos Services Monitoring\" width=\"936\" height=\"801\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Nagios Hos Services Monitoring<\/p>\n<\/div>\n<h5>Process View<\/h5>\n<div id=\"attachment_22120\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/10\/Nagios-Core-Process-Information.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-22120\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/10\/Nagios-Core-Process-Information.png\" sizes=\"auto, (max-width: 935px) 100vw, 935px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/10\/Nagios-Core-Process-Information.png 935w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/10\/Nagios-Core-Process-Information-768x656.png 768w\" alt=\"Nagios Core Process Information\" width=\"935\" height=\"799\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Nagios Core Process Information<\/p>\n<\/div>\n<p>Congratulations! You\u2019ve successfully installed and configured\u00a0<strong>Nagios<\/strong>\u00a0and its\u00a0<strong>Plugins<\/strong>. You\u2019ve just begin your journey into monitoring.<\/p>\n<h3>Upgrade Nagios 3.x to Nagios 4.3.4<\/h3>\n<p>If you are already running an\u00a0<strong>older version of Nagios<\/strong>, you can\u00a0<strong>upgrade<\/strong>\u00a0it anytime. To do so, you just need to download the latest tar archive of it and configure it as shown below.<\/p>\n<pre>[root@tecmint ]# service nagios stop\r\n[root@tecmint ]# wget https:\/\/assets.nagios.com\/downloads\/nagioscore\/releases\/nagios-4.3.4.tar.gz\r\n[root@tecmint ]# tar -zxvf nagios-4.3.4.tar.gz\r\n[root@tecmint ]# cd nagios-4.3.4\r\n[root@tecmint ]# .\/configure\r\n[root@tecmint ]# make all\r\n[root@tecmint ]# make install\r\n[root@tecmint ]# service nagios start<\/pre>\n<p>That\u2019s it for now, in my upcoming articles, I will show you how to add\u00a0<strong>Linux<\/strong>,\u00a0<strong>Windows<\/strong>,\u00a0<strong>Printers<\/strong>,\u00a0<strong>Switches<\/strong>\u00a0and\u00a0<strong>Devices<\/strong>\u00a0to Nagios monitoring Server. If you\u2019re having any trouble while installing, please do contact us via\u00a0<strong>comments<\/strong>. Till then stay tuned and connected to\u00a0<strong>Tecmint<\/strong>\u00a0and don\u2019t forget to\u00a0<strong>Like<\/strong>\u00a0and\u00a0<strong>Share<\/strong>\u00a0us to spread around.<\/p>\n<p><strong>Read Also:<\/strong><\/p>\n<ol>\n<li><a href=\"https:\/\/www.tecmint.com\/how-to-add-linux-host-to-nagios-monitoring-server\/\" target=\"_blank\" rel=\"noopener\">How to Add Linux Host to Nagios Monitoring Server<\/a><\/li>\n<li><a href=\"https:\/\/www.tecmint.com\/how-to-add-windows-host-to-nagios-monitoring-server\/\" target=\"_blank\" rel=\"noopener\">How to Add Windows Host to Nagios Monitoring Server<\/a><\/li>\n<\/ol>\n<p><a href=\"https:\/\/www.tecmint.com\/install-nagios-in-linux\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nagios\u00a0is an awesome\u00a0Open Source\u00a0monitoring tool, its provides you more comprehensive monitoring environment to always keep an eye on your all\u00a0machines\u00a0\/\u00a0networks\u00a0whether you are in a your data center or just your small labs. With\u00a0Nagios, you can monitor your remote hosts and their services remotely on a single window. It shows\u00a0warnings\u00a0and\u00a0indicates\u00a0if something goes wrong in your\u00a0servers\u00a0which eventually &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/14\/how-to-install-nagios-4-3-4-on-rhel-centos-and-fedora\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Install Nagios 4.3.4 on RHEL, CentOS and Fedora&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-11508","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/11508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=11508"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/11508\/revisions"}],"predecessor-version":[{"id":11509,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/11508\/revisions\/11509"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=11508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=11508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=11508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}