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

max_check_result_file_age

Post 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.
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 »

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
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 »

If I set value less the 3600, it will prevent nagios partition inode full and checkresult dir full issue.
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 »

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
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 »

Got it, thanks for sharing details.

Question : Why dir checkresult getting filled (physical and inode both) during alarm flood and how to prevent.
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 »

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).
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 »

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.
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 »

What are the permissions of the directory?
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 »

Permissions is 755
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 »

sandeepatil wrote:Permissions is 755
owner/group?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked