~NMS with Nagios 3.0~ on CentOS 5.2! -pt1

Tuesday, October 13, 2009

Part 1-Installation.
Okay, here i post a tutorial on how to install this. software requirement are as follows : -CentOS 5.2 (linux base operating system)
-stable internet connection to install nagios & centOS plug-ins.

How to install CentOS 5.2?
-go to this url: http://www.howtoforge.com/perfect-server-centos-5.2-ispconfig-3
(i prefer to boot dual OS [wixdows xp+linux] - put your linux onthe other partition).
-burn iso image into a dvd n bootform dvd. iso image are available here [url]: http://isoredirect.centos.org/centos/5/isos/i386/


Installation of Nagios 3.0

Installyumplug-ins & yumex. Install some recommended packages to prevent problems with packages (broken/3rd party) and kernel-modules (root privileges needed):

type this to become root admin then type this command to install yum plug-in:

su -l

yum install yumex yum-fastestmirror yum-skip-broken yum-kmod yum-kernel-module yum-priorities.


RPMforge

The RPMforge-repository provides many packages like multimedia applications and drivers. Install the repository:

rpm -ivh http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

wget -c http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

rpm -Uvh oscc-repos2-0.0.1-1.noarch.rpm

Nagios installation command

These are the command that need to be execute at the linux terminal and need to be compile to setting up the system from start. Execution is a must or the system will not appear in the web browser.

echo “***** Starting Nagios Quick-Install: ” `date`

echo “***** Installing pre-requisites”

echo “***** Installing WGET so we could download the packages that we need”

yum -y install wget

echo “***** WGET has been installed”

# Installing Packages For Centos echo “***** Installing very Important packages otherwise out Nagios wont work”

yum -y install make make autoconf httpd php-snmp.i386 php-pear.noarch php-pear-File.noarch php-rrdtool.i386 php-xml.i386 php-mcrypt.i386 php-mysql.i386 php-ncurses.i386 php-devel.i386 php-gd.i386 php-jpgraph.noarch php-common

yum -y install gcc g++ flex byacc

yum -y install glibc glibc-common

yum -y install gd gd-devel

yum -y install perl

# Adding user nagios

echo “***** Setting up the environment”

useradd -m nagios echo “YOUR_DESIRED_PASSWORD”

passwd --stdin nagios groupadd nagcmd

usermod -a -G nagcmd nagios

usermod -a -G nagcmd apache

# Getting Nagios Source Tarball with Plugins

echo “***** Getting the Nagios Source and Plug-Ins”

cd /usr/local/src

wget http://osdn.dl.sourceforge.net/sourceforge/nagios/nagios-3.0.6.tar.gz

wget http://osdn.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.13.tar.gz

tar xzf nagios-3.0.6.tar.gz

tar xzf nagios-plugins-1.4.13.tar.gz

# Compiling and Nagios Installation echo “***** Installing Nagios”

cd /usr/local/src/nagios-3.0.6

./configure --with-command-group=nagcmd

make all

make install

make install-init

make install-config

make install-commandmode

make install-webconf

# Setting up Password for Web authentification

echo “***** Setting up htpasswd auth”

htpasswd -nb nagiosadmin yourpassword > /usr/local/nagios/etc/htpasswd.users

service httpd restart

# Installing Nagios Plugins if fail do make clean

echo “***** Setting up Nagios Plug-Ins”

cd /usr/local/src/nagios-plugins-1.4.13

./configure --with-nagios-user=nagios --with-nagios-group=nagios

make

make install

# Seting up SELinux

echo “***** Fixing SELinux”

chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/

chcon -R -t httpd_sys_content_t /usr/local/nagios/share/

echo “***** Starting Nagios”

This command should be apply every times after your computer has been reboot or the system could not be opened.

chkconfig --add nagios

chkconfig nagios on

service nagios start

service iptables stop

Nagios web browser:

Open this url to view your system. You will see this interface on the first page you open.

http://localhost/nagios

u should see the page up there.


then do the configuration on the hosts.cfg file to monitor your switch/router/server and etc. After some configuration, u could do this and view this.











Thats all for now.
to be continued in part 2.
the configuration part.

++ coming SOON ++

Wednesday, June 17, 2009

Maaf..kerana menghilang selama 2 bulan lebih
tidak update blog..
saya sedang menjalani
latihan industri selama 10 minggu di
MARDI UPM Serdang...
Di Bahagian Pengurusan Sumber Maklumat
(Information Technology)


insya-allah,,
banyak perkara baru dan menarik yang saya belajar di sana..
jika tiada apa-apa halangan dan masa..
saya akan post beberapa tutorial mudah
tentang network yang saya pelajari sepanjang latihan industri selama 2 bulan di sana.


nantikan.. ^^,

+sHoT mE in da hEad!+

Sunday, April 19, 2009

After 7 Days n 7 Nights of suffer,

nites tat fuLL of Cafein in da brain,

sLeepless in da vinci code dream,

deadlock cracking head of 'goreng2' esay,

