XI fullinstall - change nagios username?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
GldRush98
Posts: 259
Joined: Wed May 25, 2011 10:51 am
Location: Springfield, IL
Contact:

XI fullinstall - change nagios username?

Post by GldRush98 »

Can we change the user account in the install scripts that nagios installs as?
Currently the username "nagios" is used elsewhere in the environment and we are being asked to change this user in the install and run it under a custom user.
Will this work, or will this break other things in nagios? :?:

edit: It is RHEL7 just for the record.
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: XI fullinstall - change nagios username?

Post by ssax »

There isn't an easy way to do this and I wouldn't recommend it anyways as a lot of things expect it to be nagios and will likely break. The XI installer doesn't support changing it at this time.

Is the system linked up the domain/ldap? (for SSH login to the system)

Is it failing on install? If so, please post the errors you are seeing.
User avatar
GldRush98
Posts: 259
Joined: Wed May 25, 2011 10:51 am
Location: Springfield, IL
Contact:

Re: XI fullinstall - change nagios username?

Post by GldRush98 »

Yeah, all users are controlled by a domain so we can't have the nagios user apparently.
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: XI fullinstall - change nagios username?

Post by ssax »

If you change your /etc/nsswitch.conf it will should local first if you set files first in on these lines:

Code: Select all

passwd:     files XXX XXX
shadow:     files XXX XXX
group:      files XXX XXX
The recommendation would be that before you integrate AD/LDAP (or temporarily disable it), install XI first, connect to AD/LDAP, then update your /etc/nsswitch.conf to look at the local files first. A reboot would be recommended at that point as it will likely pick up the non-local nagios account for some things temporarily once you rejoin/connect the system.
User avatar
GldRush98
Posts: 259
Joined: Wed May 25, 2011 10:51 am
Location: Springfield, IL
Contact:

Re: XI fullinstall - change nagios username?

Post by GldRush98 »

Thanks, I will pass this info along.
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: XI fullinstall - change nagios username?

Post by lmiltchev »

@GldRush98, let us know if it is OK to close this topic. Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked