Created on 12-25-201608:30 AM - edited 09-16-202201:37 AM
SYMPTOM: Nagios install fails due to existing "nagios" user in the ldap system
trying to install ambari on single node cluster but is having issues with nagios since they have an ldap server with a nagios user already created.
Receiving error; "err: /Stage2/Hdp-nagios::Server/Hdp::Usernagios/Usernagios/gid: change from 20000 to nagios failed: Could not set gid on usernagios: Execution of '/usr/sbin/usermod -g 492 nagios' returned 6: usermod: user 'nagios' does not exist in /etc/passwd
Workaround #1: That user must be in group = nagios as well, or the nagios install fails. The workaround for this is to add nagios user to a nagios group.
Workaround #2: During install, customize nagios user (Customize Services > Misc) and use something other than nagios user. This user will be created and put in a group nagios. This is available in HDP 1.3.1