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

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


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.

vi /etc/nagios/namran/wwwnamran.cfg

add the content such as below

define host{
use linux-server
define service{
use generic-service
service_description PING
check_command check_ping!100.0,20%!500.0,60%
define service{
use generic-service
service_description HTTP
check_command check_http
notifications_enabled 0
define service{
use generic-service
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


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.


Related Post

2 Responses

  1. jebat says:

    bro macam mana nak setting utk ipv4 untuk connect ke unifi.

  2. wahid110 says:

    well, I ‘m a newbie to ipv6(and many other things).
    I’m a unifi subscriber VIP5.
    I’d like to set up a home network comprising a laptop and a pc, to be able to ping each other and outside world using IPv6.
    At the first step, I want to be able to ping
    currenly I’m running ubuntu on my laptop.
    I followed your instruction to register with and got the same script. however I don’t know what you mean by copy& pasting it into “your router box”? can you help me? Thanx


Anything to add?