阿里狼 发表于 2017-12-25 13:56:21

分布式监控系统Zabbix

# /data/apache/bin/httpd -v  
Server version: Apache/2.4.25 (Unix)
  
Server built:   Jun 19 2017 19:18:00
  

  
# cat /data/apache/conf/httpd.conf|grep status    //确保apache支持status查询功能
  
LoadModule status_module modules/mod_status.so
  
# cat /data/apache/conf/httpd.conf|grep httpd-info.conf      
  
Include conf/extra/httpd-info.conf                //打开这一行的注释
  
# cat /data/apache/conf/extra/httpd-info.conf
  
.........
  
<Location /server-status>
  SetHandler server-status
  Order deny,allow
  Allow from all
  
</Location>
  
#
  
# ExtendedStatus controls whether Apache will generate "full" status
  
# information (ExtendedStatus On) or just basic information (ExtendedStatus
  
# Off) when the "server-status" handler is called. The default is Off.
  
#
  
ExtendedStatus On
  
# /data/apache/bin/httpd -k restart      //重启apache服务
  
然后就可以访问apache的状态页面了
  
# curl http://localhost/server-status
  
# curl http://localhost/server-status?auto
  
localhost
  
ServerVersion: Apache/2.4.25 (Unix) OpenSSL/1.0.2l PHP/5.6.30
  
ServerMPM: event
  
...........
  
ConnsTotal: 2
  
ConnsAsyncWriting: 0
  
ConnsAsyncKeepAlive: 1
  
ConnsAsyncClosing: 1
  
Scoreboard: ___________________________________________________________________________________________W________............................................................................................................................................................................................................................................................................................................
  
TLSSessionCacheStatus
  
CacheType: SHMCB
  
CacheSharedMemory: 512000
  
CacheCurrentEntries: 6
  
.......
页: [1]
查看完整版本: 分布式监控系统Zabbix