max_check_result_file_age
-
- Posts: 211
- Joined: Tue Dec 27, 2016 3:12 am
max_check_result_file_age
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.
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.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: max_check_result_file_age
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
I would thing making it shorter would have a more desired effect
-
- Posts: 211
- Joined: Tue Dec 27, 2016 3:12 am
Re: max_check_result_file_age
If I set value less the 3600, it will prevent nagios partition inode full and checkresult dir full issue.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: max_check_result_file_age
I'm not sure I understand the questionsandeepatil wrote:If I set value less the 3600, it will prevent nagios partition inode full and checkresult dir full issue.
Here's some info about the setting
https://assets.nagios.com/downloads/nag ... gmain.htmlMax 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.
-
- Posts: 211
- Joined: Tue Dec 27, 2016 3:12 am
Re: max_check_result_file_age
Got it, thanks for sharing details.
Question : Why dir checkresult getting filled (physical and inode both) during alarm flood and how to prevent.
Question : Why dir checkresult getting filled (physical and inode both) during alarm flood and how to prevent.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: max_check_result_file_age
Are you receiving passive checks?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.
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).
-
- Posts: 211
- Joined: Tue Dec 27, 2016 3:12 am
Re: max_check_result_file_age
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.
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.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: max_check_result_file_age
What are the permissions of the directory?
-
- Posts: 211
- Joined: Tue Dec 27, 2016 3:12 am
Re: max_check_result_file_age
Permissions is 755
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: max_check_result_file_age
owner/group?sandeepatil wrote:Permissions is 755