Install nagios or nagios server on Centos 6.3 Redhat RHEL Fedora 17-18

Howto Install nagios or nagios server on Centos 6.3 Redhat RHEL Fedora 17-18

1. Install epel repository on Centos Redhat RHEL

x64: http://ithelpblog.com/os/linux/redhat/centos-redhat/install-epel-repository-on-centos-6-3-x86_64-or-redhat-6-3/

i386: http://ithelpblog.com/os/linux/redhat/centos-redhat/install-epel-repository-on-centos-6-3-or-redhat-6-3-rhel/

2. Install nagios or nagios Server by yum command

[root@localhost ~]# yum install nagios
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
epel/metalink | 4.2 kB 00:00
* base: centos-hcm.viettelidc.com.vn
* epel: mirror-fpt-telecom.fpt.net
* extras: centos-hcm.viettelidc.com.vn
* rpmforge: mirror.oscc.org.my
* updates: ossm.utm.my
base | 3.7 kB 00:00
epel | 4.3 kB 00:00
epel/primary_db | 5.0 MB 00:03
extras | 3.5 kB 00:00
rpmforge | 1.9 kB 00:00
updates | 3.5 kB 00:00
updates/primary_db | 4.7 MB 01:37
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package nagios.x86_64 0:3.4.4-1.el6 will be installed
–> Processing Dependency: user(nagios) for package: nagios-3.4.4-1.el6.x86_64
–> Processing Dependency: user(nagios) for package: nagios-3.4.4-1.el6.x86_64
–> Processing Dependency: nagios-common for package: nagios-3.4.4-1.el6.x86_64
–> Processing Dependency: group(nagios) for package: nagios-3.4.4-1.el6.x86_64
–> Processing Dependency: group(nagios) for package: nagios-3.4.4-1.el6.x86_64
–> Processing Dependency: libgd.so.2()(64bit) for package: nagios-3.4.4-1.el6.x86_64
–> Running transaction check
—> Package gd.x86_64 0:2.0.35-10.el6 will be installed
—> Package nagios-common.x86_64 0:3.4.4-1.el6 will be installed
–> Finished Dependency ResolutionDependencies Resolved=====================================================================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================================================================
Installing:
nagios x86_64 3.4.4-1.el6 epel 1.2 M
Installing for dependencies:
gd x86_64 2.0.35-10.el6 base 142 k
nagios-common x86_64 3.4.4-1.el6 epel 16 k

Transaction Summary
=====================================================================================================================================================================================================
Install 3 Package(s)

Total download size: 1.3 M
Installed size: 5.9 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): gd-2.0.35-10.el6.x86_64.rpm | 142 kB 00:00
(2/3): nagios-3.4.4-1.el6.x86_64.rpm | 1.2 MB 00:00
(3/3): nagios-common-3.4.4-1.el6.x86_64.rpm | 16 kB 00:00
—————————————————————————————————————————————————————————————————–
Total 898 kB/s | 1.3 MB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : nagios-common-3.4.4-1.el6.x86_64 1/3
Installing : gd-2.0.35-10.el6.x86_64 2/3
Installing : nagios-3.4.4-1.el6.x86_64 3/3
Verifying : nagios-3.4.4-1.el6.x86_64 1/3
Verifying : gd-2.0.35-10.el6.x86_64 2/3
Verifying : nagios-common-3.4.4-1.el6.x86_64 3/3

Installed:
nagios.x86_64 0:3.4.4-1.el6

Dependency Installed:
gd.x86_64 0:2.0.35-10.el6 nagios-common.x86_64 0:3.4.4-1.el6

Complete!
[root@localhost ~]#

3. Start nagios Server

[root@localhost ~]# /etc/init.d/nagios start
Starting nagios: done.
[root@localhost ~]#

4. Access web interface

http://x.x.x.x/nagios

username: nagiosadmin

password: nagiosadmin

That’s all. Thanks for using IThelpblog.com.

 

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>