Jumat, 22 Juni 2012

Instalasi NAGIOS v.3.2.3 di ClearOS 5.2 sp1


NAGIOS adalah :
1. Sebuah sistem dan aplikasi untuk memonitor jaringan.
2. Memantau host dan layanan yang Anda tetapkan, memperingatkan Anda bila ada sesuatu yang buruk dan memberitahu ketika keadaan
    jaringan yang dimonitoring menjadi lebih baik
3. Awalnya dirancang untuk berjalan pada Linux, meskipun harus bekerja di bawah paling beragam Unix yang lain.

Fitur-fitur yang ada di NAGIOS (Klo ada yg masih kurang atau salah mohon di koreksi) :
1. Pemantauan layanan jaringan (SMTP, POP3, HTTP, NNTP, PING, dll)
2. Monitoring sumber daya host (processor load, disk usage, dll)
3. Desain plugin sederhana yang memungkinkan pengguna untuk dengan mudah mengembangkan layanan mereka sendiri
4. Layanan cek yang paralel
5. Kontak pemberitahuan layanan atau host ketika masalah terjadi dan bisa diselesaikan (melalui email, pager, atau metode yang ditetapkan
    pengguna)
6. Kemampuan untuk menentukan event handler yang akan dijalankan saat perbaikan atau host acara untuk proaktif masalah resolusi
7. File log otomatis rotasi
8. Dukungan untuk melaksanakan pemantauan berlebihan host
9. Opsional web interface untuk melihat status jaringan saat ini, dll (tambahin sendiri klo msh ada  )

Langkah-langkah dalam instalasi :

1.  yum -y --enablerepo=rpmforge install httpd php gcc glibc glibc-common gd gd-devel
     Klo dah dijalanin ada pesen ky gini : "Error getting repository data for rpmforge, repository not found"
     Jangan takut itu jg yg w alamin pas eksekusi langkah yg pertamax

2.  Jalanin script yg ke 2 yaitu untuk versi x86 (32-bit) :
     rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
     untuk versi x64 (64-bit) :
     rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
   
3.  Klo dilangkah ke 2 gak da masalah lanjut ke step 3 yaitu proses instal NAGIOS scriptnya :
     yum -y --enablerepo=rpmforge install nagios nagios-plugins nagios-plugins-setuid

     Hasilnya klo di ClearOS punya w seperti ini :
     Retrieving http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
warning: /var/tmp/rpm-xfer.48XUX5: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing...                ########################################### [100%]
   1:rpmforge-release       ########################################### [100%]
[root@system nagios-3.2.0]# yum -y --enablerepo=rpmforge install nagios nagios-p                                                                                        lugins nagios-plugins-setuid
Loading "kmod" plugin
Loading "protect-packages" plugin
rpmforge                                                 | 1.1 kB     00:00
primary.xml.gz                                           | 4.0 MB     00:34
rpmforge  : ################################################## 10925/10925
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package nagios-plugins.i386 0:1.4.15-2.el5.rf set to be updated
--> Processing Dependency: fping for package: nagios-plugins
--> Processing Dependency: perl(Net::SNMP) for package: nagios-plugins
---> Package nagios.i386 0:3.2.3-3.el5.rf set to be updated
---> Package nagios-plugins-setuid.i386 0:1.4.15-2.el5.rf set to be updated
--> Running transaction check
---> Package perl-Net-SNMP.noarch 0:5.2.0-1.2.el5.rf set to be updated
--> Processing Dependency: perl(Crypt::DES) for package: perl-Net-SNMP
---> Package fping.i386 0:2.4-1.b2.3.el5.rf set to be updated
--> Running transaction check
---> Package perl-Crypt-DES.i386 0:2.05-3.2.el5.rf set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 nagios                  i386       3.2.3-3.el5.rf   rpmforge          3.7 M
 nagios-plugins          i386       1.4.15-2.el5.rf  rpmforge          1.6 M
 nagios-plugins-setuid   i386       1.4.15-2.el5.rf  rpmforge          122 k
Installing for dependencies:
 fping                   i386       2.4-1.b2.3.el5.rf  rpmforge           40 k
 perl-Crypt-DES          i386       2.05-3.2.el5.rf  rpmforge           37 k
 perl-Net-SNMP           noarch     5.2.0-1.2.el5.rf  rpmforge           96 k

