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,就可以自由的添加/删除所需要的模板了。
如图:
     

 

 

 

 

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