Page 1 of 1

Unable to create new NagVis user

Posted: Thu Apr 20, 2017 4:58 am
by WillemDH
Since half a year we are using email addresses to log into Nagios XI. Today I had to create a NagVis user for one of my users and was unable to create the user. See screenshot for error message. After some testing I found out that the reason was that this user has a particular long name (32 characters). Is there some way to extend the number of allowed characters for NagVis users? Is there any other way I can give this user access to NagVis?

Re: Unable to create new NagVis user

Posted: Thu Apr 20, 2017 5:20 am
by WillemDH
Found the solution => Edited /usr/local/nagvis/share/server/core/defines/global.php and changed define('AUTH_MAX_USERNAME_LENGTH', 40); from 30 to 40. Please confirm this change is supported. :)

Re: Unable to create new NagVis user

Posted: Thu Apr 20, 2017 1:39 pm
by cdienger
Have you tried to log in with that user? I made the same change and can create a long username but am unable to login with that user. It looks like more changes would need to be made to the backend.

Re: Unable to create new NagVis user

Posted: Thu Apr 20, 2017 2:04 pm
by ssax
Run this command:

Code: Select all

grep mysql /usr/local/nagiosxi/html/config.inc.php | wc -l
If it outputs 3, then your nagiosxi DB is stored in MySQL, and the limit is 64 (the limit is taken from the DB table field type):

Code: Select all

+----------------------+--------------+------+-----+---------+----------------+
| Field                | Type         | Null | Key | Default | Extra          |
+----------------------+--------------+------+-----+---------+----------------+
| username             | varchar(64)  | NO   | UNI | NULL    |                |
If it outputs 2, then the nagiosxi DB is stored in PostgreSQL, and the limit is 64 (the limit is taken from the DB table field type):

Code: Select all

nagiosxi=> \d+ xi_users
                                                       Table "public.xi_users"
        Column        |          Type          |                         Modifiers                          | Storage  | Description
----------------------+------------------------+------------------------------------------------------------+----------+-------------
 username             | character varying(64)  | not null                                                   | extended |

Re: Unable to create new NagVis user

Posted: Mon Jun 12, 2017 10:27 am
by WillemDH
That worked for us. Thanks. So when is XI 5.5 going to be released with the updated NagVis? I was told this would be somewhere in June?

Re: Unable to create new NagVis user

Posted: Mon Jun 12, 2017 2:06 pm
by dwhitfield
I've been telling people to check back in December. I really hope it's before then, but Fusion and NLS need to come out first. Our public roadmap says
These features may be in releases coming out such as 5.x and will be released around every 4-6 months depending on the amount of items in the release.
6 months would have put us at June, but it's pretty clear that's not going to happen.

Re: Unable to create new NagVis user

Posted: Wed Jun 14, 2017 2:31 am
by WillemDH
Hmm very dissapointing answer... But I've only been waiting since 2013-07-18 05:09 on a NagVis update https://tracker.nagios.com/view.php?id=423, so I guess I can wait 7 months longer..........?? :shock:

Re: Unable to create new NagVis user

Posted: Wed Jun 14, 2017 9:10 am
by dwhitfield
Yeah, it's not ideal, but 5.4.0 came out *way* ahead of schedule. If you take 5.3.0 and say a year out from that 5.5.0 comes out, we're looking at a much earlier date than December, which is certainly possible. We just aren't far enough along at this point to say with certainty.