[op5-users] Ninja views

Pier pierg75 at yahoo.it
Fri Oct 23 17:11:51 CEST 2009


> if the ninja_user_authentication table is empty and you
> would like to have admin access you need you insert in to
> this table one record, with the user_id from your nagios
> admin user, that should be found in the user table. If you
> do not have your Nagiosadmin in this table as well, you need
> to create it. All other values should be set to one in the
> ninja_user_authentication table record, well except the id
> field as it is auto_incrementing. You also need to look into
> the roles table to see which id the admin role has. Remember
> this ID and check the roles_user table. If the ID of your
> nagiosadmin can't be found in there, create a record and
> insert the ID of your nagiosadmin, plus the admin id for the
> role_id, which you could look up in the roles table.
Hi.
Thank you for the explanation...i checked in the db and actually i have no user defined in ninja_user_authentication; so i added one manually with id 1 (that actually is nagiosadmin) with all 1's in the other fields.
I logout from ninja, logged in and i found the table emplty again:

mysql> select * from ninja_user_authorization;
+----+---------+--------------------+---------------------------+-----------------+--------------+-----------+----------------------+-------------------+
| id | user_id | system_information | configuration_information | system_commands | all_services | all_hosts | all_service_commands | all_host_commands |
+----+---------+--------------------+---------------------------+-----------------+--------------+-----------+----------------------+-------------------+
|  1 |       1 |                  1 |                         1 |               1 |            1 |         1 |                    1 |                 1 |
+----+---------+--------------------+---------------------------+-----------------+--------------+-----------+----------------------+-------------------+
1 row in set (0.00 sec)


mysql> select * from ninja_user_authorization;
Empty set (0.00 sec)


Why?
Now in ninja i can see only the localhost machine (nagios) and no others.

Pier


      


More information about the op5-users mailing list