Page 2 of 2
Re: Not able to place servers into maintenance mode
Posted: Thu Apr 19, 2018 10:35 am
by bsivavani
I tried to extract last two backups (16th and 15th) to see the htpasswd.users file, but I am still seeing the same output
[root@XXXX etc]# pwd
/store/backups/bak_april16/nagiosxi.1523822341/usr/local/nagiosxi/etc
[root@XXXX etc]#
[root@XXXX etc]# cat htpasswd.users
...
PROCESSED 0 COMMANDS
[root@XXXX etc]#
Is there any way to get this file ?
Re: Not able to place servers into maintenance mode
Posted: Thu Apr 19, 2018 10:43 am
by scottwilkerson
The file is supposed to be dynamically created when you create user and they update their passwords
Re: Not able to place servers into maintenance mode
Posted: Thu Apr 19, 2018 10:43 am
by scottwilkerson
I guess all I can suggest is going back further.
Re: Not able to place servers into maintenance mode
Posted: Thu Apr 19, 2018 1:07 pm
by bsivavani
I tried to create new user from Admin --> manage users, but the htpasswd.users file not updating.
Re: Not able to place servers into maintenance mode
Posted: Thu Apr 19, 2018 1:39 pm
by scottwilkerson
bsivavani wrote:I tried to create new user from Admin --> manage users, but the htpasswd.users file not updating.
My guess is because it isn't in a valid format
you can try blanking it out first by running
Code: Select all
cat /dev/null > /usr/local/nagiosxi/etc/htpasswd.users
Re: Not able to place servers into maintenance mode
Posted: Fri Apr 20, 2018 5:46 am
by bsivavani
Thanks for your help. We were able to fix the issue by replacing the backup htpasswd.users file.
Re: Not able to place servers into maintenance mode
Posted: Fri Apr 20, 2018 9:24 am
by scottwilkerson
Glad you were able to get it resolved!