max_check_result_file_age

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Re: max_check_result_file_age

Post by sandeepatil »

drwxr-sr-x 2 nagios nagios 184410112 Nov 5 19:18 checkresults
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: max_check_result_file_age

Post by scottwilkerson »

Lets run the following to correct the permissions:

Code: Select all

chmod g-s -R checkresults
chmod g+wx -R checkresults
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Re: max_check_result_file_age

Post by sandeepatil »

Please find the details,

drwxr-xr-x 2 nagios nagios 218431488 Nov 13 07:01 checkresults
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: max_check_result_file_age

Post by scottwilkerson »

still not group write, execute the following

Code: Select all

chmod g+w -R checkresults
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Re: max_check_result_file_age

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

Re: max_check_result_file_age

Post by scottwilkerson »

That is it

Code: Select all

drwxrwxr-x 2 nagios nagios
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: max_check_result_file_age

Post 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 
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Re: max_check_result_file_age

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

Re: max_check_result_file_age

Post by scottwilkerson »

That looks ok, are you still seeing the same problem you had before?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Re: max_check_result_file_age

Post 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
Locked