Commit 267ffa2cfcaffac8835e355c197f2d22cfb9b1bc

Authored by 徐烜
1 parent 2881223b

Updates chapter1.md

Auto commit by GitBook Editor
Showing 1 changed file with 4 additions and 2 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、定义nagios host定义 ------------//
  73 +//------------- 5、配置nagios host定义 ------------//
74 74 // 在/etc/nagios/my_cfg目录下创建my_hosts.cfg文件,添加如下定义
75 75 define host {
76 76 use linux-server
... ... @@ -84,7 +84,7 @@ cfg_dir=/etc/nagios/my_cfg
84 84 // 重启nagios
85 85 systemctl restart nagios
86 86  
87   -//------------- 6、定义nagios group定义 --------------//
  87 +//------------- 6、配置nagios group定义 --------------//
88 88 // 在/etc/nagios/my_cfg目录下创建my_groups.cfg文件,添加如下定义
89 89 define hostgroup {
90 90 hostgroup_name servers1
... ... @@ -95,6 +95,8 @@ define hostgroup {
95 95 // 重启nagios
96 96 systemctl restart nagios
97 97  
  98 +//------------- 7、配置nagios service定义 -------------//
  99 +
98 100  
99 101  
100 102  
... ...