Hi, For a long time I struggle with Icinga2/Icinga-Web installation. I work on Debian7. The result of my installation is that I can login into localhost/icinga-web, but constantly Icinga is reloading, and there is pop-up about "The server encountered an error: Internal Exception, check your logs!".
In debug.log and icinga2.log there is a lot of notice/GraphiteWriter: Reconnect to tcp socket on host '127.0.0.1' port '2003'. critical/TcpSocket: Invalid socket: Connection refused Icinga2.err is empty. I follow exactly the instruction from http://icinga2.readthedocs.org/en/latest/chapter-2.html. Here is what I do, exactly: apt-get install icinga2 apt-get install nagios-plugins apt-get install mysql-server (root passwords: empty) apt-get install icinga2-ido-mysql (yes, enable ido-mysql. yes, configure with dbconfig-common. root passwords empty) (Nagios-plugins dir is OK) (I do not install any additional check_plugins) I create the db: mysql> CREATE DATABASE icinga; mysql> GRANT SELECT, INSERT, UPDATE, DELETE, DROP, CREATE VIEW, INDEX, EXECUTE ON icinga.* TO 'icinga'@'localhost' IDENTIFIED BY 'icinga'; Create schema: mysql -u root -p'' icinga < /usr/share/icinga2-ido-mysql/schema/mysql.sql I look into /etc/icinga2/features-available/ido-mysql.conf: object IdoMysqlConnection "ido-mysql" { user = "icinga2-ido-mysq", password = "X4OtUIVjy9vD", host = "localhost", database = "icinga2idomysql" } I do not change anything. icinga2-enable-feature ido-mysql /etc/init.d/icinga2 restart apt-get install apache2 apt-get install icinga-web (yes, configure with dbconfig-common. Database type mysql. All passwords empty). (icinga-idoutils : no, do not configure with dbconfig-common - because there are errors. all passwords empty) Database icinga_web already exists. I do not have the mysql schema for icinga-web anywhere - so I skip the step about setup web-database. Maybe this is the problem? I do not change anything in databases.xml. Feature ‘icinga2 command’ is already enabled. In the access.xml file there already is: <write> <files> <resource name="icinga_pipe">/var/lib/icinga/rw/icinga.cmd</resource> </files> </write> so I do not change anything. Clear the cache: /usr/lib/icinga-web/bin/clearcache.sh That's all the steps I follow. If somebody is able to help me, I would be very grateful. PS. I am not experienced in this stuff - some obvious things can not be obvious for me. Greetings, Kasia _______________________________________________ icinga-users mailing list [email protected] https://lists.icinga.org/mailman/listinfo/icinga-users
