Unable to create new NagVis user
Unable to create new NagVis user
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
https://outsideit.net
Re: Unable to create new NagVis user
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
https://outsideit.net
Re: Unable to create new NagVis user
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.
Re: Unable to create new NagVis user
Run this command:
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):
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
grep mysql /usr/local/nagiosxi/html/config.inc.php | wc -lCode: Select all
+----------------------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+----------------------+--------------+------+-----+---------+----------------+
| username | varchar(64) | NO | UNI | NULL | |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
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
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
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
6 months would have put us at June, but it's pretty clear that's not going to happen.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.
Re: Unable to create new NagVis user
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..........?? 
Nagios XI 5.8.1
https://outsideit.net
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
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.