Page 2 of 4

Re: max_check_result_file_age

Posted: Tue Nov 05, 2019 10:19 pm
by sandeepatil
drwxr-sr-x 2 nagios nagios 184410112 Nov 5 19:18 checkresults

Re: max_check_result_file_age

Posted: Wed Nov 06, 2019 8:03 am
by scottwilkerson
Lets run the following to correct the permissions:

Code: Select all

chmod g-s -R checkresults
chmod g+wx -R checkresults

Re: max_check_result_file_age

Posted: Wed Nov 13, 2019 7:03 am
by sandeepatil
Please find the details,

drwxr-xr-x 2 nagios nagios 218431488 Nov 13 07:01 checkresults

Re: max_check_result_file_age

Posted: Wed Nov 13, 2019 7:37 am
by scottwilkerson
still not group write, execute the following

Code: Select all

chmod g+w -R checkresults

Re: max_check_result_file_age

Posted: Wed Nov 13, 2019 8:02 am
by sandeepatil
Executed shared command

drwxrwxr-x 2 nagios nagios 4096 Nov 13 08:00 checkresults

What is expected group / permission, please share the example.

Re: max_check_result_file_age

Posted: Wed Nov 13, 2019 8:10 am
by scottwilkerson
That is it

Code: Select all

drwxrwxr-x 2 nagios nagios

Re: max_check_result_file_age

Posted: Wed Nov 13, 2019 8:12 am
by scottwilkerson
And now provided your httpd/apache user is part of the nagios group things should work correctly

Code: Select all

grep nag /etc/group 

Re: max_check_result_file_age

Posted: Wed Nov 13, 2019 8:19 am
by sandeepatil
Please find details

[nagios@abc123 ~]$ grep nag /etc/group
nagios:x:12366:apache,nagcmd
apache:x:2800:nagcmd,nagios
nagcmd:x:31235:nagios

Re: max_check_result_file_age

Posted: Wed Nov 13, 2019 8:34 am
by scottwilkerson
That looks ok, are you still seeing the same problem you had before?

Re: max_check_result_file_age

Posted: Wed Nov 13, 2019 8:56 am
by sandeepatil
We will observe for 24 Hrs and update, please confirm permission commands for checkresults dir.

chmod g-s -R checkresults
chmod g+wx -R checkresults
chmod g+w -R checkresults