不要作为根用户运行Nagios。
现在,让我们了解一下Nagios。
Nagios (tested with version 3.0.6).
Nagios(测试了3.0.6版本)。
Nagios-plugins (tested with version 1.4.13)
Nagios-plugins(测试了1.4.13版本)
Finally, if there are no errors, start Nagios.
最后,如果没有错误,启动Nagios。
Nagios has a built-in notification system.
Nagios内置了一个通知系统。
Next, verify the sample Nagios configuration files.
接下来,验证示例Nagios配置文件。
You can download the source from the Nagios site.
可以从Nagios站点下载源代码。
You'll want to begin in Nagios by creating an account.
创建一个帐号开始Nagios。
Nagios offers pager and E-mail notifications by default.
在缺省情况下,Nagios提供了寻呼机和电子邮件通知方式。
Installing and configuring a basic Nagios setup for alerts.
安装和配置基本Nagios设置以执行报警。
Then, compile the Nagios source code, as shown in Listing 5.
然后,编译nagios源代码,如清单5所示。
With Nagios there are many ways to accomplish a single task.
使用 Nagios 时,可以使用多种方式完成一个任务。
Another Nagios feature worth your attention is the passive check.
Nagios的另一个值得关注的特性是被动检查。
After restarting Nagios, the service shows up under localhost.
重启Nagios之后,将在localhost下显示该服务。
When you restart Nagios, you now can do alerts on Ganglia metrics!
重启Nagios 时,现在可以根据Ganglia 指标发出警告!
Navigate to the Nagios Web site and download Nagios from this site.
导航到NagiosWeb站点并从该站点下载Nagios。
Then, extract the Nagios source code tarball, as shown in Listing 4.
然后,解压缩nagios源代码tarball,如清单4所示。
We'll document implementation of a Nagios passive check in a future article.
我们将在后续的文章中说明Nagios被动检查的实现。
I need to tell Nagios that my configuration files are going to go in there.
我需要通知Nagios我的配置文件将放在哪里。
Now, you need to register this command so that Nagios knows how to invoke it.
现在,您需要注册这个命令,以便 Nagios知道如何调用它。
Storing information from Nagios in a database will allow for quicker retrieval.
将来自nagios的信息存储到数据库能加快检索速度。
Run the Nagios configure script next, passing the name of the group you created.
接下来运行Nagios配置脚本,传递创建的组名。
Add both the nagios user and the apache user to this group, as shown in Listing 2.
向此组添加nagios用户和apache用户,如清单2所示。
When finished, you restart Nagios and you can see that I can now view my switch entries.
完成后,重启nagios,您会发现现在我可以查看交换机了。
The final step of Nagios configuration is definition of services for the configured hosts.
Nagios配置的最后一步是为配置的主机定义服务。
While running naginstall.sh, you are prompted for the user that Nagios should send alerts to.
运行naginstall . sh时,提示Nagios应该发送警告的用户。
Create the /usr/local/nagios/etc/dallas/ganglia-services.cfg file and add the services to it
创建 /usr/local/nagios/etc/dallas/ganglia-services.cfg文件并添加服务
This is useful for processing security alerts as well as redundant and distributed Nagios setups.
这对于处理安全性警告以及冗余和分布式Nagios 设置都很有用。
You will need to modify sample scripts in the eventhandlers subdirectory of the Nagios distribution.
您需要修改Nagios发布版的eventhandlers子目录中的示例脚本。
应用推荐