国产欧美日韩第一页|日本一二三不卡视频|在线精品小视频,亚洲第一免费播放区,metcn人体亚洲一区,亚洲精品午夜视频

幫助中心 >  技術知識庫 >  網站相關 >  網站運營 >  Zabbix3.0監(jiān)控Apache2.4服務器狀態(tài)

Zabbix3.0監(jiān)控Apache2.4服務器狀態(tài)

2017-03-23 00:40:20 4658

Zabbix3.0監(jiān)控Apache2.4服務器狀態(tài)

我們需要啟動mod_status來監(jiān)控apache,執(zhí)行如下命令:

a2enmod status

然后找到status.conf來配置mod_status,如果使用的是Debian發(fā)行版本,status.conf文件應該在/etc/apache2/mods-enabled/status.conf,配置如下:

<IfModule mod_status.c>
#
# Allow server status reports generated by mod_status,
# with the URL of http://www.tjdsmy.cn/server-status
# Uncomment and change the ".example.com" to allow
# access from other hosts.
#
ExtendedStatus On
<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
</Location>

Listen 61709
NameVirtualHost 127.0.0.1:61709
<VirtualHost 127.0.0.1:61709>
</VirtualHost>
</IfModule>

然后重啟apache

/etc/init.d/apache2 restart

并添加如下行到zabbix的/etc/zabbix/zabbix_agentd.conf:

# Apache Keys
UserParameter=apache.status[*],wget -q -O /dev/null "http://www.tjdsmy.cn:61709/server-status?auto" && wget -q -O - "http://www.tjdsmy.cn:61709/server-status?auto" | awk '/$1: / {print $NF}'

現在重啟zabbix agent。

/etc/init.d/zabbix-agent restart

之后就可以在zabbix看到apache的監(jiān)控數據了。


提交成功!非常感謝您的反饋,我們會繼續(xù)努力做到更好!

這條文檔是否有幫助解決問題?

非常抱歉未能幫助到您。為了給您提供更好的服務,我們很需要您進一步的反饋信息:

在文檔使用中是否遇到以下問題: