Install Monit:
sudo -i
amazon-linux-extras install epel
yum -y install monit

 

Config monit:

vim /etc/monitrc

set daemon 1
# set logfile /var/log/monit.log

check process squid with pidfile /run/squid.pid
start program = "/usr/sbin/squid -f /etc/squid/squid.conf"
# if failed port 808 protocol http then restart

  set daemon 1
  # set logfile /var/log/monit.log

Disable and stop squid  then enable monit

systemctl stop squid
systemctl disable squid
systemctl enable monit
systemctl start monit

View status

monit summary
monit status

相关文章:

  • 2021-06-21
  • 2021-11-18
  • 2021-11-27
  • 2022-12-23
  • 2021-07-10
  • 2021-05-26
  • 2021-06-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-08
  • 2021-10-09
  • 2022-01-24
  • 2022-12-23
  • 2022-02-01
相关资源
相似解决方案