Newly created users, SQL error
Newly created users, SQL error
We're on the latest release. We're adding users to XI and while they seem to add ok and we stick them in contact groups with hosts and services associated with them, all we're getting is this:
I've tried deleting/recreating user, running repair_tables.sh, assigning just hosts/services to the user instead of doing it via contact groups, but nothing seems to help.
If I check the "Can see all objects" option for the user, everything works of course, but we're wanting them to only see their hosts/services. It seems any new user is having this issue.
I've tried deleting/recreating user, running repair_tables.sh, assigning just hosts/services to the user instead of doing it via contact groups, but nothing seems to help.
If I check the "Can see all objects" option for the user, everything works of course, but we're wanting them to only see their hosts/services. It seems any new user is having this issue.
You do not have the required permissions to view the files attached to this post.
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
Re: Newly created users, SQL error
Any special characters or anything in the username? I couldn't replicate this one.
Former Nagios Employee.
me.
me.
Re: Newly created users, SQL error
No, no weirdness there.
I wish I could see the whole query it was bombing out on.
I wish I could see the whole query it was bombing out on.
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
Re: Newly created users, SQL error
I'd like to see a screenshot or similar of one of the users you've added, in addition to any service/host definitions that the user is associated with.
I'd also like to see the following output:
I'd also like to see the following output:
Code: Select all
echo 'select * from xi_users \G;' | mysql -uroot -pnagiosxi nagiosxiRe: Newly created users, SQL error
No, it looks pretty cleanhsmith wrote:Anything in the MySQL log?
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
Re: Newly created users, SQL error
There are over 700 hosts and even more services associated via a contact group.jolson wrote:I'd like to see a screenshot or similar of one of the users you've added, in addition to any service/host definitions that the user is associated with.
I'd also like to see the following output:Code: Select all
echo 'select * from xi_users \G;' | mysql -uroot -pnagiosxi nagiosxi
I think I've narrowed it down to something getting associated via the contact group though. I can take him out of that group and put him in another group and it works. Put him back in that contact group and boom, errors.
Trouble is I can't figure out what it is. None of the hosts or services have weird chars in their names.
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
Re: Newly created users, SQL error
Interesting. Could we see what that contact group looks like?
Code: Select all
grep -A 5 <contactgroupname> /usr/local/nagios/var/objects.cacheRe: Newly created users, SQL error
This
Over and over a couple thousand times.--
contact_groups HMMA-MES-CG
notification_period xi_timeperiod_24x7
initial_state o
importance 0
check_interval 5.000000
retry_interval 1.000000
--
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
Re: Newly created users, SQL error
Oddly enough (or maybe not?) the Core interface works and is showing everything like it should as far as I can tell.
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2