Install Debian 7
Posted : adminOn 11/28/2017How to Install Nagios 4. Monitoring Tool on Debian 9. This tutorial will show you how to install and configure the latest version of Nagios Core, currently 4. Debian 9. 1, codename Stretch. Nagios, also known as Nagios Core, is a free Open Source network monitoring tool actively maintained by its developers, designed to monitor an entire network infrastructure. Nagios can monitor almost every network device, as long as the device has a network connection configured, such as routers, switches, servers, desktops, firewalls appliances, Io. T devices. In addition to monitoring devices in order to determine their network state, Nagios can also monitor network services, applications or other specific tasks related to operating systems and can be configured to send alerts via mail or SMS in order to inform network administrators for possible devices, outages or service failures. Requirements. Debian 9. Preferably, the installation must be performed with minimal software requirements. The network interface card configured with a static IP address. Access to root account or a user with root account privileges via sudo. A domain name, private or public, with the proper DNS A records configured. In case you dont have a DNS server configured at your premises, you can access Nagios via server IP address. How to Install Software in Debian Linux. Debian is the basis of Ubuntu, Knoppix, MEPIS, Kanotix and Aptosid. If your distro doesnt include all the software you want. Initial Configuration. Before we start to install Nagios from sources, make sure the system meets all the software requirements for compiling and installing Nagios. In the first step, update your system repositories and software packages by issuing the below command. In the next step, fire up a new command in order to install some necessary utilities that will be used to further manage your system from the command line. Next, set up the name for your system by executing the following command hostnamectl set hostname nagios. Verify machine hostname and hosts file by issuing the below commands. Finally, reboot the system in order to apply the new hostname. Nagios is a web based monitoring application with some parts written in PHP server side programming language and other CGI programs. How to Install Debian. Debian is an operating system based on the GNULinux build. The Debian operating system, like most other Linux distributions, is free and open. Installing Zabbix Agent on Ubuntu. This tutorial will help you to Install Zabbix Agent on Ubuntu 16. LTS, 14. 04 LTS, and Debian 98. Linux admins spend most of their time on working in a terminal there are some who like to work on GUI instead of a terminal. By default, CentOS 7 installed as the. This article explains step by step on how to install nagios on debian 9 in order to monitor your server and its services. If for some reason you want to pin an older version of Mono rather than updating to the latest, you can modify the Debian repository to wheezysnapshotsX. XX. X. ISO images and package files to install Debian Linux on PPC. Getting Debian. Debian is distributed freely over Internet. You can download all of it from any of our mirrors. The Installation Manual contains detailed installation. In order to run Nagios PHP file scripts, a web server, such as Apache HTTP server, and a PHP processing gateway must be installed and operational in the system. In order to install Apache web server and the PHP interpreter alongside with all required PHP modules needed by Nagios 4 to run properly, issue the following command in your server console. After Apache and PHP have been installed, test if the web server is up and running and listening for network connections on port 8. In case netstat network utility is not installed by default in your Debian 9 system, execute the below command to install it. By inspecting the netstat command output you can see that apache web server is listening for incoming network connections on port 8. In case you have a firewall enabled on your system, such as UFW firewall application, you should add a new rule to allow HTTP traffic to pass through the firewall by issuing the following command. WWWorufw allow 8. In case you want to use iptables raw rules to allow port 8. Nagios Core web interface, add the following rule. I INPUT p tcp destination port 8. ACCEPTsystemctl iptables persistent savesystemctl iptables persistent reload. Next, enable and apply the following Apache modules required by Nagios web application to run properly, by issuing the below command. Finally, test if Apache web server default web page can be displayed in your clients browser by visiting your Debian machine IP address or domain name via HTTP protocol, as shown in the below image. If you dont know your machine IP address, execute ifconfig or ip a commands. In the next step, we need to make some further changes to PHP default configuration file in order to assure that the PHP timezone setting is correctly configured and matches your system physical location. Open etcphp7. EuropeLondon. Replace the timezone variable accordingly to your physical time by consulting the list of timezones provided by PHP docs at the following link http php. Restart apache daemon to apply the changes. After youve made the required changes, create a php info file and restart apache daemon to apply changes by issuing the following commands. Install Debian 7' title='Install Debian 7' />Check if the PHP time zone has been correctly configured by visiting the phpinfo script file from a browser at the following URL, as illustrated in the below image. Scroll down to the date setting to check the php timezone setting. Install Nagios Core. Before downloading and compiling Nagios Core from sources, first make sure you install the following pre required packages in your system, by issuing the below command. After all necessary dependencies and packages for compiling Nagios from sources are installed on your Debian system, visit Nagios official website at https www. Nagios Core stable source archive by issuing the wget utility, as shown in following command excerpt. After Nagios source tarball has been downloaded, extract the tar archive and enter the extracted nagios directory, with the following commands. Run ls command inside nagios extracted directory in order to list the source files. While you are inside the Nagios extracted sources directory, start Nagios compilation process from sources by issuing the below commands. First, configure Nagios to be compiled with Apache web server http configuration path pointing to sites enabled directory. Next, compile Nagios by issuing the following command, as illustrated in the below images. Next, create the nagios system user and group and add nagios account to the Apache runtime user in order for the nagios user to have the required permissions to access web resources. G nagios www data. Now, start to install Nagios binary files, CGI scripts and HTML files by issuing the following command. The final output of the make install command should display the binary locations, as shown in the below image. Next, install Nagios daemon systemd init files and enable nagios service system wide by issuing the following commands. Also, install and configure Nagios external command file by running the below command. Strip Poker Game Able. Next, run the following command in order to install Nagios sample configuration files which are required by Nagios daemon to start and operate properly. Finally, install the Apache web server configuration file for Nagios, which will be located in etcapacahe. Create the nagiosadmin user account with the corresponding password required by Apache web server to be able to perform log in to Nagios web tool by issuing the following command. In order to access Nagios web panel, first, restart Apache HTTP server and start Nagios service by issuing the following commands. Then, log in to Nagios Web Interface by opening a browser and visiting your servers IP address or domain name or FQDN and append nagios URL path via HTTP protocol, as illustrated in the below screenshots. Use the nagiosadmin user with the password configured earlier for this user in order to login to Nagios web interface. Install Nagios Plugins. Nagios engine is now installed on the system. However, the Nagios software is not operational yet, because the plugins that are used for checking hosts and services are not installed. This behavior can be observed by navigating to Hosts menu where you will notice the plugin errors, as shown in the below screenshot.