{"id":14022,"date":"2022-09-14T22:49:24","date_gmt":"2022-09-14T19:49:24","guid":{"rendered":"https:\/\/kifarunix.com\/?p=14022"},"modified":"2024-03-09T21:26:59","modified_gmt":"2024-03-09T18:26:59","slug":"install-nagios-server-on-oracle-linux-9","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-nagios-server-on-oracle-linux-9\/","title":{"rendered":"Install Nagios Server on Oracle Linux 9"},"content":{"rendered":"\n<p>In this guide, you will learn how to install Nagios Server on Oracle Linux 9.&nbsp;<a href=\"https:\/\/www.nagios.org\/about\/\" target=\"_blank\" rel=\"noreferrer noopener\">Nagios<\/a>&nbsp;provides enterprise-class Open Source IT monitoring, network monitoring, server and applications monitoring.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install Nagios Server on Oracle Linux 9<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Run System Update<\/h3>\n\n\n\n<p>Resynchronize your system packages to their latest versions.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf update<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Install Required Build Tools<\/h3>\n\n\n\n<p>The default Oracle Linux repositories do not provide Nagios Core packages. As a result, in this guide, we are going to build Nagios Core from the source code. As such there are packages and build tools that you need to install. Run the command below to install them.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf install gcc glibc glibc-common perl httpd php php-cli php-fpm wget net-snmp gd gd-devel openssl openssl-devel<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Download Nagios Core Source Code<\/h3>\n\n\n\n<p>Navigate to the&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.nagios.org\/downloads\/nagios-core\/thanks\/?skip=1&amp;product_download=nagioscore-source\" target=\"_blank\">Nagios Core downloads page<\/a>&nbsp;and grab the latest Nagios core source code. Nagios v4.4.6 is the current stable release as of this guide.<\/p>\n\n\n\n<p>Get the latest stable release version number and substitute the value of the <strong>$VER<\/strong> variable below and use wget to download the file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>VER=4.4.7<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>wget https:\/\/assets.nagios.com\/downloads\/nagioscore\/releases\/nagios-$VER.tar.gz<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Extract the Nagios Source Code<\/h3>\n\n\n\n<p>Once the Nagios source is downloaded, extract it by running the command;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>tar xzf nagios-$VER.tar.gz<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Installing Nagios Core<\/h3>\n\n\n\n<p>Next, navigate to the Nagios source code directory.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>cd nagios-$VER\/<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Configure Nagios Core on Oracle Linux 9<\/h4>\n\n\n\n<p>Run the configuration script to adapt Nagios to your system and check if all required dependencies and build tools are in place.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>.\/configure<\/code><\/pre>\n\n\n\n<p>If the configuration is successful, you will be provided with the summary;<\/p>\n\n\n\n<pre class=\"scroll-box\"><code>Creating sample config files in sample-config\/ ...\n\n\n*** Configuration summary for nagios 4.4.7 2022-04-14 ***:\n\n General Options:\n -------------------------\n        Nagios executable:  nagios\n        Nagios user\/group:  nagios,nagios\n       Command user\/group:  nagios,nagios\n             Event Broker:  yes\n        Install ${prefix}:  \/usr\/local\/nagios\n    Install ${includedir}:  \/usr\/local\/nagios\/include\/nagios\n                Lock file:  \/run\/nagios.lock\n   Check result directory:  \/usr\/local\/nagios\/var\/spool\/checkresults\n           Init directory:  \/lib\/systemd\/system\n  Apache conf.d directory:  \/etc\/httpd\/conf.d\n             Mail program:  \/bin\/mail\n                  Host OS:  linux-gnu\n          IOBroker Method:  epoll\n\n Web Interface Options:\n ------------------------\n                 HTML URL:  http:\/\/localhost\/nagios\/\n                  CGI URL:  http:\/\/localhost\/nagios\/cgi-bin\/\n Traceroute (used by WAP):  \n\n\nReview the options above for accuracy.  If they look okay,\ntype 'make all' to compile the main program and CGIs.\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Compile Nagios Core on Oracle Linux 9<\/h4>\n\n\n\n<p>Next, proceed to compile Nagios Main program and CGIs.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>make all<\/code><\/pre>\n\n\n\n<p>If the main program and CGIs compiled without any errors, proceed to install Nagios Server on Oracle Linux, and its configurations.<\/p>\n\n\n\n<p>Sample compilation output;<\/p>\n\n\n\n<pre class=\"scroll-box\"><code>*** Compile finished ***\n\nIf the main program and CGIs compiled without any errors, you\ncan continue with testing or installing Nagios as follows (type\n'make' without any arguments for a list of all possible options):\n\n  make test\n     - This runs the test suite\n\n  make install\n     - This installs the main program, CGIs, and HTML files\n\n  make install-init\n     - This installs the init script in \/lib\/systemd\/system\n\n  make install-daemoninit\n     - This will initialize the init script\n       in \/lib\/systemd\/system\n\n  make install-groups-users\n     - This adds the users and groups if they do not exist\n\n  make install-commandmode\n     - This installs and configures permissions on the\n       directory for holding the external command file\n\n  make install-config\n     - This installs *SAMPLE* config files in \/usr\/local\/nagios\/etc\n       You'll have to modify these sample files before you can\n       use Nagios.  Read the HTML documentation for more info\n       on doing this.  Pay particular attention to the docs on\n       object configuration files, as they determine what\/how\n       things get monitored!\n\n  make install-webconf\n     - This installs the Apache config file for the Nagios\n       web interface\n\n  make install-exfoliation\n     - This installs the Exfoliation theme for the Nagios\n       web interface\n\n  make install-classicui\n     - This installs the classic theme for the Nagios\n       web interface\n\n\n*** Support Notes *******************************************\n\nIf you have questions about configuring or running Nagios,\nplease make sure that you:\n\n     - Look at the sample config files\n     - Read the documentation on the Nagios Library at:\n           <blockquote class=\"wp-embedded-content\" data-secret=\"vFhPauc4eP\"><a href=\"https:\/\/library.nagios.com\/\" target=\"_blank\" rel=\"noopener\">Nagios Library<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Nagios Library&#8221; &#8212; Nagios Library\" src=\"https:\/\/library.nagios.com\/embed\/#?secret=vFhPauc4eP\" data-secret=\"vFhPauc4eP\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n\nbefore you post a question to one of the mailing lists.\nAlso make sure to include pertinent information that could\nhelp others help you.  This might include:\n\n     - What version of Nagios you are using\n     - What version of the plugins you are using\n     - Relevant snippets from your config files\n     - Relevant error messages from the Nagios log file\n\nFor more information on obtaining support for Nagios, visit:\n\n       <blockquote class=\"wp-embedded-content\" data-secret=\"QqyyJwqNGo\"><a href=\"https:\/\/support.nagios.com\/\" target=\"_blank\" rel=\"noopener\">Nagios Support Home<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Nagios Support Home&#8221; &#8212; Nagios Support\" src=\"https:\/\/support.nagios.com\/embed\/#?secret=naqWcGIVNR#?secret=QqyyJwqNGo\" data-secret=\"QqyyJwqNGo\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n\n*************************************************************\n\nEnjoy.\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Create Nagios User and Group<\/h4>\n\n\n\n<p>Nagios runs as non-privileged&nbsp;<code>nagios<\/code>&nbsp;user. As such, you need to create a Nagios system user and group.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>make install-groups-users<\/code><\/pre>\n\n\n\n<p>Add Apache user to the Nagios group.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>usermod -aG nagios apache<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Install Nagios Core on Oracle Linux 9<\/h4>\n\n\n\n<p>Install Nagios main program, CGIs, and HTML files.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>make install<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Install Nagios Systemd Service<\/h4>\n\n\n\n<p>Install Nagios Systemd initialization scripts.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>make install-daemoninit<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Install Nagios Commands<\/h4>\n\n\n\n<p>Install and configure the external command file as well as the permissions on the directory holding the external commands file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>make install-commandmode<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Install Nagios Configuration Files<\/h4>\n\n\n\n<p>Install Nagios Sample configuration file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>make install-config<\/code><\/pre>\n\n\n\n<p>This command installs Nagios sample configuration files in&nbsp;<strong><code>\/usr\/local\/nagios\/etc<\/code><\/strong>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Install Nagios Apache Configuration files<\/h4>\n\n\n\n<p>Next, install the&nbsp;Apache&nbsp;HTTP&nbsp;server&nbsp;configuration files for Nagios.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>make install-webconf<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Setup Nagios Apache Authentication<\/h4>\n\n\n\n<p>To setup Nagios Web authentication, you need to create an Apache user for authentication. This can be done using the&nbsp;<strong><code>htpasswd<\/code><\/strong>&nbsp;command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>htpasswd -c \/usr\/local\/nagios\/etc\/htpasswd.users nagiosadmin<\/code><\/pre>\n\n\n\n<p>The user,&nbsp;<code>nagiosadmin<\/code>, is used by default.<\/p>\n\n\n\n<p>If you need to use a different user, you need to replace all the occurences of&nbsp;<code>nagiosadmin<\/code>&nbsp;on the&nbsp;<code>\/usr\/local\/nagios\/etc\/cgi.cfg<\/code>&nbsp;file with the user you created.<\/p>\n\n\n\n<p>For example, if you use a user like&nbsp;<code>monadmin<\/code>, replace&nbsp;<code>nagiosadmin<\/code>&nbsp;as shown below.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sed -i 's\/nagiosadmin\/monadmin\/g' \/usr\/local\/nagios\/etc\/cgi.cfg<\/code><\/pre>\n\n\n\n<p>If you also want to use a different authentication user file instead of,&nbsp;<code>\/usr\/local\/nagios\/etc\/htpasswd.users<\/code>, ensure you edit the Nagios Apache configuration file,&nbsp;<code>\/etc\/httpd\/conf.d\/nagios.conf<\/code> and change the value of&nbsp;<code>AuthUserFile<\/code>.<\/p>\n\n\n\n<p>Set the ownership of the Nagios Apache authentication configuration file to web-server user,&nbsp;<strong><code>apache<\/code><\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>chown apache:apache \/usr\/local\/nagios\/etc\/htpasswd.users<\/code><\/pre>\n\n\n\n<p>Adjust the file permissions appropriately such that the owner (apache) have read write access, the group has read access.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>chmod 640 \/usr\/local\/nagios\/etc\/htpasswd.users<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Start Apache Web server<\/h4>\n\n\n\n<p>Once you are done with configuration, start and enable Apache to run on system boot.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl enable httpd --now<\/code><\/pre>\n\n\n\n<p>If firewallD is running on your system, be sure to enable external access to Apache.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>firewall-cmd --add-port=80\/tcp --permanent\nfirewall-cmd --reload<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Start Nagios Core service<\/h4>\n\n\n\n<p>Start and enable Nagios service to run on system boot.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl enable nagios --now<\/code><\/pre>\n\n\n\n<p>To check the status<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl status nagios<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code>\u25cf nagios.service - Nagios Core 4.4.7\n     Loaded: loaded (\/usr\/lib\/systemd\/system\/nagios.service; enabled; vendor preset: disabled)\n     Active: active (running) since Wed 2022-09-14 19:25:36 EAT; 2min 37s ago\n       Docs: https:\/\/www.nagios.org\/documentation\n    Process: 775 ExecStartPre=\/usr\/local\/nagios\/bin\/nagios -v \/usr\/local\/nagios\/etc\/nagios.cfg (code=exited, status=0\/SUCCESS)\n    Process: 782 ExecStart=\/usr\/local\/nagios\/bin\/nagios -d \/usr\/local\/nagios\/etc\/nagios.cfg (code=exited, status=0\/SUCCESS)\n   Main PID: 790 (nagios)\n      Tasks: 6 (limit: 15848)\n     Memory: 19.4M\n        CPU: 101ms\n     CGroup: \/system.slice\/nagios.service\n             \u251c\u2500790 \/usr\/local\/nagios\/bin\/nagios -d \/usr\/local\/nagios\/etc\/nagios.cfg\n             \u251c\u2500792 \/usr\/local\/nagios\/bin\/nagios --worker \/usr\/local\/nagios\/var\/rw\/nagios.qh\n             \u251c\u2500793 \/usr\/local\/nagios\/bin\/nagios --worker \/usr\/local\/nagios\/var\/rw\/nagios.qh\n             \u251c\u2500794 \/usr\/local\/nagios\/bin\/nagios --worker \/usr\/local\/nagios\/var\/rw\/nagios.qh\n             \u251c\u2500795 \/usr\/local\/nagios\/bin\/nagios --worker \/usr\/local\/nagios\/var\/rw\/nagios.qh\n             \u2514\u2500810 \/usr\/local\/nagios\/bin\/nagios -d \/usr\/local\/nagios\/etc\/nagios.cfg\n\nSep 14 19:25:36 localhost nagios[790]: wproc: Registry request: name=Core Worker 792;pid=792\nSep 14 19:25:36 localhost nagios[790]: wproc: Registry request: name=Core Worker 793;pid=793\nSep 14 19:25:36 localhost nagios[790]: Successfully launched command file worker with pid 810\nSep 14 19:25:36 localhost.localdomain nagios[790]: HOST ALERT: localhost;DOWN;SOFT;1;(No output on stdout) stderr: execvp(\/usr\/local\/nagios\/libexec\/check_ping, ...) failed&gt;\nSep 14 19:26:13 localhost.localdomain nagios[790]: SERVICE ALERT: localhost;Current Load;CRITICAL;HARD;1;(No output on stdout) stderr: execvp(\/usr\/local\/nagios\/libexec\/che&gt;\nSep 14 19:26:36 localhost.localdomain nagios[790]: HOST ALERT: localhost;DOWN;SOFT;2;(No output on stdout) stderr: execvp(\/usr\/local\/nagios\/libexec\/check_ping, ...) failed&gt;\nSep 14 19:26:51 localhost.localdomain nagios[790]: SERVICE ALERT: localhost;Current Users;CRITICAL;HARD;1;(No output on stdout) stderr: execvp(\/usr\/local\/nagios\/libexec\/ch&gt;\nSep 14 19:27:28 localhost.localdomain nagios[790]: SERVICE ALERT: localhost;HTTP;CRITICAL;HARD;1;(No output on stdout) stderr: execvp(\/usr\/local\/nagios\/libexec\/check_http,&gt;\nSep 14 19:27:36 localhost.localdomain nagios[790]: HOST ALERT: localhost;DOWN;SOFT;3;(No output on stdout) stderr: execvp(\/usr\/local\/nagios\/libexec\/check_ping, ...) failed&gt;\nSep 14 19:28:06 localhost.localdomain nagios[790]: SERVICE ALERT: localhost;PING;CRITICAL;HARD;1;(No output on stdout) stderr: execvp(\/usr\/local\/nagios\/libexec\/check_ping\n<\/code><\/pre>\n\n\n\n<p>You can check Nagios logs at&nbsp;<code>\/usr\/local\/nagios\/var\/nagios.log<\/code>.<\/p>\n\n\n\n<p>If the service fails with the error;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>Caught SIGSEGV, shutting down...<\/strong><\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Either check to ensure that your system is not running out of memory<\/li>\n\n\n\n<li>or disable updates check by editing the file, <strong><code>\/usr\/local\/nagios\/etc\/nagios.cfg<\/code><\/strong> and setting the value of <strong><code>check_for_updates<\/code><\/strong> to 0 and restart the service.<\/li>\n<\/ul>\n\n\n\n<p>If for some reasons you want to configure Apache to server Nagios on a different port apart from port 80, then insert the following lines in the Nagios Apache configuration file, <strong><code>\/etc\/httpd\/conf.d\/nagios.conf<\/code><\/strong>.<\/p>\n\n\n\n<p>Insert the lines below at the top of the configuration file;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Listen 8888\n&lt;VirtualHost *:8888&gt;<\/code><\/pre>\n\n\n\n<p>And the line below at the end of the configuration file;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;\/VirtualHost&gt;<\/code><\/pre>\n\n\n\n<p>Such that the configuration file looks like below, without comment lines;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>grep -Ev \"^#|^$\" \/etc\/httpd\/conf.d\/nagios.conf<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code><strong>Listen 8888\n&lt;VirtualHost *:8888&gt;<\/strong>\nScriptAlias \/nagios\/cgi-bin \"\/usr\/local\/nagios\/sbin\"\n&lt;Directory \"\/usr\/local\/nagios\/sbin\"&gt;\n   Options ExecCGI\n   AllowOverride None\n   &lt;IfVersion &gt;= 2.3&gt;\n      &lt;RequireAll&gt;\n         Require all granted\n         AuthName \"Nagios Access\"\n         AuthType Basic\n         AuthUserFile \/usr\/local\/nagios\/etc\/htpasswd.users\n         Require valid-user\n      &lt;\/RequireAll&gt;\n   &lt;\/IfVersion&gt;\n   &lt;IfVersion &lt; 2.3&gt;\n      Order allow,deny\n      Allow from all\n      AuthName \"Nagios Access\"\n      AuthType Basic\n      AuthUserFile \/usr\/local\/nagios\/etc\/htpasswd.users\n      Require valid-user\n   &lt;\/IfVersion&gt;\n&lt;\/Directory&gt;\nAlias \/nagios \"\/usr\/local\/nagios\/share\"\n&lt;Directory \"\/usr\/local\/nagios\/share\"&gt;\n   Options None\n   AllowOverride None\n   &lt;IfVersion &gt;= 2.3&gt;\n      &lt;RequireAll&gt;\n         Require all granted\n         AuthName \"Nagios Access\"\n         AuthType Basic\n         AuthUserFile \/usr\/local\/nagios\/etc\/htpasswd.users\n         Require valid-user\n      &lt;\/RequireAll&gt;\n   &lt;\/IfVersion&gt;\n   &lt;IfVersion &lt; 2.3&gt;\n      Order allow,deny\n      Allow from all\n      AuthName \"Nagios Access\"\n      AuthType Basic\n      AuthUserFile \/usr\/local\/nagios\/etc\/htpasswd.users\n      Require valid-user\n   &lt;\/IfVersion&gt;\n&lt;\/Directory&gt;\n<strong>&lt;\/VirtualHost&gt;<\/strong>\n<\/code><\/pre>\n\n\n\n<p>Check Apache configuration syntax;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>httpd -t<\/code><\/pre>\n\n\n\n<p>If SELinux is running, execute the commands below to allow Apache to bind to the new port;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>setsebool -P nis_enabled 1<\/code><\/pre>\n\n\n\n<p>Restart both Nagios service and Apache service;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl restart httpd nagios<\/code><\/pre>\n\n\n\n<p>Open new port on firewall;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>firewall-cmd --add-port=8888\/tcp --permanent\nfirewall-cmd --reload<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Accessing Nagios on Oracle Linux 9<\/h2>\n\n\n\n<p>You can now access your Nagios server from the browser using the address&nbsp;<strong><code>http:\/\/&lt;server-IP or HOSTNAME&gt;\/nagios<\/code><\/strong>.<\/p>\n\n\n\n<p>If you changed the port, access it as <strong><code>http:\/\/&lt;server-IP or HOSTNAME&gt;<strong><code>:PORT<\/code><\/strong>\/nagios<\/code><\/strong><\/p>\n\n\n\n<p>You will be prompted to enter username and password created above to login.<\/p>\n\n\n\n<p>Enter the authentication credentials and proceed to Nagios web interface.<\/p>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/06\/nagios-dashboard.png\" class=\"td-modal-image\"><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1626\" height=\"922\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/06\/nagios-dashboard.png\" alt=\"Install Nagios Server on Oracle Linux 9\" class=\"wp-image-9283\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/06\/nagios-dashboard.png?v=1624392812 1626w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/06\/nagios-dashboard-768x435.png?v=1624392812 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/06\/nagios-dashboard-1536x871.png?v=1624392812 1536w\" sizes=\"(max-width: 1626px) 100vw, 1626px\" \/><\/figure><\/a><\/div>\n\n\n\n<p>You have successfully installed Nagios on Oracle Linux 9.<\/p>\n\n\n\n<p>You can now start monitoring your end points with Nagios.<\/p>\n\n\n\n<p>If you can check, even the status of the localhost and services are down since no Nagios plugins are installed by default.<\/p>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/06\/hosts-state.png\" class=\"td-modal-image\"><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1625\" height=\"426\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/06\/hosts-state.png\" alt=\"Install Nagios Server on Oracle Linux 9\" class=\"wp-image-9284\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/06\/hosts-state.png?v=1624392828 1625w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/06\/hosts-state-768x201.png?v=1624392828 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/06\/hosts-state-1536x403.png?v=1624392828 1536w\" sizes=\"(max-width: 1625px) 100vw, 1625px\" \/><\/figure><\/a><\/div>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/06\/service-state-1.png\" class=\"td-modal-image\"><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1707\" height=\"432\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/06\/service-state-1.png\" alt=\"Install Nagios Server on Oracle Linux 9\" class=\"wp-image-9285\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/06\/service-state-1.png?v=1624392843 1707w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/06\/service-state-1-768x194.png?v=1624392843 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/06\/service-state-1-1536x389.png?v=1624392843 1536w\" sizes=\"(max-width: 1707px) 100vw, 1707px\" \/><\/figure><\/a><\/div>\n\n\n\n<p>To start to monitor your hosts with Nagios, you need to install Nagios plugins and the NRPE plugins.<\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/how-to-install-nagios-plugins-from-source-rhel-centos-oracle-linux\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install Nagios Plugins on Oracle Linux<\/a><\/p>\n\n\n\n<p>Once you install plugins, services should be ok now;<\/p>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/nagios-plugins-monitoring.png\" class=\"td-modal-image\"><figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1910\" height=\"515\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/nagios-plugins-monitoring.png\" alt=\"\" class=\"wp-image-14035\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/nagios-plugins-monitoring.png?v=1663184908 1910w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/nagios-plugins-monitoring-768x207.png?v=1663184908 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/nagios-plugins-monitoring-1536x414.png?v=1663184908 1536w\" sizes=\"(max-width: 1910px) 100vw, 1910px\" \/><\/figure><\/a><\/div>\n\n\n\n<p>That marks the end of our tutorial on how to install Nagios Server on Oracle Linux.<\/p>\n\n\n\n<p>You can also check other Nagios Tutorials by following the links below;<\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/monitor-ssl-tls-certificates-expiry-with-nagios\/\" target=\"_blank\" rel=\"noreferrer noopener\">Monitor SSL\/TLS Certificates Expiry with Nagios<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/configure-nagios-email-notification-using-gmail\/\" target=\"_blank\" rel=\"noreferrer noopener\">Configure Nagios Email Notification Using Gmail<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/add-hosts-to-nagios-server-for-monitoring\/\" target=\"_blank\" rel=\"noreferrer noopener\">Add Hosts to Nagios Server For Monitoring<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, you will learn how to install Nagios Server on Oracle Linux 9.&nbsp;Nagios&nbsp;provides enterprise-class Open Source IT monitoring, network monitoring, server and applications<\/p>\n","protected":false},"author":1,"featured_media":10215,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121],"tags":[5815,5816,5813,5814,75,145,1161,5746],"class_list":["post-14022","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-build-nagios-from-source","tag-build-nagios-from-source-oracle-linux","tag-install-nagios-server-on-oracle-linux-9","tag-install-nagios-server-oracle-linux","tag-nagios","tag-nagios-monitoring","tag-nagios-server","tag-oracle-linux","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/14022"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=14022"}],"version-history":[{"count":8,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/14022\/revisions"}],"predecessor-version":[{"id":20618,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/14022\/revisions\/20618"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/10215"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=14022"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=14022"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=14022"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}