MonitÀ» ÀÌ¿ëÇÑ demon ÀÚµ¿ Àç½ÇÇà (CentOS7)

   Á¶È¸ 11673   Ãßõ 0    

https://www.ehostidc.co.kr/hosting/domestic.php (554)
https://www.ehostidc.co.kr/colocation/colocation.php (533)

1) EPEL repository 활성화

root@localhost:[~]: yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm


2) monit 설치

root@localhost:[~]: yum install monit


3) conf 파1068; 수1221;

root@localhost:[~]: vi /etc/monitrc

157 set httpd port 2812 and // web port

158     use address 192.168.126.30  # only accept connection from localhost (drop if you use M/Monit)  // /196;컬서버IP

159     allow 192.168.126.0/24        # allow localhost to connect to the server and // 1217;근IP

160     allow localhost

161     allow admin:monit      # require user 'admin' with password 'monit' // 웹 1217;근계1221;


4) firewalld 1221;책 추가

root@localhost:[~]: firewall-cmd --permanent --zone=public --add-port=2812/tcp

root@localhost:[~]: firewall-cmd --reload

root@localhost:[~]: netstat -lnp


5) 사용1088; 1648;1221; 모니터링 설1221; (ex: ssh)

root@localhost:[~]: vi /etc/monit.d/sshd

check process ssh with pidfile /var/run/sshd.pid // check process [서비스명] with pidfile “[서비스PID 위치]̶1;

start program = "/usr/bin/systemctl start sshd" // R16;서비스 시1089; 명/16112;̶1;

stop program = "/usr/bin/systemctl stop sshd" // 서비스 1473;1648; 명/16112;̶1;

if failed host 127.0.0.1 port 22 then restart // /196;컬서버1032; 22번 포트가 1473;1648; 시 1116;시1089;


monit R11;t 명/16112;/196; 문법설1221; 1060;상 유무 확1064; 가능

설1221; 완료 후 systemctl restart monit


6) Daemon 체크 간ᅄ1;

root@localhost:[~]: vi /etc/monitrc // 체크 간ᅄ1; 30초


7) 테스트

root@localhost:[~]: cat /var/log/monit.log


8) web 1217;속


9 1452;요 명/16112;






https://www.aiocp.co.kr/ ( 딥러닝,머신러닝 서버 판매 ,컨설팅) https://bigbangcloud.co.kr/ ( GPU 클라우드 서비스) ::: AI 서버의 모든것 ::: 인공지능의 시작~ (주)이호스트ICT


Á¦¸ñPage 7/26
2021-09   19315   µö·¯´×¼­¹ö
2021-09   10400   µö·¯´×¼­¹ö
2021-08   10621   µö·¯´×¼­¹ö
2021-08   7646   µö·¯´×¼­¹ö
2021-08   17275   ½ºÄµl¹ÎÇö±â
2021-07   9130   ¹Ú¹®Çü
2021-07   10249   µö·¯´×¼­¹ö
2021-07   13258   µö·¯´×¼­¹ö
2021-07   16068   ±¸Â÷´Ï
2021-06   7699   µö·¯´×¼­¹ö
2021-06   21511   µö·¯´×¼­¹ö
2021-06   7210   Sikieiki
2021-06   7577   È­Á¤Å¥»ï
2021-06   7836   È­Á¤Å¥»ï
2021-06   216   dadad
2021-06   6469   ¿¬À̶ûÁø
2021-05   7483   µö·¯´×¼­¹ö
2021-05   7906   shipse
2021-05   10726   µö·¯´×¼­¹ö
2021-04   12649   È­Á¤Å¥»ï