{"id":4307,"date":"2014-08-30T12:58:24","date_gmt":"2014-08-30T17:58:24","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=4307"},"modified":"2022-12-08T11:05:39","modified_gmt":"2022-12-08T17:05:39","slug":"how-to-install-icinga-network-monitoring-system-on-a-centos-7-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-network-monitoring-system-on-a-centos-7-vps\/","title":{"rendered":"How to install Icinga network monitoring system on a CentOS 7 VPS"},"content":{"rendered":"
The following article will guide you through the steps of installing Icinda network monitoring system.<\/p>\n
What is Icinga?<\/strong><\/p>\n Icinga is an open source network and computer system monitoring application which was originally created as a fork of the Nagios system monitoring application. It is backward compatible and is attempting to get past perceived short-comings in Nagios’ development process as well as adding new features such as a modern Web 2.0 style user interface, additional database connectors (for MySQL, Oracle, and PostgreSQL), and a REST API that lets administrators integrate numerous extensions without complicated modification of the Icinga core.<\/p>\n <\/p>\n The Icinga grade monitoring system keeps watch over a network and any conceivable network resource and it notifies the user of errors and recoveries while it generates performance data for reporting. It is extensible and scalable and it can be used to monitor complex, large environments across separate locations.<\/p>\n Icinga has been gaining popularity due to a more agile development cycle when compared to Nagios.<\/p>\n In this guide we will show you how to install Icinga on a linux vps<\/a>.<\/p>\n Login to your server as user \u2018root\u2019 :<\/p>\n Before you start the installation of Icinga, download the pre-required packages which are: the Apache web server (if you don’t have it already installed), libraries needed to compile the source and tools needed for the web interface and network monitoring. You can install them using the following commands:<\/p>\n Then, create a user and group to your liking. We will use icinga and rh-icinga for user and group respectively.<\/p>\n Create Icinga directory:<\/p>\n Now, download the latest versions of Icinga and Plugins packages:<\/p>\n Extract the files with tar:<\/p>\n Enter the Icinga directory and run the configuration file:<\/p>\n You should get the following output:<\/p>\n <\/p>\n Next, let’s compile and install the Icinga files:<\/p>\n With your favorite text editor open the \/usr\/local\/icinga\/etc\/objects\/contacts.cfg file and enter your email address in the email field in order to receive notifications.<\/p>\n The next step is to install the classic web interface using the following commands:<\/p>\n Setup a password for the username that will be used to access the web interface. We will use adminIcinga as username. Run this command:<\/p>\n Restart Apache for the settings to take effect:<\/p>\n Install the plugins:<\/p>\n Let’s verify that the configuration file has no errors with the following command:<\/p>\n If everything is OK, add the service to run on boot:<\/p>\n Start Icinga:<\/p>\n That’s it. Icinga monitoring system is installed on your server. Of course you don\u2019t have to do any of this if you use one of our Linux VPS hosting<\/a> services, in which case you can simply ask our expert Linux admins to install Icinga for you.They are available 24\u00d77 and will take care of your request immediately.<\/p>\n PS.<\/span> If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":" The following article will guide you through the steps of installing Icinda network monitoring system. What is Icinga? Icinga is … <\/p>\n# ssh root@server_IP_address<\/pre>\n
# yum install httpd gcc glibc glibc-common gd gd-devel\r\n# yum install libjpeg libjpeg-devel libpng libpng-devel\r\n# yum install net-snmp net-snmp-devel net-snmp-utils<\/pre>\n
# useradd icinga\r\n# groupadd rh-icinga\r\n# usermod -a -G rh-icinga icinga\r\n# usermod -a -G rh-icinga apache<\/pre>\n
# mkdir ~\/icinga\r\n# cd ~\/icinga<\/pre>\n
# wget https:\/\/github.com\/Icinga\/icinga-core\/releases\/download\/v1.11.5\/icinga-1.11.5.tar.gz\r\n# wget http:\/\/www.nagios-plugins.org\/download\/nagios-plugins-2.0.3.tar.gz<\/pre>\n
# tar zxvf icinga-1.11.5.tar.gz\r\n# tar zxvf nagios-plugins-2.0.3.tar.gz<\/pre>\n
# cd icinga-1.11.5\r\n# .\/configure --with-command-group=rh-icinga --disable-idoutils<\/pre>\n
# make all\r\n# make fullinstall\r\n# make install-config<\/pre>\n
# vim \/usr\/local\/icinga\/etc\/objects\/contacts.cfg<\/pre>\n
# make cgis\r\n# make install-cgis\r\n# make install-html\r\n# make install-webconf<\/pre>\n
# htpasswd -c \/usr\/local\/icinga\/etc\/htpasswd.users adminIcinga<\/pre>\n
# systemctl restart httpd.service<\/pre>\n
# cd ~\/icinga\/nagios-plugins-2.0.3\r\n# .\/configure --prefix=\/usr\/local\/icinga --with-cgiurl=\/icinga\/cgi-bin --with-nagios-user=icinga --with-nagios-group=icinga\r\n# make\r\n# make install<\/pre>\n
# \/usr\/local\/icinga\/bin\/icinga -v \/usr\/local\/icinga\/etc\/icinga.cfg<\/pre>\n
# chkconfig --add icinga\r\n# chkconfig --level 35 icinga on<\/pre>\n
# systemctl start icinga.service<\/pre>\n
\nNow open your favorite web browser and navigate to: http:\/\/your_server_IP\/icinga and enter the username and password that you set with the ‘htpasswd’ command.<\/p>\n