Commit dcc0c9e1637d3b7476a90b6731a6cf2e860eaed9

Authored by 徐烜
1 parent fe03fa4d

Updates 02_nagios/nagios_service.md

Auto commit by GitBook Editor
Showing 1 changed file with 2 additions and 2 deletions
02_nagios/nagios_service.md
... ... @@ -15,9 +15,9 @@ define service {
15 15 // 重启nagios
16 16 systemctl restart nagios
17 17  
18   -//------------- 服务端配置nrpe service定义 -----------//
19   -// 在/etc/nagios/nrpe.cfg中,添加allowed_hosts,如下图:
  18 +//------------- 配置nrpe service定义 -----------//
20 19 // 在服务端添加nrpe command配置,如下图:
  20 +// 在/etc/nagios/nrpe.cfg中,添加allowed_hosts为服务端地址,如下图:
21 21 // 在客户端端编辑/etc/nrpe.d/lcgdm-common.cfg,添加监控脚本,如下图:
22 22 // 自定义脚本,在/etc/nagios/my_nrpe_plugins/ 创建 custom_check_mem脚本,如下图:
23 23 // 源码参看 https://github.com/whereisaaron/linux-check-mem-nagios-plugin
... ...