K
K
Khurshed Abdujalil2018-02-15 08:09:55
linux
Khurshed Abdujalil, 2018-02-15 08:09:55

What monitoring system to install?

advise which monitoring system to install, a simple vps 1GB of RAM, with attendance of 100-200 does not stand up, 90% of memory is used, which affects system performance and the site takes a long time to load. Set monit
check system $HOST
if loadavg (1min) > 4 then alert
if loadavg (5min) > 2 then alert
if cpu usage > 75% for 10 cycles then alert
if cpu usage > 85% for 10 cycles then restart
if memory usage > 75% then alert
if memory usage > 85% then restart
if swap usage > 25% then alert
but the condition
if memory usage > 85% then restart - doesn't work in
general I want the server to reboot at least for now

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
solalex, 2018-02-15
@solalex

Better look at which process is loading the percent and start optimizing it
, and for reboot the correct command
is if cpu usage > 85% for 10 cycles then exec /sbin/reboot
but this is a crutch

V
Victor Taran, 2018-02-16
@shambler81

Monitor here. monit-it.ru
And third-party monitoring and modules from nagios can eat
And even fix errors.
Cheap, cheerful, simple. does not load the server

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question