Nagios - NRPE 介绍

NRPE 2.x Documentation

(2.12 update: 2008-3-12)
The NRPE addon is designed to allow you to execute Nagios plugins on remote Linux/Unix machines. The main
reason for doing this is to allow Nagios to monitor "local" resources (like CPU load, memory usage, etc.) on
remote machines. Since these public resources are not usually exposed to external machines, an agent like
NRPE must be installed on the remote Linux/Unix machines.
check_nrpe 允许监控远程主机的本地资源,但远程主机必须安装nrpe,即客户端的一个接收发送器


Note: It is possible to execute Nagios plugins on remote Linux/Unix machines through SSH. There is a
check_by_ssh plugin that allows you to do this. Using SSH is more secure than the NRPE addon, but it also
imposes a larger (CPU) overhead on both the monitoring and remote machines. This can become an issue when
you start monitoring hundreds or thousands of machines. Many Nagios admins opt for using using the NRPE
addon because of the lower load it imposes.
另外可以建立在ssl的基础上,保证传输的安全性,但会损失主机一定的性能

我的建议:
如果是各个地区,国家,或者机房有多台服务器,可在相应的机房负载较轻的机器装一个NRPE,然后通过中心的check_nrpe来远程调用检查,这样,只需要维护一台机器的nagios,要知道,nagios里的参数很多,如果每个地方放一台nagios,那样会增加不少工作量,而nrpe则不同,只是一些简单的安装操作而已,你可以在NRPE文档中找到"Indirect Checks"的图例,

 

 

这是一种非常好的检查架构,当然,如果你要做细至的检查,服务器的每一个参数,只能本地运行的话,那就会比较麻烦了

发布了36 篇原创文章 · 获赞 1 · 访问量 4万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章