Page 1 of 1
export user accounts
Posted: Tue Feb 25, 2014 5:43 am
by MichielvM
Hi all,
I am in the process of setting up a Nagios Core/Xi setup to monitor some 30 customers.
To do this I have 1 Fusion server and about 30 Nagios Xi servers onsite.
I am now at the point that I need to create accounts for our sysadmins.
Is there a way to create accounts on one server and to export/import these?
I'm talking about some 20 engineers and 30 servers, so you can imagine that a wizard would my life a lot easier.
I can't find any related documentation about it.
Any help is appreciated.
regards,
Michiel
Re: export user accounts
Posted: Tue Feb 25, 2014 2:06 pm
by slansing
As of right now we do not have a stock solution for exporting/importing users across multiple XI systems, this is mostly because of the inter-connectivity between users, contacts, and both the postgres and mysql databases.
Re: export user accounts
Posted: Wed Feb 26, 2014 10:07 am
by MichielvM
So there's no way to migrate the userbase from one NagiosXi to another?
Perhaps it helps to add that my 20 users have the same accountnames/passwords and they need the same permissions on each server..
So: user John.Doe on Nagios-srv01 must exist on Nagios-srv02 and 03 etc. etc. and has the same permissions.
Is this a feature that will be investigated and implemented in future versions?
Re: export user accounts
Posted: Wed Feb 26, 2014 12:51 pm
by sreinhardt
My initial thoughts would be to use either AD or ldap authentication if the nagios systems can access it. This would be very simple and quick, although still somewhat manual setup on each server. Otherwise you could look at exporting and replicating the postgres db on each of the other servers after setting up on the first one. I am not certain how this would effect nagios xi itself or specifically licensing if that has already been entered into each server.
Re: export user accounts
Posted: Thu Feb 27, 2014 6:03 am
by MichielvM
AD/ldap authentication doesn't sound like an acceptable/workable solution. I'll save it as a pet project in the R&D department.
I was wondering if there's a way to add a user using the cli.
Re: export user accounts
Posted: Thu Feb 27, 2014 10:28 am
by slansing
If there was an easy way to do it, that would have been my first suggestion, since users are handled in postgresql tables, and the logic is built into Nagios XI to create them via the web interface you would need extensive knowledge of how this works to manually add then in postgres, or via a hand created script issuing the commands to postgres.