Installing Nagios 3 in CentOS 5.2

Nagios is one of the powerful network device monitoring and visualization..

I did bump on this software few year back.. but never got chance to play with it.
just saw someone else using it at that moment..

let’s give a try.. with rpmforge yum repo enabled ..

yum search nagios

wow.. someone else already made it before..

yum install nagios nagios-plugins nagios-plugins-nrpe nagios-devel -y

nagios
Hmmm.. re-configure and set password file.

vi /etc/nagios/cgi.cfg
htpasswd -c /etc/nagios/htpasswd.users nagiosadmin

start the daemon & restart HTTPd

service nagios restart
service httpd restart

then use http://localhost/nagios
enter the password..

should be able to see localhost service being monitor and all..
to add few other thing..

I love to define the folder into /etc/nagios/nagios.cfg
add this line

cfg_dir=/etc/nagios/namran

then create a directory and set permission accordingly.

mkdir /etc/nagios/namran
chown nagios:nagios /etc/nagios/namran

then create the config file to be added.
[ad#postad]

vi /etc/nagios/namran/wwwnamran.cfg

add the content such as below

define host{
use linux-server
host_name www.namran.net
alias www.namran.net
address 210.48.152.20
}
define service{
use generic-service
host_name www.namran.net
service_description PING
check_command check_ping!100.0,20%!500.0,60%
}
define service{
use generic-service
host_name www.namran.net
service_description HTTP
check_command check_http
notifications_enabled 0
}
define service{
use generic-service
host_name www.namran.net
service_description Cpanel
check_command check_tcp!2082!
notifications_enabled 0
}

chown nagios:nagios /etc/nagios/namran/*.cfg

restart the nagios service

service nagios restart

repeat that with next few server and service that you might want to monitor..

and the result is such as below.. and few other..

Tactical overview
Tactical overview

[ad#postad]
host-detail

nagios-gridnagios-screen

Related Post

10 Responses

  1. ahstod says:

    Let’s see how long that WEBSITE WITH XMLTV FILES for MALAYSIA’s ASTRO THAT CAN BE USED ON MYTHTV lasts … 😎

    Reply
  2. ahstod says:

    you can also use tv_cat to concatenate multiple xmltv files into one, and pass it to mythfilldatabase in one go.

    Got a few other useful tv_* utilities, e.g. tv_to_text.

    Reply
  3. cheap viagra online says:

    Having good content can only get you so far unless you also provide a good atmosphere to comment in

    Reply
  4. Necklaces says:

    I write a music blog for my audience research class. I’m new to blogging and I want them to be good! So any advice you guys could give me would be great

    Reply
  5. namran says:

    oh.. haven’t done exploring all the utilities
    that come with the myth app..

    hehe..

    google still working even while i was away.. 😎

    Reply
  6. Debt Settlement Program says:

    complex post. upright one detail where I contest with it. I am emailing you in detail.

    Reply
  7. chaggylooga says:

    Guys…. if you look at the Astro website (http://www.astro.com.my) they now publish their complete tv listings (albeit channel by channel) in XML / RSS format. For example TV1 is at http://www.astro.com.my/channels/rtm1/ with the RSS feed being at http://www.astro.com.my/rss/channels.asp?sid=M038. Although I am not as technical as many on this forum, surely this must make life easier?

    Chaggy

    Reply
  8. ahstod says:

    Great idea chaggy!

    I wrote a script to convert the RSS feed(s) on astro’s website into XMLTV for mythtv:

    http://dev.abubakar.net/astro2xmltv/

    If anyone tries it, let me know how it works. Instructions are at the top of the script.

    Reply
  9. dotsha says:

    Astro stopped their RSS feeds some months ago. I wrote yet-another script based on the EPG as of January 2011.

    http://home.abubakar.net/pubdocs/ under astro_xmltv.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *