Page 2 of 2
Re: Nagiosmobile passwords
Posted: Thu Sep 08, 2016 12:52 pm
by eloyd
Mine does:
Code: Select all
# ls -l /usr/local/nagiosxi/etc/htpasswd.users
-rw-r--r-- 1 nagios apache 108 Sep 7 11:30 /usr/local/nagiosxi/etc/htpasswd.users
<login occurred moments ago>
# ls -l /usr/local/nagiosxi/etc/htpasswd.users
-rw-r--r-- 1 nagios apache 108 Sep 8 13:52 /usr/local/nagiosxi/etc/htpasswd.users
Re: Nagiosmobile passwords
Posted: Thu Sep 08, 2016 12:54 pm
by ssax
Yes, it should get updated just like eloyd is showing.
Re: Nagiosmobile passwords
Posted: Thu Sep 08, 2016 12:58 pm
by BanditBBS
Then that is my issue. Any idea why it wouldn't be getting updated?
Re: Nagiosmobile passwords
Posted: Thu Sep 08, 2016 1:08 pm
by ssax
Are you on 5.2.7 for the one you're having issues with? Permissions look proper, what is the output of these commands:
Code: Select all
chage -l nagios
grep nag /etc/group
grep "User \|Group " /etc/httpd/conf/httpd.conf
sestatus
Do you have the htpasswd file in a different location? Please validate the setting in
/usr/local/nagiosxi/html/config.inc.php:
Code: Select all
$cfg['htaccess_file'] = "/usr/local/nagiosxi/etc/htpasswd.users";
Also, run a
tail -f /var/log/httpd/*error_log and then login and see if there are any relevant errors.
Thanks
Re: Nagiosmobile passwords
Posted: Thu Sep 08, 2016 1:48 pm
by BanditBBS
No errors in the logs and the config variable is set correctly. Here is the output to all the commands you asked for:
Code: Select all
[nagios@iss-chi-nag05 libexec]$ chage -l nagios
Last password change : Apr 01, 2015
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
Code: Select all
[nagios@iss-chi-nag05 libexec]$ grep nag /etc/group
nagios:x:500:nagios,apache,snmptt,jclark
nagcmd:x:501:nagios,apache,snmptt
pnagasubramanya:x:2148:
Code: Select all
[nagios@iss-chi-nag05 libexec]$ grep "User \|Group " /etc/httpd/conf/httpd.conf
# . On SCO (ODT 3) use "User nouser" and "Group nogroup".
# when the value of (unsigned)Group is above 60000;
# don't use Group #-1 on these systems!
User apache
Group apache
Code: Select all
[nagios@iss-chi-nag05 libexec]$ sestatus
SELinux status: disabled
Re: Nagiosmobile passwords
Posted: Thu Sep 08, 2016 2:54 pm
by lmiltchev
BanditBBS, you don't give us any clues...
What are the permissions on the "etc" directory?
Can you "touch" the file and update the timestamp as nagios user?
Code: Select all
su nagios
ls -la /usr/local/nagiosxi/etc/htpasswd.users
touch /usr/local/nagiosxi/etc/htpasswd.users
ls -la /usr/local/nagiosxi/etc/htpasswd.users
Re: Nagiosmobile passwords
Posted: Thu Sep 08, 2016 3:03 pm
by BanditBBS
Hey, I only reach out when I have no clue what to even try
Code: Select all
[nagios@iss-chi-nag05 ~]$ ls -lad /usr/local/nagiosxi/etc
drwxr-xr-x 3 nagios nagios 4096 Jul 16 2014 /usr/local/nagiosxi/etc
[nagios@iss-chi-nag05 ~]$ ls -la /usr/local/nagiosxi/etc/htpasswd.users
-rw-r--r-- 1 nagios apache 4970 Aug 15 2015 /usr/local/nagiosxi/etc/htpasswd.users
[nagios@iss-chi-nag05 ~]$ touch /usr/local/nagiosxi/etc/htpasswd.users
[nagios@iss-chi-nag05 ~]$ ls -la /usr/local/nagiosxi/etc/htpasswd.users
-rw-r--r-- 1 nagios apache 4970 Sep 8 15:02 /usr/local/nagiosxi/etc/htpasswd.users
Re: Nagiosmobile passwords
Posted: Thu Sep 08, 2016 5:02 pm
by ssax
Did you try changing your AD password and then trying to login again? Or create a new user and login for the first time? Try those if you didn't. I assume it occurred since last year

but after the touch, please try it again and see if it updates.
Thank you
Re: Nagiosmobile passwords
Posted: Fri Sep 09, 2016 8:12 am
by BanditBBS
Looks like its working again

Close this up. I think there was some garbage lines in top of the file, I deleted them and can now see the file updating.