Commit a4f2de6513e784e528efc6809ec8711e314bb9ea
1 parent
450ed8b8
Updates 02_nagios/nagios_install.md
Auto commit by GitBook Editor
Showing
1 changed file
with
3 additions
and
0 deletions
02_nagios/nagios_install.md
| @@ -27,5 +27,8 @@ yum install nrpe nagios-plugins* | @@ -27,5 +27,8 @@ yum install nrpe nagios-plugins* | ||
| 27 | firewall-cmd --add-service=my_nrpe --permanent | 27 | firewall-cmd --add-service=my_nrpe --permanent |
| 28 | firewall-cmd --reload | 28 | firewall-cmd --reload |
| 29 | // 客户端配置 /etc/nagios/nrge.cfg,添加allow_hosts,如下图: | 29 | // 客户端配置 /etc/nagios/nrge.cfg,添加allow_hosts,如下图: |
| 30 | +// 客户端,服务端启动nrpe服务,开机自启 | ||
| 31 | +systemctl enable nrpe | ||
| 32 | +systemctl start nrpe | ||
| 30 | 33 | ||
| 31 | 34 |