Step by Step Nagios Installation on SERVER

download Step by Step Nagios Installation on SERVER

of 4

Transcript of Step by Step Nagios Installation on SERVER

  • 8/12/2019 Step by Step Nagios Installation on SERVER

    1/4

    Step by Step Nagios Installation on SERVER

    Instructions for Installing Nagios 2.5

    Pre-Requisites:

    If you are installing Nagios on CentOS, ensure that the following ac!ages are installe"#efore you rocee" for Nagios 2.5 installation:

    o gcc-$.%.&-'.i'().r*o gcc-c++-$.%.&-'.i'().r*

    o g"-"eel-2.&.''-).2.i'().r*

    o g"-2.&.''-).2.i'().r*o g"#-).'.&.&-%.%22.i'().r*

    o g"#*-%.(.&-2).2.i'().r*

    o gettet-&.%$.5-'.i'().r*o li#gcc-$.%.&-'.i'().r*

    o li#eg-)#-').2.%.i'().r*o li#eg-"eel-)#-').2.%.i'().r*

    o li#ng-2:%.2.(-2.2.%.i'().r*o li#ng-"eel-2:%.2.(-2.2.%.i'().r*

    o erl-/ate0ani-5.$$-%.2.noarch.r*

    Installation Proce"ure:

    %. /ownloa" nagios-2.5.tar.g12. /ownloa" nagios-lugins-%.$.'.tar.g1

    '. oto 3

    $. *!"ir 3usr3src3nagios-install5. * nagios-lugins-%.$.'.tar.g1 an" nagios-2.5.tar.g1 3usr3src3nagios-install). oto c" 3usr3src3nagios-install

    4. Run tar 1f nagios-2.5.tar.g1

    (. Run tar 1f nagios-lugins-%.$.'.tar.g1. Run usera"" nagios

    %&. Run groua"" nagios

    %%. oto 3%2. *!"ir 3usr3local3nagios

    %'. *!"ir 3ho*e3nagios

    %$. Run chown nagios.nagios 3usr3local3nagios

    %5. oto 3%). Run groua"" nagc*"

    %4. 3usr3s#in3user*o" - nagc*" aache

    %(. 3usr3s#in3user*o" - nagc*" nagios%. oto 3usr3src3nagios-install3nagios-2.53

    2&. Run .3configure --refi63usr3local3nagios --with-cgiurl63nagios3cgi-#in --with-

    ht*url63nagios --with-nagios-user6nagios --with-nagios-grou6nagios --with-co**an"-grou6nagc*"

    777Correction *ost of those switches are the "efaults an" are not nee"e". 8his woul"

    suffice: Run .3configure --with-co**an"-grou6nagc*"

  • 8/12/2019 Step by Step Nagios Installation on SERVER

    2/4

    Note - 8o get Ste 2& to wor!, you will nee" hae all the a#oe re-requisites installe"

    2%. Run *a!e all22. Run *a!e install

    2'. Run *a!e install-init

    2$. Run *a!e install-co**an"*o"e25. Run *a!e install-config

    2). oto 3

    24. oto 3usr3local3nagios2(. Run *!"ir li#eec

    Note - the following is for installing the stan"ar" Nagios Plug-Ins

    2. oto 3

    '&. oto 3usr3src3nagios-install3nagios-lugins-%.$.'3

    '%. Run .3configure --refi63usr3local3nagios --with-nagios-user6nagios --with-nagios-

    grou6nagc*" --with-cgiurl63nagios3cgi-#in77Correction *ost are the "efaults an" are not nee"e" an" this otion was not correct 9--

    with-nagios-grou6nagc*"9 since you co*ile" nagios with the grou na*e" nagios..8his woul" suffice: Run .3configure

    '2. Run *a!e''. Run *a!e install

    '$. oto 3etc3htt"3conf3

    '5. Run i* htt".conf or e"it htt".conf using tet e"itor

    '). Insert the following

    Scritlias 3nagios3cgi-#in3 93usr3local3nagios3s#in39

    ;/irectory 93usr3local3nagios3s#in39asic

    uth?ser@ile 3usr3local3nagios3etc3htassw".users

    Require ali"-user

  • 8/12/2019 Step by Step Nagios Installation on SERVER

    3/4

    ;3/irectory