CPU LOAD
list Luca Tolomelli
The Analysys.cfg has this default LOAD value: LOAD 5.0 10.0 For a 2 CPU machine, wouldn't those values be too high? A load 2.0 on a 2 CPU machine means a 100% usage of the total "CPU power", right? Any help is appreciated Luca
list Martin Lenko
Hi Luca, the answer is a bit more complex than that, but basically, load 2 on 2 CPU machine means that the machine is just about able to cope with the load thrown at it. If the load is higher than the number of CPUs for a longer period of time, you might have a performance problem. More detailed explanation here: https://www.howtogeek.com/194642/understanding-the-load-average-on-linux-and-other-unix-like-systems/ I usually set the warning/yellow threshold to a value slightly higher than the number of CPUs and the critical/red to twice the number of warning/yellow value. At least on machines with a small number of CPUs. I case of 2CPU machine I would set it to: LOAD 2.5 5.0 Obviously, if you should review the CPU load patterns of your server and update the LOAD config accordingly to make sure the thresholds are not: - too low - you might get a lot of false positive alerts - too high - you might not notice there is something going and the machine is struggling to cope with the load Regards, Martin
list Luca Tolomelli
Ok, thank you for your help :) Il giorno dom 31 mar 2019 alle ore 13:39 Martin Lenko <user-024fe0c6d298@xymon.invalid>
▸
ha scritto:
Hi Luca, the answer is a bit more complex than that, but basically, load 2 on 2 CPU machine means that the machine is just about able to cope with the load thrown at it. If the load is higher than the number of CPUs for a longer period of time, you might have a performance problem. More detailed explanation here: https://www.howtogeek.com/194642/understanding-the-load-average-on-linux-and-other-unix-like-systems/ I usually set the warning/yellow threshold to a value slightly higher than the number of CPUs and the critical/red to twice the number of warning/yellow value. At least on machines with a small number of CPUs. I case of 2CPU machine I would set it to: LOAD 2.5 5.0 Obviously, if you should review the CPU load patterns of your server and update the LOAD config accordingly to make sure the thresholds are not: - too low - you might get a lot of false positive alerts - too high - you might not notice there is something going and the machine is struggling to cope with the load Regards, Martin