I have a solution for you for now to remove the errors from the screen. The errors won't hurt anything but we will stop it from happening in future versions. It seems like the apply config permissions updates have not finished by the time the cached permissions rebuild which also triggers an update to the tbl_permissions database.
Also, approximately how many limited CCM users do you have and how many hosts/services do you have? Approximately how many hosts/services per user would you estimate?
To get the messages to not show, you can edit
/usr/local/nagiosxi/html/includes/components/ccm/ccm.inc.php and replace the following two lines:
For line 796 replace with:
Code: Select all
exec_sql_query(DB_NAGIOSQL, "INSERT INTO tbl_permission (user_id, object_id, type) VALUES (".$user_id.", ".$o['id'].", ".OBJECTTYPE_HOST.");", false);
For line 809 replace with:
Code: Select all
exec_sql_query(DB_NAGIOSQL, "INSERT INTO tbl_permission (user_id, object_id, type) VALUES (".$user_id.", ".$s['id'].", ".OBJECTTYPE_SERVICE.");", false);
Adding the false to those functions will stop the errors from being displayed to the screen for now until the next version.