Hi Michael, Thank you for your kindly answer. After following the docs you provided, I got rid of these pop-ups and errors.
Greetings, Kasia 2014-07-11 11:37 GMT+00:00 Michael Friedrich <[email protected]>: > On 11.07.2014 13:31, Kasia Macias wrote: >> >> 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 > > > Icinga Web and Icinga 2 are two *seperate* applications and do *not* > share their logs. > > Afterall, these errors might only be catchable with a web browser dev > console. Try > https://wiki.icinga.org/display/testing/Icinga+Web+Testing#IcingaWebTesting-Debugging > for insights. > > > >> >> 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? > > > Depends how it was installed. 'dpkg-reconfigure icinga-web' would > normally allow you to re-create the database. If not the sql files > should be located somewhere below /usr/share/... > > https://wiki.icinga.org/display/howtos/Setting+up+Icinga+Web+on+Debian > >> >> 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. > > > That's wrong though since the icinga 2 command pipe is located at a > different location. The documentation also tells you about it. > > http://docs.icinga.org/icinga2/latest/doc/module/icinga2/toc#!/icinga2/latest/doc/module/icinga2/chapter/getting-started#setting-up-icinga-web > >> 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 > > > > -- > Michael Friedrich, DI (FH) > Application Developer > > NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg > Tel: +49 911 92885-0 | Fax: +49 911 92885-77 > GF: Julian Hein, Bernd Erk | AG Nuernberg HRB18461 > http://www.netways.de | [email protected] > > ** Open Source Backup Conference 2014 - September - osbconf.org ** > ** Puppet Camp Duesseldorf 2014 - Oktober - netways.de/puppetcamp ** > ** OSMC 2014 - November - netways.de/osmc ** > ** OpenNebula Conf 2014 - Dezember - opennebulaconf.com ** > _______________________________________________ > icinga-users mailing list > [email protected] > https://lists.icinga.org/mailman/listinfo/icinga-users _______________________________________________ icinga-users mailing list [email protected] https://lists.icinga.org/mailman/listinfo/icinga-users
