微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

【Linux】install icinganagios on centos 7.5

[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

 

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。