export user accounts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
MichielvM
Posts: 160
Joined: Thu Oct 24, 2013 3:48 am

export user accounts

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: export user accounts

Post 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.
MichielvM
Posts: 160
Joined: Thu Oct 24, 2013 3:48 am

Re: export user accounts

Post 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?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: export user accounts

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
MichielvM
Posts: 160
Joined: Thu Oct 24, 2013 3:48 am

Re: export user accounts

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: export user accounts

Post 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.
Locked