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

Get Free Email Updates!

Signup now and receive an email once I publish new content.

I will never give away, trade or sell your email address. You can unsubscribe at any time.

Like

Related Post

4 Responses

  1. Pingback: Jamshed Maynard
  2. Pingback: Jamshed Maynard
  3. autodesk seeking alpha says:

    Hello! I simply wish to give a huge thumbs up for the great
    data you will have right here on this post. I will be coming again to your weblog for more soon.

    Reply
  4. autodesk seeking alpha says:

    Hello! I simply wish to give a huge thumbs up for the great
    data you will have right here on this post. I will be coming again to your weblog for more soon.

    Reply

Anything to add?

X