温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

Redhat Nagios的安装步骤

发布时间:2021-09-15 20:15:25 来源:亿速云 阅读:116 作者:chen 栏目:系统运维

这篇文章主要讲解了“Redhat Nagios的安装步骤”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“Redhat Nagios的安装步骤”吧!

一、软件包

1. nagios-3.2.1.tar.gz

2. nagios-plugins-1.4.14.tar.gz

二、安装步骤

1. useradd –m nagios

2. groupadd nagcmd

3. usermod –a –G nagcmd nagios

4. usermod –a –G nagcmd apache

5. tar zxvf nagios-3.2.1.tar.gz

6. cd nagios-3.2.1

7. ./configure –prefix=/usr/local/nagios –with-command-group=nagcmd --with-httpd-conf=/usr/local/apache/conf

8. Make install

9. Make install-init

10. Make install-config

11. Make install-commandmode

12. Vi /usr/local/nagios/etc/objects/contacts.cfg修改email为你的EMAIL地址

13. Make install-webconf

14. Htpasswd –c /usr/local/nagios/etc/htpasswd.users nagiosadmin //增加nagiosadmin用户并设置密码

15. cd /usr/local/apache/conf

16. 拷贝nagios.conf中的内容到httpd.conf中,放在httpd.conf***

17. Cd /var/local/software

3. Tar zxvf nagios-plugins-1.4.14.tar.gz//安装nagios插件

18. Cd nagios-plugins-1.4.14

19. ./configure --prefix=/usr/local/nagios-plus --with-nagios-user=nagios --with-nagios-group=nagios;

20. Make

21. Make install

22. Chkconfig –add nagios

23. Chkconfig nagios on

24. /usr/local/nagios/bin/nagios –v /usr/local/nagios/etc/nagios.cfg//测试nagios配置是否正确

25. Service nagios start/stop

26. Killall httpd

27. /usr/local/apache/bin/apachectl –k start

28. 访问http://localhost/nagios输入nagiosadmin密码 nagiosadmin设置的密码

29.

Redhat Nagios的安装步骤

三、Nagios配置

cfg_file=/usr/local/nagios/etc/contactgroups.cfg //联系组配置文件路径

cfg_file=/usr/local/nagios/etc/contacts.cfg //联系人配置文件路径

cfg_file=/usr/local/nagios/etc/hostgroups.cfg //主机组配置文件路径

cfg_file=/usr/local/nagios/etc/hosts.cfg //主机配置文件路径

cfg_file=/usr/local/nagios/etc/services.cfg //服务配置文件路径

cfg_file=/usr/local/nagios/etc/timeperiods.cfg //监视时段配置文件路径

感谢各位的阅读,以上就是“Redhat Nagios的安装步骤”的内容了,经过本文的学习后,相信大家对Redhat Nagios的安装步骤这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是亿速云,小编将为大家推送更多相关知识点的文章,欢迎关注!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI