Page 1 of 4

max_check_result_file_age

Posted: Tue Nov 05, 2019 1:59 am
by sandeepatil
Can we increase max_check_result_file_age=3600 to 100000

Due to checkresult not managing alarm flood, nagios partition inode getting full and this cause other partition full and at last server status is hung.

Re: max_check_result_file_age

Posted: Tue Nov 05, 2019 7:47 am
by scottwilkerson
If you increase the max_check_result_file_age it would allow MORE files to accumulate, not less.

I would thing making it shorter would have a more desired effect

Re: max_check_result_file_age

Posted: Tue Nov 05, 2019 12:09 pm
by sandeepatil
If I set value less the 3600, it will prevent nagios partition inode full and checkresult dir full issue.

Re: max_check_result_file_age

Posted: Tue Nov 05, 2019 12:13 pm
by scottwilkerson
sandeepatil wrote:If I set value less the 3600, it will prevent nagios partition inode full and checkresult dir full issue.
I'm not sure I understand the question

Here's some info about the setting
Max Check Result File Age

Format: max_check_result_file_age=<seconds>
Example: max_check_result_file_age=3600
This options determines the maximum age in seconds that Nagios will consider check result files found in the check_result_path directory to be valid. Check result files that are older that this threshold will be deleted by Nagios and the check results they contain will not be processed. By using a value of zero (0) with this option, Nagios will process all check result files - even if they're older than your hardware :-).

Note: Make sure that only a single instance of Nagios has access to the check result path. If multiple instances of Nagios have their check result path set to the same directory, you will run into problems with check results being processed (incorrectly) by the wrong instance of Nagios! Also note that because of the new core worker architecture in Nagios Core 4, this path is now only used for passive check results.
https://assets.nagios.com/downloads/nag ... gmain.html

Re: max_check_result_file_age

Posted: Tue Nov 05, 2019 1:13 pm
by sandeepatil
Got it, thanks for sharing details.

Question : Why dir checkresult getting filled (physical and inode both) during alarm flood and how to prevent.

Re: max_check_result_file_age

Posted: Tue Nov 05, 2019 1:25 pm
by scottwilkerson
sandeepatil wrote:Got it, thanks for sharing details.

Question : Why dir checkresult getting filled (physical and inode both) during alarm flood and how to prevent.
Are you receiving passive checks?

inodes are the number of allowed files on the drive, each passive check result is going to create a file that will get picked up by the nagios process (provided it is running properly).

Re: max_check_result_file_age

Posted: Tue Nov 05, 2019 1:44 pm
by sandeepatil
Yes, we are receiving passive checks.

In checkresult dir data not getting delete and its increase its increase size of dir to 100% also inode 100%.

You have solution to avoid this.

Re: max_check_result_file_age

Posted: Tue Nov 05, 2019 1:45 pm
by scottwilkerson
What are the permissions of the directory?

Re: max_check_result_file_age

Posted: Tue Nov 05, 2019 1:46 pm
by sandeepatil
Permissions is 755

Re: max_check_result_file_age

Posted: Tue Nov 05, 2019 1:59 pm
by scottwilkerson
sandeepatil wrote:Permissions is 755
owner/group?