lfd on hostname High 5 minute load average alert| Increase load average threshold on csf

Date posted: 13-11-2017

Consider a scenario where we have multiple cores and by default lfd will send notification incase if the server load goes more than 5. Csf doesn’t detect the number of cores and edit its configuration file. In this post, we will explain on how to increase load average threshold on csf configuration.

Implementation:

Check the number of cores available on the server using the below command.

nproc

This will give the number of cores available on the server.

Edit the csf configuration PT_LOAD_AVG to the number which we obtained from the previous update. In our example, lets assume the number of processor is 10.

vi /etc/csf/csf.conf

PT_LOAD_AVG = "10"

Restart the csf service to make the changes comes into effect.

csf -r

Now,  we will receive email notification only the load goes beyond 10.

 

1 thought on “lfd on hostname High 5 minute load average alert| Increase load average threshold on csf”

  1. This just changes the number of minutes in the threshold. Meaning default is a 5-minute load average. You can set PT_LOAD_AVG to 1, 5, or 15. To change what average load level will actually send the alert, you want to modify PT_LOAD_LEVEL. With default values, an average load of 6 or more over a 5-minute period will trigger the alert.

Leave a Reply