Commit ac485767347cfaa4146e0d56b061e051462c6769

Authored by 徐烜
1 parent 0a766bd8

Updates chapter1.md

Auto commit by GitBook Editor
Showing 1 changed file with 3 additions and 1 deletions
chapter1.md
... ... @@ -70,7 +70,7 @@ systemctl start nagios
70 70 htpasswd -bc /etc/nagios/passwd nagiosadmin nagiosadmin2jsp
71 71 用户名建议使用默认的nagiosadmin,否则需要修改/etc/nagios/cgi.cfg文件,替换nagiosadmin到自定义用户名
72 72  
73   -//------------- 5、定义nagioshost ------------//
  73 +//------------- 5、定义nagios host定义 ------------//
74 74 // 在/etc/nagios/objects创建my_hosts.cfg文件,添加如下定义
75 75 define host {
76 76 use linux-server
... ... @@ -84,6 +84,8 @@ cfg_file=/etc/nagios/objects/my_hosts.cfg
84 84 // 重启nagios
85 85 systemctl restart nagios
86 86  
  87 +//------------- 6、定义nagios group定义 --------------//
  88 +
87 89  
88 90  
89 91  
... ...