![]() ![]() To install the Nagios initialization script for managing the Nagios service, run the following command: # make install-init The following command will install the external command file that facilitates Nagios Core to work from the command line: # make install-commandmode Next to install Nagios along with the init scripts and other default configuration, use the following “make” scripts one by one. Now to compile Nagios, issue the following command: # make all Once the above “configure” script runs successfully, you will see the following configuration summary at the end. configure -with-nagios-group=nagios -with-command-group=nagios -with-mail=/usr/sbin/sendmail Moreover, If you want Nagios to send email for alerting then pass the path of “sendmail” as well to the “configure” script. # cd /usr/local/src/Ĭhange to the extracted folder and pass the user name and group that we have created earlier to the “configure” script to start the build process. Head over to Nagios release page in order to download the latest release of Nagios Core and extract it in a suitable location. # firewall-cmd -zone=public -add-port=80/tcp -permanent Open the port number 80 of Apache in the firewall settings so that traffic can reach to the web server. If you have not installed it earlier then install Apache as a web server along with php using the following commands and start/enable Apache. The Nagios web interface which is a part of Nagios core needs a web server and php to be installed as a prerequisites. # yum install postfix gettext wget net-snmp-utils openssl-devel glibc-common unzip perl gcc automake autoconf make glibc gd-devel net-snmp perl-Net-SNMP Install them using the following commands in the terminal: # yum install epel-release Then add the newly created user to the Nagios group: # usermod -a -G nagios nagiosĬompilation of Nagios from source also needs few development packages like compilers, libraries and headers. To start with, create an user especially for running Nagios commands to fetch various system/application metrics. So one way to install it by using “yum” but since we are interested in version 4.4.2, therefore we will download the specific Nagios source package and compile/install it from source. Nagios and its associated packages are available in EPEL repository.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |