Commit 318e11b26088d21353793a8e66b2469b8a9a1ae7
1 parent
96ed2124
Updates 02_nagios/README.md
Auto commit by GitBook Editor
Showing
1 changed file
with
18 additions
and
1 deletions
02_nagios/README.md
| 1 | -# nagios安装和配置 | ||
| 2 | \ No newline at end of file | 1 | \ No newline at end of file |
| 2 | +# nagios安装和配置 | ||
| 3 | + | ||
| 4 | +### nagios安装及配置 | ||
| 5 | +``` | ||
| 6 | +//------------- 安装nagios及配置 ------------// | ||
| 7 | +// 产看是否安装了nagios | ||
| 8 | +rpm -qa | grep nagios | ||
| 9 | +// 安装nagios | ||
| 10 | +yum install nagios* nrpe | ||
| 11 | +// 启动服务,设置开机自启 | ||
| 12 | +systemctl enable nagios | ||
| 13 | +systemctl start nagios | ||
| 14 | +// 设置nagios后台管理员密码 | ||
| 15 | +htpasswd -bc /etc/nagios/passwd nagiosadmin nagiosadmin2jsp | ||
| 16 | +用户名建议使用默认的nagiosadmin,否则需要修改/etc/nagios/cgi.cfg文件,替换nagiosadmin到自定义用户名 | ||
| 17 | + | ||
| 18 | + | ||
| 19 | +``` | ||
| 3 | \ No newline at end of file | 20 | \ No newline at end of file |