Unable to create new NagVis user

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Unable to create new NagVis user

Post 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?
You do not have the required permissions to view the files attached to this post.
Nagios XI 5.8.1
https://outsideit.net
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Unable to create new NagVis user

Post 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. :)
Nagios XI 5.8.1
https://outsideit.net
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Unable to create new NagVis user

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Unable to create new NagVis user

Post 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 |
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Unable to create new NagVis user

Post 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?
Nagios XI 5.8.1
https://outsideit.net
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Unable to create new NagVis user

Post 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.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Unable to create new NagVis user

Post 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:
Nagios XI 5.8.1
https://outsideit.net
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Unable to create new NagVis user

Post 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.
Locked