Page 1 of 1

Logging user authentication

Posted: Thu Jul 05, 2012 4:13 am
by lmilkovic
I have a question about logging standard user form-based authentication on the Nagios XI web interface.
As far as I know, details about user login are not stored anywhere - I tried to find them in Apache logs, Nagios logs, Nagios XI logs, NDO database and Nagios XI database, but I didn't find any data that indicates successful/failed user login.

I tried to correlate some data in the database with Apache logs, but without success.

Since Nagios XI login.php script is obfuscated with SourceGuardian, I cannot easily add logging code:(

Can anyone suggest a mechanism that could be used for logging user access (login) to Nagios XI web interface?

Thank you in advance!

Luka

Re: Logging user authentication

Posted: Thu Jul 05, 2012 11:51 am
by scottwilkerson
Luka,

Audit logging is slated to be added in the 2012 release coming in the next couple months.

Re: Logging user authentication

Posted: Thu Jul 05, 2012 12:39 pm
by lmilkovic
Thanks Scott, that's great to hear!

Anyway, I hacked a quick solution that logs to AUTHPRIV log (/var/log/secure probably) when index.php is requested for the first time. There are some issues with this solution, but since I cannot edit login.php, I think it's a good workaround:)
Since I also had to track session duration, I added additional logging to deinit_session() in utils.inc.php. This part is working surpisingly well:)

Re: Logging user authentication

Posted: Thu Jul 05, 2012 12:41 pm
by lmiltchev
Thanks for the feedback!