Transaction Summary
=============================================================================
Install      6 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 5.6 M
Downloading Packages:
(1/6): perl-Net-SNMP-5.2.0-1.2.el5.rf.noarch.rpm         |  96 kB     00:01
(2/6): nagios-plugins-1.4.15-2.el5.rf.i386.rpm           | 1.6 MB     00:13
(3/6): fping-2.4-1.b2.3.el5.rf.i386.rpm                  |  40 kB     00:01
(4/6): nagios-3.2.3-3.el5.rf.i386.rpm                    | 3.7 MB     00:31
(5/6): nagios-plugins-setuid-1.4.15-2.el5.rf.i386.rpm    | 122 kB     00:00
(6/6): perl-Crypt-DES-2.05-3.2.el5.rf.i386.rpm           |  37 kB     00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: fping                        ######################### [1/6]
  Installing: perl-Crypt-DES               ######################### [2/6]
  Installing: nagios                       ######################### [3/6]
  Installing: nagios-plugins-setuid        ######################### [4/6]
  Installing: perl-Net-SNMP                ######################### [5/6]
  Installing: nagios-plugins               ######################### [6/6]

Installed: nagios.i386 0:3.2.3-3.el5.rf nagios-plugins.i386 0:1.4.15-2.el5.rf nagios-plugins-setuid.i386 0:1.4.15-2.el5.rf
Dependency Installed: fping.i386 0:2.4-1.b2.3.el5.rf perl-Crypt-DES.i386 0:2.05-3.2.el5.rf perl-Net-SNMP.noarch 0:5.2.0-1.2.el5.rf
Complete!
Klo dah komplit trus gak ada error maka lanjut ke step selanjutnya.

4.    Selamat ClearOS Anda sudah terinstal NAGIOS  sekarang tinggal membuat user ma passwordnya caranya :
     Jalankan script ini
    htpasswd -c /etc/nagios/htpasswd.users nagiosadmin --> INI BWAT USERNAME
     truuus..... nanti hasilnya keluar
    New password: --> KETIK USERNAME
       Re-type new password: --> VERIFIKASI USERNAME
       Adding password for user nagiosadmin

5.  Truus kita verifikasi default config-nya dengan cara :
     nagios -v /etc/nagios/nagios.cfg

      Klo output di ClearOS w ky gini :
     

[root@system nagios-3.2.0]# nagios -v /etc/nagios/nagios.cfg

Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL

Website: http://www.nagios.org
Reading configuration data...
   Read main config file okay...
Processing object config file '/etc/nagios/objects/commands.cfg'...
Processing object config file '/etc/nagios/objects/contacts.cfg'...
Processing object config file '/etc/nagios/objects/timeperiods.cfg'...
Processing object config file '/etc/nagios/objects/templates.cfg'...
Processing object config file '/etc/nagios/objects/localhost.cfg'...
   Read object config files okay...

Running pre-flight check on configuration data...

Checking services...
        Checked 8 services.
Checking hosts...
        Checked 1 hosts.
Checking host groups...
        Checked 1 host groups.
Checking service groups...
        Checked 0 service groups.
Checking contacts...
        Checked 1 contacts.
Checking contact groups...
        Checked 1 contact groups.
Checking service escalations...
        Checked 0 service escalations.
Checking service dependencies...
        Checked 0 service dependencies.
Checking host escalations...
        Checked 0 host escalations.
Checking host dependencies...
        Checked 0 host dependencies.
Checking commands...
        Checked 24 commands.
Checking time periods...
        Checked 5 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check


6.  Selanjutnya kita setting service NAGIOS biar otomatis running tiap kali ClearOS booting.....
     Scriptnya : chkconfig nagios on
     klo di step ini ada pesen error caranya coba "Pastikan hak akses dari folder nagios 755"

7.  Jalanin deh servicenya pake : /etc/init.d/nagios start
   
     Hasil di ClearOS w ky gini :
     nagios is stopped
     Starting nagios:                                           [  OK  ]

8.  Dah slesai kah ? SABAAR......., kita masih harus restart Apache server dolo caranya :
     /etc/init.d/httpd restart

     Hasil di ClearOS w ky gini :
     Stopping httpd:                                            [  OK  ]
     Starting httpd:                                            [  OK  ]

9.  Kelar deeh instalasi NAGIOS-nya tinggal kita cek melalui browser dengan cara (contoh : https://192.168.88.1/nagios atau bisa jg nembak  
     nama servernya ky ClearOS gw https://clearos/nagios)

10.Klo dah muncul halaman login maka :     (Ilmu dan ClearOS Anda telah bertambah maju)

     Klo masih ada yg bingung, yuuk kita bahas bareng-bareng di forum kesayangan kita ini OK !


Sumber :
http://tundra.web.id/archives/910#codesyntax_1
http://www.ehowstuff.com/how-to-install-nagios-on-centos-5-5/

Tidak ada komentar:

Posting Komentar