在monit配置文件中,我們有一個我們期望monit檢查的進程列表。每一個樣子: check process process_name_here
with pidfile /path/to/file.pid
start program = "/bin/bash ..."
stop program = "/bin/bash ..."
if totalmem i
美好的一天。 有沒有什麼辦法可以運行一個php「my_script.php」腳本作爲在秋天的一個惡魔活動一個node.js服務器的行動? 的腳本來執行刪除記錄的關連人士之表: 我嘗試不同的方法,但它不工作我,目前該監控過程腳本如下: #monit script
set logfile /var/log/monit.log
check process nodejs with pidfile "
在/ etc /簡檔中聲明環境變量:這是從monit的運行腳本的 export MYNAME=rhel
內容是[/tmp/printmyname.sh]:的monit的 echo "My Name is: "$MYNAME >> /var/log/env_variablefile.out
內容: check file PrintVariable with path /var/log/som
我已經安裝和(希望)配置在monit的創建/etc/monit.d(在CentOS 6.5) 我的任務文件稱爲test一個新的任務: check host test with address 127.0.0.1
start program = "/usr/local/bin/node /var/node/test/index.js" as uid node and gid node
我很難設置我的monitrc文件。我使用Capistrano的設置monit的在Amazon EC2上使用本教程作爲指南: http://railscasts.com/episodes/375-monit set daemon 30
set logfile /home/deployer/apps/example/shared/log/monit.log
set idfile /var/lib