nagios服务配置
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-04-29
yum -y install httpd mysql-server php php-mysql 4526 useradd nagios 4527 groupadd nagcmd 4528 usermod -G nagcmd nagios 4529 usermod -G nagcmd apache 4525 tar -zxvf nagios-3.2.0.tar.gz 4530 cd nagios-3.2.0 运行Nagios配置脚本并使用先前开设的用户及用户组: ./configure --with-command-group=nagcmd configure: creating ./config.status config.status: creating Makefile config.status: creating subst config.status: creating pkginfo config.status: creating base/Makefile config.status: creating common/Makefile config.status: creating contrib/Makefile config.status: creating cgi/Makefile config.status: creating html/Makefile config.status: creating module/Makefile config.status: creating xdata/Makefile config.status: creating daemon-init config.status: creating t-tap/Makefile config.status: creating include/config.h config.status: creating include/snprintf.h config.status: creating include/cgiutils.h Creating sample config files in sample-config/ ... *** Configuration summary for nagios 3.2.0 08-12-2009 ***: General Options: ------------------------- Nagios executable: nagios Nagios user/group: nagios,nagios Command user/group: nagios,nagcmd 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. 编译Nagios程序包源码 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 *** Support Notes ******************************************* If you have questions about configuring or running Nagios, p |
|
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
上一篇: Linux双网卡绑定一个IP,实现容错或负载均衡。下一篇: linux 下挂载光驱
关于nagios服务配置的所有评论