个人工具
登录
查看“UbuntuHelp:Nagios2”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:Nagios2”的源代码
来自Ubuntu中文
←
UbuntuHelp:Nagios2
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/Nagios2}} {{Languages|php5}} This page describes how to install and configure Nagios2 on Edgy Eft. To my knowledge, Nagios2 is not in the Dapper Drake repositories. Since Monitoring should be carried out by a separate host, it should not be a hardship to use Edgy, even if all your other servers run Dapper. Your situation may be different. The information in this guide '''might''' be useful for a Dapper configuration. == Introduction == Nagios is an open source host, service and network monitoring program. The official homepage is http://nagios.org/ == Installation == Nagios is in the Universe repository. To install: <pre><nowiki> sudo apt-get install nagios2 nagios-plugins nagios-images </nowiki></code> == Initial Configuration == This is the basic configuration to get Nagios2 running before you add your site specific tests. ** Setup htpasswd file for web access The configuration for authentication is in /etc/nagios2/apache2.conf. The default htpasswd file is /etc/nagios2/htpasswd.users, which does '''not''' exist upon installation. <pre><nowiki> cd /etc/nagios2/ sudo htpasswd -c htpasswd.users nagiosadmin </nowiki></code> ** If you want to use something other then nagiosadmin as your user, that is fine, just make the necessary adjustments to /etc/nagios2/cgi.cfg. Wherever it says nagiosadmin change it. That's all to get it running! Navigate to http://nagios_server/nagios2 and log in to see your systems monitor. By default it monitors the machine it runs on and it's gateway to the Internet. == Further Configuration == ** Add a custom directory for your *.cfg files <pre><nowiki> sudo mkdir /etc/nagios2/mysite </nowiki></code> ** Tell nagios where to look for your *.cfg files. Add the following to /etc/nagios2/nagios.cfg, near the similar options: <pre><nowiki> cfg_dir=/etc/nagios2/mysite </nowiki></code> I have included below a sample config file which you would put in your mysite directory. I don't know if this is the best way, but this is how I finally got up and going. <pre><nowiki> define host{ host_name myotherhost alias My Other Host address 192.168.1.101 parents localhost use generic-host } define service{ host_name myotherhost service_description PING check_command check_ping!100.0,20%!500.0,60% use generic-service } </nowiki></code> For more information, refer to http://localhost/nagios2/docs/xodtemplate.html ---- CategoryDocumentation [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:Nagios2
。