This is a cache of https://support.nagios.com/kb/article/nagios-xi-unable-to-login-using-two-factor-authentication-811.html. It is a snapshot of the page at 2025-05-12T01:13:13.556+0000.
Nagios <strong>xi</strong> - Unable To Login Using Two Factor Authentication
Home » Categories » Products » Nagios xi » Troubleshooting » Common Problems

Nagios xi - Unable To Login Using Two Factor Authentication

Problem Description

This KB article shows you how to resolve issues with two factor authentication and not being able to login when it is enabled.

 

 

Confirm Correct Email Address

Two factor authentication sends an email to the address associated with a user account. If a user is not receiving the emails then the first step is to confirm their email address is correct via Admin > Users > Manage Users.

You need to be an administrative user to be able to manage users, if you are unable to login as an administrative user then the next step in this KB article will help.

 

 

Cannot Login As nagiosadmin

If the only administrative account you have enabled is the nagiosadmin account, it is possible to lock yourself out of Nagios xi. This usually occurs when the nagiosadmin account is still configured with the default root@localhost email address. You can still retrieve the token that is emailed to the root@localhost address by looking at the /var/spool/mail/root mailbox on the Nagios xi server.

Establish a terminal session to your Nagios xi sever as the root user and execute the following command:

grep -A2 'token below' /var/spool/mail/root

 

This should output something similar to:

To continue logging in, please enter the token below:

16616
--
To continue logging in, please enter the token below:<br />
<br />
16616<br />

 

You can see from the output above that the token is 16616, this can be used to login to your Nagios xi system as the nagiosadmin account. Once logged in you can change the nagiosadmin account to the correct email address.

If you are unable to retrieve the token from the /var/spool/mail/root mailbox on the Nagios xi server then it is likely that the nagiosadmin account has an email address you are unaware of. In this scenario you are required to reset the nagiosadmin account which also disables two factor authentication. This is explained in the following KB article:

Nagios xi - Resetting The nagiosadmin Password

 

 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/



Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

0 (0)
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Installation errors on customized corporate builds of CentOS or RHEL
Viewed 13339 times since Tue, Jan 26, 2016
Nagios xi - mysql_error out of range value for column
Viewed 6693 times since Tue, Aug 14, 2018
Nagios xi - Defining Global Environment Variables
Viewed 10865 times since Thu, Mar 17, 2016
Nagios xi - Empty Screen for Wizard, Component, Dashlet
Viewed 8065 times since Wed, Jan 27, 2016
Nagios xi - Warning: Duplicate definition found for contact ’xi_default_contact’
Viewed 6677 times since Tue, Jan 26, 2016
Nagios xi - MRTG Reports SNMP_Session Errors
Viewed 5869 times since Wed, Jul 27, 2016
Nagios xi - Installing xi Fails To Install Dependency pymssql
Viewed 8754 times since Mon, Oct 17, 2016
Nagios xi - Can’t Log Into The Web Interface
Viewed 63847 times since Tue, Jan 27, 2015
Nagios xi - Last Check Time Not Updating
Viewed 20683 times since Tue, Jan 6, 2015
Nagios xi - Status Information Cut Off At 256 Characters
Viewed 8395 times since Thu, Feb 25, 2016