サボテンのLighttpd統計

lighttpdサーバーにはmod_statusモジュールがあり、サーバーの現在のステータスに関する小さな情報を表示します。 この機会をサボテンにねじ込んでください



まず、mod_statusを台無しにする方法を説明します。



モジュールのリストにmod_statusを追加します。



server.modules + =(

「mod_status」







ページへのアクセス方法の設定を規定します



status.status-url = "/ server-status"





http:// localhost / server-statusに移動すると、次が表示されます。



画像



ここからCactiのスクリプトをダウンロードします: http : //forums.cacti.net/download.php?id=8273



解凍して、 / usr / local / share / cacti / scripts / ss_lighttpd_stats.phpファイルに保存します(Freebsdの場合)



cactiを開き、 テンプレートのインポートに進み、cacti_host_template_webserver_lighttpd.xmlをインポートします



チャート用の4つの新しいテンプレートがあるはずです。



画像



グラフを作成して観察します=)



画像



画像



PSスクリプトにはPHP 5のインストールが必要です

スクリプトページ: forums.cacti.net/about19676.html

nginxの同様の記事: habrahabr.ru/blogs/sysadm/66605




All Articles