Kaplan, Andrew H. wrote:
> Hello --
> I went ahead with a re-install of the icinga and icinga-web 
> applications, and following your advice I did the installation of the 
> latter with the following options:
> ac_cs_config="'--prefix=/usr/local/icinga-web' 
> '--with-web-user=apache' '--with-web-group=apache' 
> '--with-web-path=/icinga-web' 
> '--with-web-apache-path=/etc/httpd/conf.d' '--with-db-type=mysql' 
> '--with-db-host=localhost' '--with-db-port=3306' 
> '--with-db-name=icinga_web' '--with-db-user=icinga_web' 
> '--with-db-pass=icinga_web' '--with-conf-dir=etc/conf.d' 
> '--with-log-folder=log'"
> Once the installation was complete, I was able to log into the 
> icinga-web interface without issue. So it appears you were right: the 
> --with-api-type=driver option was causing the problem.

docs say that this is the "db type driver", so depending on your 
decision, mysql, pgsql, oracle. dunno why 'driver' slipped into at your 
call. the default is mysql btw. if you do not set that, the created 
databases.xml in etc/conf.d will contain the default information - which 
you can edit afterwards either way.

those configure options were solely created for packagers to prevent 
them from sed'ing though created xml files. i demanded those options a 
while back when working on icinga-web.spec


> Per your request, I am including a copy of the databases.xml file for 
> further verification.

looks normal. make sure to clear cache after each change there.


> Thanks again for the help.

np - make sure to keep monitoring-portal.org bookmarked as well. lively 
and active community over there, both german and english.

plus - note the wiki, and register an icinga account for being able to 
create dev issue and/or translate icinga-web and/or edit/create wiki 
articles. once you got an account in the ldap backend, it's fine.


>
> ------------------------------------------------------------------------
> *From:* Michael Friedrich [mailto:michael.friedr...@univie.ac.at]
> *Sent:* Tuesday, May 22, 2012 3:30 AM
> *To:* icinga-users@lists.sourceforge.net
> *Subject:* Re: [icinga-users] Problem installing the new icinga-web 
> interface
>
> On 22.05.2012 01:27, Kaplan, Andrew H. wrote:
>> When I ran the configure script for the application, there was a 
>> series of options that were used to complete the process. The 
>> following is taken from the config.status file from the installation 
>> directory:
>> ac_cs_config="'--prefix=/usr/local/icinga-web' 
>> '--with-web-user=apache' '--with-web-group=apache' 
>> '--with-web-path=/icinga-web' 
>> '--with-web-apache-path=/etc/httpd/conf.d' '--with-db-type=mysql' 
>> '--with-db-host=localhost' '--with-db-port=3306' 
>> '--with-db-name=icinga_web' '--with-db-user=icinga_web' 
>> '--with-db-pass=icinga_web' '--with-conf-dir=etc/conf.d' 
>> '--with-log-folder=log' '--with-api-subtype=driver' 
>> '--with-api-host=localhost' '--with-api-port=3306' 
>> '--with-api-socket-path=none'"
>
> --with-api-type=driver sounds funny. why did you set that? that goes 
> hand in hand with your first connection exception based on the driver. 
> i bet a beer that this is the reason your icinga-web can't connect to 
> the database.
>
> btw - post the databases.xml where you configure your db access for 
> further verification.
>
>>
>> ehm. this is a joke right? 777 for _all_ dirs plus recursive? why did 
>> you do that dangerous setting?
>> This change was made in attempt to allow the necessary write access 
>> to the /usr/local/icinga-web/app/cache directory. If this problem can 
>> be solved, I will readily
>> change the permissions back to 644 on both directories.
>
> well i would rather wipe the install again and start from scratch. 
> first 777 now 644 - something for thedailywtf.com - sorry. that makes 
> the situation to debug more critical - what if application expects 
> specific dir permissions you have now overridden? there's a reason why 
> there's a make install option ....
>
>
>> The decision to make the directory permissions 777 is simply part of 
>> the troubleshooting process that I conducted on my end. I do not 
>> intend to keep the
>> permissions as such when the server goes into production.
>
> whoever told you this to troubleshoot, simply forget it. you won't see 
> such hints neither in the icinga docs nor the wiki entries we write 
> ourselves.
>
>
>
> -- 
> DI (FH) Michael Friedrich
>
> Vienna University Computer Center
> Universitaetsstrasse 7 A-1010 Vienna, Austria
>
> email:michael.friedr...@univie.ac.at
> phone:     +43 1 4277 14359
> mobile:    +43 664 60277 14359
> fax:     +43 1 4277 14338
> web:http://www.univie.ac.at/zid
>             http://www.aco.net
>
> Lead Icinga Core Developer
> http://www.icinga.org
>
> The information in this e-mail is intended only for the person to whom 
> it is
> addressed. If you believe this e-mail was sent to you in error and the 
> e-mail
> contains patient information, please contact the Partners Compliance 
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you 
> in error
> but does not contain patient information, please contact the sender 
> and properly
> dispose of the e-mail.
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>
>
> _______________________________________________
> icinga-users mailing list
> icinga-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/icinga-users


-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:    +43 1 4277 14338
web:    http://www.univie.ac.at/zid
         http://www.aco.net

Lead Icinga Core Developer
http://www.icinga.org


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
icinga-users mailing list
icinga-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/icinga-users

Reply via email to