Install Nagios 3.3.1 in centos 6.x
3 月 19
Nagios.cmd的報錯處理
http://renren.it/a/caozuoxitong/OS/20111024/135547.html
REF:
http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html
相關參考:
http://xfalcons.blogspot.com/2011/03/nagios-ndo2db-cacti-npc.html
http://tonykorn97.itpub.net/post/6414/306212
http://goodfifagun.pixnet.net/blog/post/20470542-mrtg%E3%80%81cacti%E3%80%81nagios
0. add a news user (不然會無法過 make install)
useradd nagios -m
1. wget http://downloads.sourceforge.net/project/nagios/nagios-3.x/nagios-3.3.1/nagios-3.3.1.tar.gz?r=http%3A%2F%2Fwww.nagios.org%2Fdownload%2Fcore%2Fthanks%2F&ts=1331888599&use_mirror=nchc
2. ./configure
*** Configuration summary for nagios 3.3.1 07-25-2011 ***: General Options: ------------------------- Nagios executable: nagios Nagios user/group: nagios,nagios Command user/group: nagios,nagios Embedded Perl: no Event Broker: yes Install ${prefix}: /usr/local/nagios Lock file: ${prefix}/var/nagios.lock Check result directory: ${prefix}/var/spool/checkresults Init directory: /etc/rc.d/init.d Apache conf.d directory: /etc/httpd/conf.d Mail program: /bin/mail Host OS: linux-gnu Web Interface Options: ------------------------ HTML URL: http://localhost/nagios/ CGI URL: http://localhost/nagios/cgi-bin/ Traceroute (used by WAP): /bin/traceroute Review the options above for accuracy. If they look okay, type 'make all' to compile the main program and CGIs.
3. make all
*** Compile finished *** If the main program and CGIs compiled without any errors, you can continue with installing Nagios as follows (type 'make' without any arguments for a list of all possible options): make install - This installs the main program, CGIs, and HTML files make install-init - This installs the init script in /etc/rc.d/init.d make install-commandmode - This installs and configures permissions on the directory for holding the external command file make install-config - This installs *SAMPLE* config files in /usr/local/nagios/etc You'll have to modify these sample files before you can use Nagios. Read the HTML documentation for more info on doing this. Pay particular attention to the docs on object configuration files, as they determine what/how things get monitored! make install-webconf - This installs the Apache config file for the Nagios web interface make install-exfoliation - This installs the Exfoliation theme for the Nagios web interface make install-classicui - This installs the classic theme for the Nagios web interface *** Support Notes ******************************************* If you have questions about configuring or running Nagios, please make sure that you: - Look at the sample config files - Read the documentation on the Nagios Library at: http://library.nagios.com before you post a question to one of the mailing lists. Also make sure to include pertinent information that could help others help you. This might include: - What version of Nagios you are using - What version of the plugins you are using - Relevant snippets from your config files - Relevant error messages from the Nagios log file For more information on obtaining support for Nagios, visit: http://support.nagios.com ************************************************************* Enjoy.
4. make install
*** Main program, CGIs and HTML files installed *** You can continue with installing Nagios as follows (type 'make' without any arguments for a list of all possible options): make install-init - This installs the init script in /etc/rc.d/init.d make install-commandmode - This installs and configures permissions on the directory for holding the external command file make install-config - This installs sample config files in /usr/local/nagios/etc make[1]: Leaving directory `/root/nagios'
5. wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.15.tar.gz
6. tar zxvf nagios-plugins-1.4.15.tar.gz
7. ./configure ; make all ; make install
8. cd /usr/local/nagios
9. mkdir etc ; cp -aR /nagios-sorce-dir/sample-config/ /usr/local/nagios/etc
10. wget http://assets.nagios.com/downloads/exchange/nagiosvshell/vshell.tar.gz
11. tar zxvf vshell.tar.gz
12.