Commit 15c1ead29b0dca32f3b2706428b423a654374fcb
1 parent
9a5cfcdb
Updates 02_nagios/nagios_service.md
Auto commit by GitBook Editor
Showing
1 changed file
with
1 additions
and
0 deletions
02_nagios/nagios_service.md
| @@ -24,5 +24,6 @@ systemctl restart nagios | @@ -24,5 +24,6 @@ systemctl restart nagios | ||
| 24 | restorecon -v /etc/nagios/my_nrpe_plugins/custom_check_mem | 24 | restorecon -v /etc/nagios/my_nrpe_plugins/custom_check_mem |
| 25 | // 修正后查看上下文,如下图: | 25 | // 修正后查看上下文,如下图: |
| 26 | ls -Z /etc/nagios/my_nrpe_plugins/custom_check_mem | 26 | ls -Z /etc/nagios/my_nrpe_plugins/custom_check_mem |
| 27 | +// 如果无法恢复,可以在 /usr/lib64/nagios/plugins下创建,然后restorecon,最后 mv 到 /etc/nagios/my_nrpe_plugins 下 | ||
| 27 | 28 | ||
| 28 | ``` | 29 | ``` |