Tcp 0 0 10.128.0.3:59052 a piece of software starts up, the operating system serving it creates a program to run the associated program. Proto Recv-Q Send-Q Local Address Foreign Address State :~$ sudo service monit restart :~$ netstat -naĪctive Internet connections (servers and established) error : 'ubuntu18niginxmariadb2' loadavg(5min) of 1.9 matches resource limit error : 'ubuntu18niginxmariadb2' loadavg(1min) of 2.1 matches resource limit error : 'ubuntu18niginxmariadb2' loadavg(1min) of 4.3 matches resource limit error : 'ubuntu18niginxmariadb2' loadavg(5min) of 2.1 matches resource limit warning : 'ubuntu18niginxmariadb2' cpu usage of 99.5% matches resource limit error : 'ubuntu18niginxmariadb2' loadavg(1min) of 2.0 matches resource limit warning : 'ubuntu18niginxmariadb2' cpu usage of 50.7% matches resource limit error : 'ubuntu18niginxmariadb2' loadavg(1min) of 1.3 matches resource limit error : 'ubuntu18niginxmariadb2' loadavg(1min) of 4.0 matches resource limit ![]() error : 'ubuntu18niginxmariadb2' loadavg(5min) of 1.8 matches resource limit warning : 'ubuntu18niginxmariadb2' cpu usage of 87.7% matches resource limit error : 'ubuntu18niginxmariadb2' loadavg(1min) of 1.0 matches resource limit info : 'ubuntu18niginxmariadb2' Monit 5.25.1 stopped error : 'ubuntu18niginxmariadb2' loadavg(1min) of 4.1 matches resource limit info : 'ubuntu18niginxmariadb2' exec: '/sbin/shutdown -r now' ![]() error : 'ubuntu18niginxmariadb2' loadavg(5min) of 1.6 matches resource limit warning : 'ubuntu18niginxmariadb2' cpu usage of 98.7% matches resource limit info : 'ubuntu18niginxmariadb2' Monit 5.25.1 started Here are some logs when system resource threshold reached, and monit service was triggered: :~$ cat /var/log/monit.log If cpu usage > 75% for 3 cycles then exec " /sbin/shutdown -r now " If cpu usage > 50% for 5 cycles then alert If loadavg (5min) > 1.05 then exec " /sbin/shutdown -r now " Once gauge exceeded, monit will trigger a reboot using command ‘/sbin/shutdown -r now’. Sep 05 18:20:09 ubuntu-min-nginx systemd: Started LSB: service and resource monitoring daemon.Ĭonfigure monit to monitor system load, cpu usage and memory usage. Sep 05 18:20:09 ubuntu-min-nginx monit: * Starting daemon monitor monit Sep 05 18:20:09 ubuntu-min-nginx systemd: Starting LSB: service and resource monitoring daemon. Sep 05 18:20:09 ubuntu-min-nginx systemd: Stopped LSB: service and resource monitoring daemon. └─27911 /usr/bin/monit -c /etc/monit/monitrc Process: 27896 ExecStart=/etc/init.d/monit start (code=exited, status=0/SUCCESS) Process: 27892 ExecStop=/etc/init.d/monit stop (code=exited, status=0/SUCCESS) Loaded: loaded (/etc/init.d/monit generated)Īctive: active (running) since Thu 18:20:09 UTC 26s ago
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |