【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

 

相关文章

Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native