Not able to place servers into maintenance mode

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Re: Not able to place servers into maintenance mode

Post 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 ?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Not able to place servers into maintenance mode

Post by scottwilkerson »

The file is supposed to be dynamically created when you create user and they update their passwords
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Not able to place servers into maintenance mode

Post by scottwilkerson »

I guess all I can suggest is going back further.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Re: Not able to place servers into maintenance mode

Post by bsivavani »

I tried to create new user from Admin --> manage users, but the htpasswd.users file not updating.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Not able to place servers into maintenance mode

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Re: Not able to place servers into maintenance mode

Post by bsivavani »

Thanks for your help. We were able to fix the issue by replacing the backup htpasswd.users file.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Not able to place servers into maintenance mode

Post by scottwilkerson »

Glad you were able to get it resolved!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked