安裝 psmon 筆記

到以下網址下載安裝

    http://search.cpan.org/~NICOLAW/psmon/

    http://search.cpan.org/CPAN/authors/id/N/NI/NICOLAW/psmon-1.29.tar.gz

說明文件如下

    http://search.cpan.org/src/NICOLAW/psmon-1.29/support/psmon.html

設定檔位址

    /etc/psmon.conf

需要修改的參數

    1. 要把 Disabled True 給 Remark 起來 ( 整個設定檔有兩組要 Remark 掉 )

    2. 設定檢查 Process 的頻率

        Frequency 30

    3. 設定管理者 Email 位址

        AdminEmail  admin@xxx.com

    4. 設定 Apache 的檢查

# Apache Group HTTP Daemon
<Process httpd>
    spawncmd    /sbin/service httpd restart
    pidfile     /var/run/httpd.pid
    # instances 200
    # pctcpu    80
    pctmem      60
</Process>


■■■■■■■■■■■■■
注意事項
■■■■■■■■■■■■■

在設定檔中,設定 Process 的地方!!!

    <Process httpd>

這裡的 "httpd" 必須要在 Process Table 中出現,才可以偵測的到! ( Process Table 就是類似透過 ps -ef 指令傳回的資料 )

  

此文章由 will 發表於 2007/10/29 下午 08:16:00

永久連結 | 評論 (0) | 此文章的RSSRSS comment feed |

分類: 系統管理 | Linux

標籤:

收藏:

相關文章

新增評論


(將顯示您的Gravatar圖示)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



線上預覽

十月 14. 2008 06:14