集成不同的Nagios网络服务器(Integrate different Nagios webservers)

编程入门 行业动态 更新时间:2024-10-15 20:23:06
集成不同的Nagios网络服务器(Integrate different Nagios webservers)

我有不同的站点在每个位置运行4到5台服务器。 所有位置都有一个带Nagios的监控服务器。 现在我想创建一个中心位置,并希望结合在每个位置运行的所有nagios服务。 谁能指点我这些类型的工作的一些文件。

I have different sites running with 4 to 5 server at each location. All the locations have one monitoring server with Nagios. Now I want to create a central location and want to combine all the nagios services running at each location. Can anyone please point me to some documentation for these type of jobs.

最满意答案

您可以采取两种方法。

像在每个位置一样安装新的Nagios核心,并在每个远程主机上执行活动检查。 您可能最终会在每个位置的每个远程主机上安装NRPE,并可以阅读此文档以获取详细信息: http : //nagios.sourceforge.net/docs/nrpe/NRPE.pdf 。 如果远程服务器是Windows服务器,则可以将NSClient用于NRPE为Linux主机执行的大部分操作。 这有效地集中了您的监控服务器。 我还写了一些如何使用NRPE来运行特权命令的样式条目http://blog.gnucom.cc/?p=479或运行事件处理程序http://blog.gnucom.cc/?p=458 。 如果您厌倦了安装NRPE,可以在http://blog.gnucom.cc/?p=185使用我的脚本。 我还有http://blog.gnucom.cc/?p=201安装NSClient的说明。

像在每个位置一样安装新的Nagios核心,并通过指示远程Nagios核心将其结果提供给新的中央Nagios核心的被动命令文件来执行被动检查。 我自己没有这样做,所以我将在这里指出社区文档http://nagios.sourceforge.net/docs/2_0/passivechecks.html 。 您可以查看我的事件处理程序帖子,以设置将检查发送到主服务器的事件处理程序。

根据我的个人经验,我提到的第一个选项更容易实现,并且易于管理。 但是,随着服务器机队的增长,您将开始看到主要Nagios核心的主要CPU瓶颈。 这是被动检查将变得有益的地方,因为主要的Nagios核心只是等待将关键检查发送给它而不是必须自己检查它们。

希望这可以帮助。 :)

There are two approaches that you can take.

Install a new Nagios core as you did at each location and perform active checks on each of the remote hosts. You'll likely end up installing NRPE on each of the remote hosts at each location and can read this document for the details: http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf. If your remote servers are Windows servers, you can use NSClient to much of the same things that NRPE does for Linux hosts. This effectively centralizes your monitoring server. I also wrote some how-to style entries for using NRPE to run privileged commands http://blog.gnucom.cc/?p=479 or to run event handlers http://blog.gnucom.cc/?p=458. If you get tired of installing NRPE, you can use my script here http://blog.gnucom.cc/?p=185. I also have instructions to install NSClient here http://blog.gnucom.cc/?p=201.

Install a new Nagios core as you did at each location and perform passive checks by instructing the remote Nagios cores to feed their results to the new central Nagios core's passive command file. I haven't done this myself, so I'm going to point you to the communities documentation here http://nagios.sourceforge.net/docs/2_0/passivechecks.html. You could probably look at my event handler post to set up event handlers that send checks to the main server.

From my personal experience, the first option I mentioned is easier to implement, and is far easy to administer. However, as your server fleet grows you'll start seeing major CPU bottlenecks with the main Nagios core. This is where passive checks would become beneficial, as the main Nagios core simply waits for critical checks to be sent to it rather than having to check them itself.

Hope this helps. :)

更多推荐

本文发布于:2023-08-05 00:34:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1423440.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:服务器   网络   Nagios   Integrate   webservers

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!