Logging user authentication

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lmilkovic
Posts: 15
Joined: Wed Oct 13, 2010 2:31 am

Logging user authentication

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Logging user authentication

Post by scottwilkerson »

Luka,

Audit logging is slated to be added in the 2012 release coming in the next couple months.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
lmilkovic
Posts: 15
Joined: Wed Oct 13, 2010 2:31 am

Re: Logging user authentication

Post 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:)
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Logging user authentication

Post by lmiltchev »

Thanks for the feedback!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked