免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1995 | 回复: 0
打印 上一主题 下一主题

[使用帮助] Lighttpd [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-05-16 16:30 |只看该作者 |倒序浏览

Lighttpd配置mod_status

先配置加载lighttpd的mod_status模块,有两种方法。




第一种方法:

1,编辑lighttpd的module.conf 配置文件,加载mod_status模块,并取消include "conf.d/status.conf" 注释。
          server.modules =(
                        "mod_access";
                         " mod_status";
                            ……
                           )


2, 编辑mod_status 的配置文
            #cd conf.d
            #vim  status.conf
            #server.modules += ( "mod_status" )


注:注释此项因为已经在module.conf中已经加载了该模块,如果再次加载,会报下面的错误
   Starting lighttpd: 2010-09-09 02:33:15: (plugin.c.131) Cannot load plugin mod_status more than once, please fix your config (we may not accept such      configs in future releases

   $HTTP["remoteip"] == "192.168.1.88" {
    #注:此项是设置 允许那台主机访问http://ip/server-status 这个页面,来查看lighttpd的工作状态
                  status.status-url          = "/server-status"
                  status.config-url          = "/server-config"
                  status.statistics-url      = "/server-statistics"
                  status.enable-sort         = "enable"
     }



第二种方法就是在module.conf文件中只需要取消include “conf.d/status.conf” 注释,并编辑mod_status的配置文件
             server.modules += ( "mod_status" )
             $HTTP["remoteip"] == "192.168.1.88" {
                            status.status-url          = "/server-status"
                            status.config-url          = "/server-config"
                            status.statistics-url      = "/server-statistics"
                            status.enable-sort         = "enable"
              }


注意,上文中的IP地址,您需要根据实际情况,填写OSA监控精灵服务端所在的IP地址。

重启lighttpd服务后,检查配置是否正确,访问:
http://ip/server-status
http://ip/server-config
http://ip/server-statistics


Lighttpd自定义告警指标
   Lighttpd并发连接数(单位:数值)         
   Lighttpd吞吐率(单位: reqs/s)

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP