{"id":4827,"date":"2014-02-21T00:46:48","date_gmt":"2014-02-20T16:46:48","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=4827"},"modified":"2023-04-28T09:48:20","modified_gmt":"2023-04-28T09:48:20","slug":"how-to-install-nagios-monitoring-server-on-centos-6-5","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-install-nagios-monitoring-server-on-centos-6-5\/","title":{"rendered":"How to Install Nagios Monitoring Server on CentOS 6.5"},"content":{"rendered":"<p>Nagios is one of the alternate open source computer, network and infrastructure monitoring system that will help organizations to identify and resolve IT infrastructure problems before they affect critical business processes. Nagios provides host, service and network monitoring capabilities and was designed with scalability and flexibility. With complete monitoring and alerting, nagios allows you to detect and repair problems and mitigate future issues before they affect end-users and customers. This post will show you how you can install Nagios monitoring server on CentOS 6.5<\/p>\n<p>1. Prepare and download EPEL  repository :<\/p>\n<pre>\n[root@centos6-05 ~]# wget dl.fedoraproject.org\/pub\/epel\/6\/x86_64\/epel-release-6-8.noarch.rpm\n<\/pre>\n<p>2. Install EPEL repository : <\/p>\n<pre>\n[root@centos6-05 ~]# rpm -Uvh epel-release-6-8.noarch.rpm\nwarning: epel-release-6-8.noarch.rpm: Header V3 RSA\/SHA256 Signature, key ID 0608b895: NOKEY\nPreparing...\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ########################################### [100%]\n1:epel-release\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ########################################### [100%]\n<\/pre>\n<p>3. Install Nagis packages, php and httpd web server :<\/p>\n<pre>\n[root@centos6-05 ~]# yum install nagios nagios-plugins-all nagios-plugins-nrpe nrpe php httpd -y\n<\/pre>\n<p>Example:<\/p>\n<pre>\n[root@centos6-05 ~]# yum install nagios nagios-plugins-all nagios-plugins-nrpe nrpe php httpd -y\nLoaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * Webmin: download.webmin.com\n * base: mirror.upsi.edu.my\n * epel: mirror.smartmedia.net.id\n * extras: mirror.upsi.edu.my\n * updates: mirror.upsi.edu.my\nSetting up Install Process\nPackage php-5.3.3-27.el6_5.x86_64 already installed and latest version\nPackage httpd-2.2.15-29.el6.centos.x86_64 already installed and latest version\nResolving Dependencies\n--> Running transaction check\n---> Package nagios.x86_64 0:3.5.1-1.el6 will be installed\n--> Processing Dependency: user(nagios) for package: nagios-3.5.1-1.el6.x86_64\n--> Processing Dependency: user(nagios) for package: nagios-3.5.1-1.el6.x86_64\n--> Processing Dependency: nagios-common for package: nagios-3.5.1-1.el6.x86_64\n--> Processing Dependency: mailx for package: nagios-3.5.1-1.el6.x86_64\n--> Processing Dependency: group(nagios) for package: nagios-3.5.1-1.el6.x86_64\n--> Processing Dependency: group(nagios) for package: nagios-3.5.1-1.el6.x86_64\n--> Processing Dependency: libgd.so.2()(64bit) for package: nagios-3.5.1-1.el6.x86_64\n---> Package nagios-plugins-all.x86_64 0:1.4.16-10.el6 will be installed\n--> Processing Dependency: nagios-plugins-wave for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-users for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-ups for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-time for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-tcp for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-swap for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-ssh for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-snmp for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-smtp for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-sensors for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-rpc for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-real for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-procs for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-ping for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-pgsql for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-overcr for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-oracle for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-nwstat for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-ntp-perl for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-ntp for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-nt for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-nagios for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-mysql for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-mrtgtraf for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-mrtg for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-mailq for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-log for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-load for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-ldap for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-ircd for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-ide_smart for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-icmp for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-http for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-hpjd for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-game for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-fping for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-flexlm for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-file_age for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n--> Processing Dependency: nagios-plugins-dummy for package: nagios-plugins-all-1.4.16-10.el6.x86_64\n..\n..\n..\n\nInstalled:\n  nagios.x86_64 0:3.5.1-1.el6                     nagios-plugins-all.x86_64 0:1.4.16-10.el6\n  nagios-plugins-nrpe.x86_64 0:2.14-5.el6         nrpe.x86_64 0:2.14-5.el6\n\nDependency Installed:\n  dmidecode.x86_64 1:2.11-2.el6                    fontconfig.x86_64 0:2.8.0-3.el6\n  fping.x86_64 0:2.4b2-10.el6                      gd.x86_64 0:2.0.35-11.el6\n  libgssglue.x86_64 0:0.1-11.el6                   libtalloc.x86_64 0:2.0.7-2.el6\n  libtdb.x86_64 0:1.2.10-1.el6                     libtevent.x86_64 0:0.9.18-3.el6\n  libtirpc.x86_64 0:0.2.1-6.el6_4                  lm_sensors.x86_64 0:3.1.1-17.el6\n  mailx.x86_64 0:12.4-7.el6                        nagios-common.x86_64 0:3.5.1-1.el6\n  nagios-plugins.x86_64 0:1.4.16-10.el6            nagios-plugins-breeze.x86_64 0:1.4.16-10.el6\n  nagios-plugins-by_ssh.x86_64 0:1.4.16-10.el6     nagios-plugins-cluster.x86_64 0:1.4.16-10.el6\n  nagios-plugins-dhcp.x86_64 0:1.4.16-10.el6       nagios-plugins-dig.x86_64 0:1.4.16-10.el6\n  nagios-plugins-disk.x86_64 0:1.4.16-10.el6       nagios-plugins-disk_smb.x86_64 0:1.4.16-10.el6\n  nagios-plugins-dns.x86_64 0:1.4.16-10.el6        nagios-plugins-dummy.x86_64 0:1.4.16-10.el6\n  nagios-plugins-file_age.x86_64 0:1.4.16-10.el6   nagios-plugins-flexlm.x86_64 0:1.4.16-10.el6\n  nagios-plugins-fping.x86_64 0:1.4.16-10.el6      nagios-plugins-game.x86_64 0:1.4.16-10.el6\n  nagios-plugins-hpjd.x86_64 0:1.4.16-10.el6       nagios-plugins-http.x86_64 0:1.4.16-10.el6\n  nagios-plugins-icmp.x86_64 0:1.4.16-10.el6       nagios-plugins-ide_smart.x86_64 0:1.4.16-10.el6\n  nagios-plugins-ircd.x86_64 0:1.4.16-10.el6       nagios-plugins-ldap.x86_64 0:1.4.16-10.el6\n  nagios-plugins-load.x86_64 0:1.4.16-10.el6       nagios-plugins-log.x86_64 0:1.4.16-10.el6\n  nagios-plugins-mailq.x86_64 0:1.4.16-10.el6      nagios-plugins-mrtg.x86_64 0:1.4.16-10.el6\n  nagios-plugins-mrtgtraf.x86_64 0:1.4.16-10.el6   nagios-plugins-mysql.x86_64 0:1.4.16-10.el6\n  nagios-plugins-nagios.x86_64 0:1.4.16-10.el6     nagios-plugins-nt.x86_64 0:1.4.16-10.el6\n  nagios-plugins-ntp.x86_64 0:1.4.16-10.el6        nagios-plugins-ntp-perl.x86_64 0:1.4.16-10.el6\n  nagios-plugins-nwstat.x86_64 0:1.4.16-10.el6     nagios-plugins-oracle.x86_64 0:1.4.16-10.el6\n  nagios-plugins-overcr.x86_64 0:1.4.16-10.el6     nagios-plugins-perl.x86_64 0:1.4.16-10.el6\n  nagios-plugins-pgsql.x86_64 0:1.4.16-10.el6      nagios-plugins-ping.x86_64 0:1.4.16-10.el6\n  nagios-plugins-procs.x86_64 0:1.4.16-10.el6      nagios-plugins-real.x86_64 0:1.4.16-10.el6\n  nagios-plugins-rpc.x86_64 0:1.4.16-10.el6        nagios-plugins-sensors.x86_64 0:1.4.16-10.el6\n  nagios-plugins-smtp.x86_64 0:1.4.16-10.el6       nagios-plugins-snmp.x86_64 0:1.4.16-10.el6\n  nagios-plugins-ssh.x86_64 0:1.4.16-10.el6        nagios-plugins-swap.x86_64 0:1.4.16-10.el6\n  nagios-plugins-tcp.x86_64 0:1.4.16-10.el6        nagios-plugins-time.x86_64 0:1.4.16-10.el6\n  nagios-plugins-ups.x86_64 0:1.4.16-10.el6        nagios-plugins-users.x86_64 0:1.4.16-10.el6\n  nagios-plugins-wave.x86_64 0:1.4.16-10.el6       net-snmp-utils.x86_64 1:5.5-49.el6\n  ntp.x86_64 0:4.2.6p5-1.el6.centos                ntpdate.x86_64 0:4.2.6p5-1.el6.centos\n  openssh-clients.x86_64 0:5.3p1-94.el6            qstat.x86_64 0:2.11-9.20080912svn311.el6\n  rpcbind.x86_64 0:0.2.0-11.el6                    samba-client.x86_64 0:3.6.9-167.el6_5\n  samba-common.x86_64 0:3.6.9-167.el6_5            samba-winbind.x86_64 0:3.6.9-167.el6_5\n  samba-winbind-clients.x86_64 0:3.6.9-167.el6_5\n\nComplete!\n<\/pre>\n<p>4. Make httpd and nagios software auto start at boot :<\/p>\n<pre>\n[root@centos6-05 ~]# chkconfig httpd on\n[root@centos6-05 ~]# chkconfig nagios on\n<\/pre>\n<p>5. Start httpd and nagios software :<\/p>\n<pre>\n[root@centos6-05 ~]# service httpd start\nStarting httpd:                                            [  OK  ]\n[root@centos6-05 ~]# service nagios start\nStarting nagios: done.\n<\/pre>\n<p>6. Set Nagios Admin Panel Password:<\/p>\n<pre>\n[root@centos6-05 ~]# htpasswd -c \/etc\/nagios\/passwd nagiosadmin\nNew password:\nRe-type new password:\nAdding password for user nagiosadmin\n<\/pre>\n<p>7. Navigate over to your IP address http:\/\/IPADDRESS\/nagios and login using above &#8220;nagiosadmin&#8221; > However, you still able to change \/etc\/nagios\/cgi.cfg and redefine authorized admin anytime later.<\/p>\n<pre>\n[root@centos6-05 ~]# vi \/etc\/nagios\/cgi.cfg\n<\/pre>\n<pre>\n..\n..\nauthorized_for_system_information=nagiosadmin\n..\n..\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Nagios is one of the alternate open source computer, network and infrastructure monitoring system that will help organizations to identify and resolve IT infrastructure problems before they affect critical business&#8230;<\/p>\n","protected":false},"author":6,"featured_media":4828,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[1],"tags":[1256,1591],"class_list":["post-4827","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-centos-6-5","tag-nagios"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/4827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=4827"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/4827\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/4828"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=4827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=4827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=4827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}