Joseph,

Thanks for getting back to me.  Since I first submitted my question, I've been 
able to login.  Now I'm having an issue where once I login, I get "loading", 
and no further.   Unfortunately the documentation for icinga and icinga-web is 
complete.  Meaning that I've had to look multiple places to get my answers.  I 
ended up going back to the icinga documentation and making sure that icinga-API 
and IDOUtils were all installed.  The documentation that I found for installing 
icinga and icinga-web doesn't have this step that you mentioned: "mysql -u root 
-p icinga_web </usr/share/icinga-web/etc/schema/mysql.sql".  So now I have the 
"loading" issue, meaning  that icinga web keeps loading data.  This is 
mentioned in the icinga.org documentation for installing icinga-web.  Here is 
my icinga-web log file from today:

cat icinga-web-2011-07-25.log | more

[Mon Jul 25 15:47:57 2011] [fatal] Uncaught AppKitPHPError: PHP Error mkdir() 
[<a href='function.mkdir'>function.mkdir</a>]: File exists 
(/usr/local/icinga-web/app/cache/config/compile.xml_
development__033d402eaeb08f42e4e3d5f8474e444805e2c7c6.php:1327) 
(/usr/local/icinga-web/app/modules/AppKit/lib/logging/AppKitExceptionHandler.class.php:20)
[Mon Jul 25 15:47:57 2011] [fatal] Uncaught AppKitPHPError: PHP Error mkdir() 
[<a href='function.mkdir'>function.mkdir</a>]: File exists 
(/usr/local/icinga-web/app/cache/config/compile.xml_
development__033d402eaeb08f42e4e3d5f8474e444805e2c7c6.php:1327) 
(/usr/local/icinga-web/app/modules/AppKit/lib/logging/AppKitExceptionHandler.class.php:20)
[Mon Jul 25 16:00:29 2011] [error] Userlogin by nagios failed!
[Mon Jul 25 16:00:35 2011] [error] Userlogin by nagios failed!
[Mon Jul 25 16:00:44 2011] [error] Userlogin by icinga failed!
[Mon Jul 25 16:00:51 2011] [error] Userlogin by icinga failed!
[Mon Jul 25 16:00:56 2011] [error] Userlogin by icinga failed!
[Mon Jul 25 16:01:02 2011] [error] Auth.Dispatch: Delegate authentication, no 
providers found for root (not_authoritative=internal)
[Mon Jul 25 16:01:02 2011] [error] Userlogin by root failed! (Please ignore the 
userlogin by root failed.  I mistyped the password.)

Here's the tail of my icingaApi.log:

tail icingaApi.log

2011-07-25T16:32:34+00:00 - [EXCEPTION] Database connection failed: 
SQLSTATE[28000] [1045] Access denied for user 'icinga'@'localhost' (using 
password: YES)
2011-07-25T16:32:34+00:00 - [EXCEPTION] getConnection failed: Database 
connection failed: SQLSTATE[28000] [1045] Access denied for user 
'icinga'@'localhost' (using password: YES)
2011-07-25T16:33:35+00:00 - [EXCEPTION] Database connection failed: 
SQLSTATE[28000] [1045] Access denied for user 'icinga'@'localhost' (using 
password: YES)
2011-07-25T16:33:35+00:00 - [EXCEPTION] getConnection failed: Database 
connection failed: SQLSTATE[28000] [1045] Access denied for user 
'icinga'@'localhost' (using password: YES)
2011-07-25T16:33:35+00:00 - [EXCEPTION] Database connection failed: 
SQLSTATE[28000] [1045] Access denied for user 'icinga'@'localhost' (using 
password: YES)
2011-07-25T16:33:35+00:00 - [EXCEPTION] getConnection failed: Database 
connection failed: SQLSTATE[28000] [1045] Access denied for user 
'icinga'@'localhost' (using password: YES)
2011-07-25T16:34:36+00:00 - [EXCEPTION] Database connection failed: 
SQLSTATE[28000] [1045] Access denied for user 'icinga'@'localhost' (using 
password: YES)
2011-07-25T16:34:36+00:00 - [EXCEPTION] getConnection failed: Database 
connection failed: SQLSTATE[28000] [1045] Access denied for user 
'icinga'@'localhost' (using password: YES)
2011-07-25T16:34:36+00:00 - [EXCEPTION] Database connection failed: 
SQLSTATE[28000] [1045] Access denied for user 'icinga'@'localhost' (using 
password: YES)
2011-07-25T16:34:36+00:00 - [EXCEPTION] getConnection failed: Database 
connection failed: SQLSTATE[28000] [1045] Access denied for user 
'icinga'@'localhost' (using password: YES)

I can login to mysql with the user as icinga.  But the icinga user doesn't have 
a password.  The documentation for creating the icinga user doesn't mention 
giving the icinga account a password.  My ido2db.cfg has db_pass= set to 
nothing.  I was trying to see if this would help resolve this error.  
Originally it was set to db_pass=icinga.  As to module.xml, I changed the 
config_password parameter to "><" from ">icinga<", to see if that would help, 
and it didn't.

Any ideas?

Thanks

David Lynum
IT Support Lead, Wholesale Applications Community (WAC)
Desk:    +1 (925) 201-8520
Email: [email protected]
6210 Stoneridge Mall, Road Suite 400 Pleasanton, CA  94588
www.wacapps.net


-----Original Message-----
From: Joseph L. Casale [mailto:[email protected]] 
Sent: Monday, July 25, 2011 3:28 AM
To: '[email protected]'
Subject: Re: [icinga-users] Can't login to icinga-web

>I'm using the default username and password of root/password, but I get the 
>error that my login failed.

Did you start ido2db and whatever sql server you are using, is it configured 
right?

>There's also another error, the server encountered an error: Internal 
>Exception, check your logs. What logs should I be checking?

Look in /usr/share/icinga-web/app/data/log/

>Any ideas on why I can't login?  Icinga using the classic web interface works 
>just fine.

Classic doesn't have a dependency on the sql portion, recheck your db creation 
and grant statements, then import the db scripts:
mysql -u root -p icinga </etc/icinga/idoutils/mysql/mysql.sql
mysql -u root -p icinga_web </usr/share/icinga-web/etc/schema/mysql.sql
if you are using mysql for example. (Paths might be different...)

Then make sure icinga.cfg is set to load and use ido2db.

jlc

------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that has 
been used successfully in hundreds of IBM storage optimization engage- ments, 
worldwide.  Store less, Store more with what you own, Move data to the right 
place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/icinga-users


------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to 
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/icinga-users

Reply via email to