首页 > 移动平台 > 详细

【Linux】install icinga(nagios) on centos 7.5

时间:2020-12-02 10:55:08      阅读:23      评论:0      收藏:0      [点我收藏+]
[root@wallet03 ~]# yum install -y epel-release

[root@wallet03 ~]# yum install -y httpd

[root@wallet03 ~]# rpm --import http://packages.icinga.org/icinga.key

[root@wallet03 ~]# wget http://packages.icinga.org/epel/ICINGA-release.repo -O /etc/yum.repos.d/ICINGA-release.repo

[root@wallet03 ~]# yum install -y icinga icinga-gui icinga-idoutils

[root@wallet03 ~]# yum install nagios-plugins-all [root@wallet03 ~]# mysql -uroot -pabcd.1234 mysql> create database icinga default character set utf8; Query OK, 1 row affected (0.04 sec) mysql> grant all on icinga.* to ‘icinga‘@‘localhost‘ identified by ‘icinga‘; Query OK, 0 rows affected (0.09 sec) mysql> flush privileges; Query OK, 0 rows affected (0.09 sec) [root@wallet03 ~]# cd /usr/share/doc/icinga-idoutils-libdbi-mysql-1.14.0/db/mysql [root@wallet03 mysql]# mysql -uroot -pabcd.1234 icinga < mysql.sql [root@wallet03 ~]# htpasswd /etc/icinga/passwd admin New password: Re-type new password: Adding password for user admin [root@wallet03 ~]# chmod 644 /var/log/icinga/icinga.log [root@wallet03 ~]# vim /etc/icinga/cgi.cfg %s/icingaadmin/admin/g [root@wallet03 ~]# service ido2db start Starting ido2db (via systemctl): [ OK ] [root@wallet03 ~]# service ido2db status Ido2db (pid 7653) is running... [root@wallet03 ~]# service icinga start Starting icinga (via systemctl): [ OK ] [root@wallet03 ~]# service icinga status Icinga (pid 7553) is running... [root@wallet03 ~]# service httpd start

 

【Linux】install icinga(nagios) on centos 7.5

原文:https://www.cnblogs.com/dbamonkey/p/14071970.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!