【Linux】install icinga(nagios) 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

 

【Linux】install icinga(nagios) on centos 7.5

上一篇:Python 自动化,Appium 凭什么使用 UiAutomator2?


下一篇:结合scipy.linalg在Python中使用线性系统