bit-by-bit datagram transfering
excluding error detection,

d last 30 minutes 'hanyu pinyin' installation
through eyes-ray to d hang-brain,


I'm DONE!!
blogger-emoticon.blogspot.com

the Last fInaLe pApeR has beeN

SHOT!!

it's tyme too???

blogger-emoticon.blogspot.comE.N.J.O.Y!!blogger-emoticon.blogspot.com
n go homee~

Genting!! ere I comee!!~blogger-emoticon.blogspot.com

--drive thru finaLe exAm--

Wednesday, April 15, 2009

blogger-emoticon.blogspot.comblogger-emoticon.blogspot.comblogger-emoticon.blogspot.comblogger-emoticon.blogspot.comblogger-emoticon.blogspot.com

int void main(){

char Network Programming;
char Network Analysis and Design;
char Operating System;
char Internetworkin;
char Bahasa Mandarin I;

int 13/4 , 14/4, 16/4, 18/4, 19/4;

if(i=0; i<5;i++){

printf("xde study week...trus exam\n");
}
else {

default;

bzero(buffer pale pun xsempat);
send(study la ape2 yg termampu slagi ade mase);
recv(study smart);

printf("Kalu xtaw jwpn..tanye je lecturer.. plg kurg pn de geleng je.. tp kalu dpt jwpn lg la bes");
printf(" GUDD LUCKK SUME!!! ALL DA BESHH!~");

exit(0);

close()
}

blogger-emoticon.blogspot.comblogger-emoticon.blogspot.com -- g33k-ing me myself while study OS--
p/s: TIPS internetworking go to this website--> http://skr3201.blogspot.com/
p/s^2: Hafal2 la ye.. sape ade past year mandrin n os n internetworking?? msg me k or ym.

**in memory april 2009**

tibe-tibe..
hati rasa sayu..
macam mane nak hadapi sem depan...
tanpa... mereka..
kakak-kakak seniorku..
roomate kesayangan aku..
tanpa mereka di blok ni...
aku betul2 akan rasa kesunyian...
sape nak jage aku lps ni..
sape nak bwk aku kuar mkn2 kat tmpt2 yg ak xpernah pegi...
sape nak pakse2 suh aku mkn ubat.. bile aku sakit..
sape nak jadi pakar runding imej aku tuk event2 nnt..
sape nak dengar luahan hati aku lg nnt..
tempat aku mengadu..
huhu..
diorang akan grad..
dan kite da xjumpe lg da lps ni..
xdapat dah enjoy2 lg da pasni..
*i have nobody nobody but u~* -lagu wondergirls(korea) fav. rum8 ak-
hah! lg satu...
sape je lagi nak download cte ngn lgu korea byk2 smpai aku naek tepu ari2 dgr kat bilek ni..
aku tukang tengok bley la..huhu...
aku akan merindui korg~
kebisingan korang~
aku masih lagi disini... meneruskan kehidupan..
cumanya.. tanpa kamu~

+remains in my heart+
munchy(roomate), kak nad, kak nita, kak anim, kak hajah...


blogger-emoticon.blogspot.comblogger-emoticon.blogspot.comblogger-emoticon.blogspot.comblogger-emoticon.blogspot.com

+jarum vs baju+

Tuesday, March 17, 2009

Minggu ni..
aku kena kena kena jugak balik umah~
tapi minggu ni jugak..
ade ade ade PENITI~
minggu ni jugak...
test 2 aku berderet2 tanpa henti...
kena anta assignment...
tempat l.i yg xbape confirm...
aaaa.....
serabutnye..
mmg la aku nak balik umah..
tp mungkin bkn waktu ni masenye yg sesuai..
tp..atas permintaan ibu terchenta..
kena la diutamakan..
yang laen... sowy la ye..
sowy sgt2 kat big bosh ak..
tak berniat tuk lari atau ape2 pn...
sbb my mumy xpenah2 pn de suh jugak balik smpai cmni..
slalu de memahami je kalu ak ckp ak ade keje...
kali ni..aku turutkan saje permintaan itu...
mungkin tyme cuti sekolah...
dia lebih memerlukan aku...
miss my mama!!
-sowy juge 4 mama sbb lame xbalek~-
hu-huw~~

+sHarinG is LeArning+

Juz nak kongsi ngn korang web2 yang aku slalu n bru je jenguk2 baru2 ni~ okkay~

web tuk belajar html,php,css,TCP/IP..n segala yang berkaitan ngan web developing>>
http://w3school.com

web tuk download software>>
www.download.com

web mesengger (bru je try~ dipromot oleh ash..Buzz de agak bes la kut..hehe;p)
www.ebuddy.com

top ranking univercity on world: dimana kita??
http://www.topuniversities.com/

layan cite korea n jepun n oso anime (drama or movie)
www.mysoju.com
dramacrazy.net
animecrazy.net
bleachget.com << **like this!!** bleach anime fan~


byk lg sbenanye..
yg laen2..akan diupdate nnt
~ yep!
mgkin ak ptut wat review??