ä»ã«ä¼¼ããã¼ã«ãããã°æãã¦æ¬²ããã§ã ãã¼ãã¢ãã¬ã¼ã¸ãç£è¦ãã¦ä»»æã®ã³ãã³ããå®è¡ããã³ãã³ã - blog.nomadscafe.jp ãã¾ã¾ã§ä½¿ã£ããã¨ã¯ãªãã£ãã®ã§ãããmonit ã§ã§ããã¯ããã¨æã£ã¦å®é¨ãä¸è¬çã«ã¯ãè² è·ãä¸ãã£ããããã»ã¹ãå¿çããªããªã£ããåèµ·åãã®ãããªç¨éã«ä½¿ããã¼ã«ã§ãã # /etc/monit/monitrc check system localhost start program = "/path/to/command" if loadavg (1min) > 2 then start[追è¨] exec ã使ãã»ããããã¨ã®ãææãã³ã¡ã³ãã§ããã ãã¾ããã check system localhost if loadavg (1min) > 2 then exec "/path/to/command"ããã§ãã¼ãã¢ãã¬ã¼ã¸ã®1åå¹³åã2ãè¶
{{#tags}}- {{label}}
{{/tags}}