cacti監控apache

                     cacti監控apache

1、在apache上要開啓mod_status模塊

2、/usr/local/apache-2.2.21/bin/apachectl -l |grep status

   mod_status.c 

3、在httpd.conf文件裏

   ExtendedStatus On

   配置Apache Server Status的權限
   <location /server-status>
   SetHandler server-status
   Order Deny,Allow
   Deny from all
   Allow from all
   </location>
4、http://hilinux.com/soft/linux/ApacheStats_0.8.2.zip下載模板,把php的腳    本放到你cacti目錄下面的scripts/裏
5、進入cacti頁面,點擊Console ---> Import/Export ---> Import Templates
   --->Save,把解壓後的cacti_host_template_webserver_-_apache.xml文件導入
 
6、選擇Management--->devices 選擇你要監控的機器,在最上面找到create graphs    for this host-->create--->選擇apache開頭的模板-->選擇右下方創建,然後選    擇頁面上方的edit this host,就可以自由的添加/刪除所需要的模板了。
如圖:
     

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章