Page 3 of 3

Re: Nagios Host/Service Check Timeouts

Posted: Thu Sep 23, 2021 2:59 pm
by pbroste
Hello @Dusan.Mandic

To follow up, we want to increase the ulimit on open files.

Let's check the system:

Code: Select all

cat /proc/sys/fs/file-max
We want this value to be; 1000000

Code: Select all

vi /etc/sysctl.conf
and specify the maximum number of open files permitted by increasing or adding

Code: Select all

fs.file-max = 1000000

Code: Select all

vi /etc/security/limits.conf
Increase or add the following:

Code: Select all

#open files
* soft nofile 1000000
* hard nofile 1000000
#max user processes
* hard nproc 65535
* soft nproc 65535
#stack size
* hard stack 20480
* soft stack 20480
* indicates for all users

These changes require a server reboot, so you will want to get that scheduled.

Please let us know how things look.

Thanks,
Perry

Re: Nagios Host/Service Check Timeouts

Posted: Wed Sep 29, 2021 1:32 pm
by Dusan.Mandic
Hello Perry, it seems that the load has settled in the 4's and I haven't seen random service check timeouts in a while. I think that we can close this one out

Re: Nagios Host/Service Check Timeouts

Posted: Wed Sep 29, 2021 1:44 pm
by pbroste
Excellent, that is good to hear I will go ahead and lock it.