{"id":117809,"date":"2026-10-25T14:32:30","date_gmt":"2026-10-25T06:32:30","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/117809.html"},"modified":"2026-10-25T14:32:30","modified_gmt":"2026-10-25T06:32:30","slug":"zabbix-app-apache2-%e6%a8%a1%e6%9d%bf%e5%ae%9e%e6%88%98%ef%bc%9a%e5%9f%ba%e4%ba%8e-http-agent-%e4%b8%8e%e4%be%9d%e8%b5%96%e9%a1%b9%e9%9b%b6%e8%84%9a%e6%9c%ac%e7%9b%91%e6%8e%a7-apache-2-web-%e6%9c%8d","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/117809.html","title":{"rendered":"Zabbix App Apache2 \u6a21\u677f\u5b9e\u6218\uff1a\u57fa\u4e8e HTTP Agent \u4e0e\u4f9d\u8d56\u9879\u96f6\u811a\u672c\u76d1\u63a7 Apache 2 Web \u670d\u52a1\u5668"},"content":{"rendered":"<h3 class=\"gcb-project-title\">\u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011community-templates<\/h3>\n<p class=\"gcb-project-desc\">Zabbix Community Templates repository<\/p>\n<p>    <span class=\"gcb-project-addr-label\">\u9879\u76ee\u5730\u5740&#xff1a;<\/span><br \/>\n    <span class=\"gcb-project-addr-link\">https:\/\/gitcode.com\/gh_mirrors\/co\/community-templates<\/span> <\/p>\n<p>  <span class=\"gcb-project-btn\"> <span class=\"gcb-project-btn-main\">\u70b9\u51fb\u67e5\u770b<\/span> <span class=\"gcb-project-btn-sub\">\u514d\u8d39\u4e0b\u8f7d<\/span> <\/span> <\/p>\n<p>\u672c\u7bc7\u6280\u672f\u6307\u5357\u56f4\u7ed5 Zabbix Community Templates \u4ed3\u5e93\u4e2d\u7684 App Apache2 \u6a21\u677f&#xff08;Applications\/template_apache_2_web_server_http_item&#xff09;\u5c55\u5f00&#xff0c;\u8bb2\u89e3\u5982\u4f55\u5728\u4e0d\u90e8\u7f72\u4efb\u4f55\u5916\u90e8\u811a\u672c\u7684\u524d\u63d0\u4e0b&#xff0c;\u4ec5\u51ed Zabbix \u81ea\u5e26\u7684 HTTP agent \u91c7\u96c6\u9879 &#043; \u4f9d\u8d56\u9879&#xff08;Dependent item&#xff09;&#043; \u6b63\u5219\u9884\u5904\u7406&#xff0c;\u5b9e\u73b0\u5bf9 Apache 2 Web \u670d\u52a1\u5668\u7684\u7248\u672c\u3001\u8bbf\u95ee\u91cf\u3001\u541e\u5410\u91cf\u3001\u5e76\u53d1 worker\u3001\u8fd0\u884c\u65f6\u957f\u7b49\u6307\u6807\u7684\u4e00\u7ad9\u5f0f\u76d1\u63a7\u3002\u8bfb\u5b8c\u672c\u6587&#xff0c;\u4f60\u5c06\u638c\u63e1\u8be5\u6a21\u677f\u7684\u5b8f\u914d\u7f6e\u3001\u91c7\u96c6\u94fe\u8def\u3001\u9884\u5904\u7406\u6b63\u5219\u3001\u89e6\u53d1\u5668\u903b\u8f91\u4e0e\u5bfc\u5165\u63a5\u5165\u7684\u5b8c\u6574\u5b9e\u64cd\u65b9\u6cd5&#xff0c;\u5e76\u80fd\u57fa\u4e8e\u4ed3\u5e93\u6e90\u7801&#xff08;XML\/YAML \u5bfc\u51fa\u6587\u4ef6&#xff09;\u7406\u89e3\u5176\u5e95\u5c42\u5b9e\u73b0\u3002<\/p>\n<h3>\u6a21\u677f\u5b9a\u4f4d&#xff1a;\u5355 HTTP \u8bf7\u6c42\u9a71\u52a8\u7684\u8f7b\u91cf\u7ea7 Apache \u76d1\u63a7\u65b9\u6848<\/h3>\n<p>App Apache2 \u6a21\u677f\u7684\u6838\u5fc3\u8bbe\u8ba1\u7406\u5ff5\u5728 5.0 README \u7684 Overview \u4e2d\u8868\u8ff0\u5f97\u975e\u5e38\u660e\u786e&#xff1a;<\/p>\n<p>Zabbix template for apache 2 web server without external script. This template have macros for setting URL status page. This template uses only one http item as a master item and other items depend it.<\/p>\n<p>\u5373&#xff1a;\u65e0\u9700\u5916\u90e8\u811a\u672c\u3001\u901a\u8fc7\u5b8f\u5b9a\u5236\u72b6\u6001\u9875 URL\u3001\u53ea\u6709\u4e00\u4e2a HTTP \u4e3b\u91c7\u96c6\u9879&#xff0c;\u5176\u4f59\u6307\u6807\u5168\u90e8\u7531\u4f9d\u8d56\u9879\u6d3e\u751f\u3002\u6574\u4e2a\u6a21\u677f\u4e0d\u4f9d\u8d56 Zabbix agent\u3001\u4e0d\u4f9d\u8d56 SSH\/SNMP&#xff0c;\u53ea\u8981 Zabbix server\/proxy \u80fd\u901a\u8fc7 HTTP(S) \u8bbf\u95ee Apache \u7684 mod_status \u72b6\u6001\u9875\u5373\u53ef\u5de5\u4f5c&#xff0c;\u975e\u5e38\u9002\u5408\u5bf9\u7eaf Web \u670d\u52a1\u5668\u505a&#034;\u5f00\u7bb1\u5373\u7528&#034;\u5f0f\u76d1\u63a7\u3002<\/p>\n<p>\u4ece\u6a21\u677f\u5bfc\u51fa\u7684\u5143\u6570\u636e\u770b&#xff0c;\u8be5\u6a21\u677f\u5b9a\u4e49\u5728 Templates\/Applications \u7ec4\u4e0b&#xff0c;\u6a21\u677f\u540d\u4e3a App Apache2&#xff08;5.0 \u7248\u672c\u4f7f\u7528\u4f20\u7edf application Apache2 \u5206\u7ec4&#xff0c;5.4\/6.0 \u7248\u672c\u5219\u4f7f\u7528 Application: Apache2 \u6807\u7b7e&#xff09;&#xff0c;\u4ed3\u5e93\u540c\u65f6\u63d0\u4f9b\u4e86\u4e09\u79cd\u7248\u672c\u683c\u5f0f\u7684\u5bfc\u51fa\u6587\u4ef6&#xff1a;<\/p>\n<ul>\n<li>5.0 XML&#xff08;zabbix_export version 5.0&#xff09;<\/li>\n<li>5.4 YAML<\/li>\n<li>6.0 YAML<\/li>\n<\/ul>\n<p>\u4e09\u4e2a\u7248\u672c\u7684\u6838\u5fc3\u903b\u8f91\u5b8c\u5168\u4e00\u81f4&#xff0c;\u4ec5\u5bfc\u51fa\u683c\u5f0f\u4e0e\u89e6\u53d1\u5668\u8868\u8fbe\u5f0f\u8bed\u6cd5&#xff08;5.0 \u4f7f\u7528 {str(&#8230;)}&#xff0c;5.4\/6.0 \u4f7f\u7528 find(&#8230;)&#xff09;\u5b58\u5728\u5dee\u5f02\u3002<\/p>\n<h3>\u90e8\u7f72\u524d\u63d0&#xff1a;Zabbix 4&#043; \u4e0e\u542f\u7528 mod_status<\/h3>\n<p>README \u660e\u786e\u5217\u51fa\u4e86\u4e24\u9879\u786c\u6027\u8981\u6c42&#xff1a;<\/p>\n<li>Zabbix 4&#043;&#xff1a;\u6a21\u677f\u4f7f\u7528\u7684 HTTP agent\u3001\u4f9d\u8d56\u9879\u3001\u6b63\u5219\u9884\u5904\u7406\u5747\u4e3a Zabbix 4.x \u8d77\u6210\u719f\u53ef\u7528\u7684\u80fd\u529b&#xff0c;\u4ed3\u5e93\u9488\u5bf9 5.0\/5.4\/6.0 \u63d0\u4f9b\u5bf9\u5e94\u683c\u5f0f\u7684\u5bfc\u51fa\u6587\u4ef6&#xff1b;<\/li>\n<li>\u542f\u7528 Apache \u7684 mod_status \u6a21\u5757&#xff1a;\u8fd9\u662f\u6570\u636e\u6765\u6e90\u7684\u6839\u672c&#xff0c;\u6a21\u677f\u8bf7\u6c42\u7684 server-status?auto \u9875\u9762\u6b63\u662f\u7531\u8be5\u6a21\u5757\u751f\u6210\u3002<\/li>\n<h4>\u5728 Apache \u4fa7\u542f\u7528 mod_status<\/h4>\n<p>Debian\/Ubuntu \u7cfb\u901a\u5e38\u901a\u8fc7 a2enmod \u542f\u7528&#xff08;\u6a21\u5757\u914d\u7f6e\u4f4d\u4e8e \/etc\/apache2\/mods-available\/status.conf&#xff09;&#xff1a;<\/p>\n<p>sudo a2enmod status<br \/>\nsudo systemctl reload apache2<\/p>\n<p>RHEL\/CentOS \u7cfb\u5219\u5728 httpd.conf \u4e2d\u786e\u8ba4\u5df2\u52a0\u8f7d mod_status&#xff0c;\u5e76\u653e\u7f6e\u72b6\u6001\u9875 Location \u914d\u7f6e&#xff1a;<\/p>\n<p>LoadModule status_module modules\/mod_status.so<\/p>\n<p>&lt;Location \/server-status&gt;<br \/>\n    SetHandler server-status<br \/>\n    Require local<br \/>\n    # \u6309\u9700\u653e\u884c\u76d1\u63a7\u7aef\u7f51\u6bb5&#xff0c;\u4f8b\u5982&#xff1a;<br \/>\n    # Require ip 10.0.0.0\/8<br \/>\n&lt;\/Location&gt;<\/p>\n<p># Apache 2.3.6 \u4e4b\u524d\u7684\u7248\u672c\u9700\u8981\u663e\u5f0f\u5f00\u542f\u6269\u5c55\u72b6\u6001<br \/>\nExtendedStatus On<\/p>\n<p>\u8bf4\u660e&#xff1a;ExtendedStatus On \u5728\u8f83\u65b0\u7248\u672c Apache \u4e2d\u5df2\u662f\u9ed8\u8ba4\u884c\u4e3a&#xff0c;\u4ec5\u8001\u7248\u672c\u9700\u8981\u663e\u5f0f\u914d\u7f6e&#xff1b;Require local \u7528\u4e8e\u9650\u5236\u72b6\u6001\u9875\u53ea\u5141\u8bb8\u672c\u673a\u8bbf\u95ee&#xff0c;\u82e5 Zabbix server \u4e0e Apache \u4e0d\u5728\u540c\u4e00\u4e3b\u673a&#xff0c;\u8bf7\u6539\u4e3a Require ip &lt;Zabbix server \u7684 IP&gt; \u6216\u76f8\u5e94\u7f51\u6bb5&#xff0c;\u907f\u514d\u72b6\u6001\u4fe1\u606f\u5bf9\u5916\u6cc4\u9732\u3002<\/p>\n<h4>\u9a8c\u8bc1\u6570\u636e\u6e90\u53ef\u7528<\/h4>\n<p>\u6a21\u677f\u5b9e\u9645\u8bf7\u6c42\u7684 URL \u7531\u5b8f\u62fc\u63a5\u800c\u6210&#xff0c;\u9ed8\u8ba4\u7b49\u4ef7\u4e8e http:\/\/localhost:80\/server-status?auto&#xff0c;\u5176\u4e2d ?auto \u8ba9 mod_status \u8fd4\u56de\u7eaf\u6587\u672c\u952e\u503c\u5bf9\u683c\u5f0f\u800c\u975e HTML \u9875\u9762\u3002\u4e0a\u7ebf\u524d\u5efa\u8bae\u5148\u624b\u52a8\u9a8c\u8bc1&#xff1a;<\/p>\n<p>curl -s &#034;http:\/\/localhost\/server-status?auto&#034;<\/p>\n<p>\u6b63\u5e38\u54cd\u5e94\u7c7b\u4f3c&#xff1a;<\/p>\n<p>ServerVersion: Apache\/2.4.52 (Ubuntu)<br \/>\nServerMPM: event<br \/>\nServer Built: &#8230;<br \/>\nCurrentTime: &#8230;<br \/>\nRestartTime: &#8230;<br \/>\nServerUptimeSeconds: 123456<br \/>\nServerUptime: &#8230;<br \/>\nTotal accesses: 1000 &#8211; Total Requests<br \/>\nTotal kBytes: 2000 &#8211; Total kB<br \/>\nReqPerSec: 1.234<br \/>\nBytesPerSec: 5678.90<br \/>\nBytesPerReq: 3713.73<br \/>\nBusyWorkers: 5<br \/>\nIdleWorkers: 95<\/p>\n<p>\u8fd9\u4e9b\u5b57\u6bb5\u6b63\u662f\u6a21\u677f\u5404\u4f9d\u8d56\u9879\u6b63\u5219\u9884\u5904\u7406\u7684\u5339\u914d\u76ee\u6807\u3002\u52a1\u5fc5\u6ce8\u610f&#xff1a;\u4e0d\u540c Apache \u7248\u672c&#xff08;2.2 \u4e0e 2.4&#xff09;\u4ee5\u53ca\u4e0d\u540c\u53d1\u884c\u7248\u5728\u5b57\u6bb5\u540d\u5927\u5c0f\u5199\u3001\u662f\u5426\u5305\u542b\u5c0f\u6570\u4f4d\u7b49\u65b9\u9762\u5b58\u5728\u5dee\u5f02&#xff0c;\u5efa\u8bae\u5148\u6293\u53d6\u771f\u5b9e\u8f93\u51fa\u6838\u5bf9&#xff0c;\u518d\u51b3\u5b9a\u662f\u5426\u9700\u8981\u5fae\u8c03\u4e0b\u6587\u8868\u683c\u4e2d\u7684\u6b63\u5219\u3002<\/p>\n<h3>\u6a21\u677f\u7ed3\u6784&#xff1a;\u4e00\u4e2a\u4e3b\u91c7\u96c6\u9879 &#043; \u4e5d\u4e2a\u4f9d\u8d56\u9879<\/h3>\n<p>\u6a21\u677f\u6ca1\u6709\u6a21\u677f\u94fe\u63a5&#xff08;Template links&#xff09;\u3001\u6ca1\u6709\u53d1\u73b0\u89c4\u5219&#xff08;Discovery rules&#xff09;&#xff0c;\u7ed3\u6784\u6781\u5176\u7cbe\u7b80&#xff1a;1 \u4e2a HTTP agent \u4e3b\u91c7\u96c6\u9879 &#043; 9 \u4e2a\u4f9d\u8d56\u9879 &#043; 1 \u4e2a\u53ef\u7528\u6027\u89e6\u53d1\u5668 &#043; 3 \u4e2a\u5185\u7f6e\u56fe\u5f62\u3002<\/p>\n<p>\u5176\u5de5\u4f5c\u6d41\u4e3a&#xff1a;<\/p>\n<p>Apache mod_status (?auto \u7eaf\u6587\u672c)<br \/>\n        \u2502  HTTP GET&#xff08;\u9ed8\u8ba4\u6bcf 1 \u5206\u949f\u4e00\u6b21&#xff09;<br \/>\n        \u25bc<br \/>\napache2.get  &#xff08;HTTP agent \u4e3b\u91c7\u96c6\u9879&#xff0c;TEXT \u7c7b\u578b&#xff0c;retrieve_mode&#061;BOTH&#xff09;<br \/>\n        \u2502  \u4f9d\u8d56\u9879\u7ee7\u627f\u539f\u59cb\u6587\u672c<br \/>\n        \u25bc<br \/>\n9 \u4e2a\u4f9d\u8d56\u9879&#xff08;delay&#061;0&#xff0c;\u5404\u81ea\u901a\u8fc7 REGEX \u9884\u5904\u7406\u63d0\u53d6\u5b57\u6bb5&#xff09;<br \/>\n        \u2502<br \/>\n        \u25bc<br \/>\n\u7248\u672c \/ \u8bbf\u95ee\u91cf \/ \u5b57\u8282\u6570 \/ worker \u6570 \/ \u901f\u7387 \/ \u8fd0\u884c\u65f6\u957f \u7b49\u76d1\u63a7\u9879<\/p>\n<h4>\u4e3b\u91c7\u96c6\u9879 apache2.get<\/h4>\n<p>\u4e3b\u91c7\u96c6\u9879\u662f\u6574\u6761\u94fe\u8def\u7684&#034;\u6570\u636e\u6cf5&#034;&#xff08;\u89c1 5.0 XML \u4e0e 6.0 YAML&#xff09;&#xff1a;<\/p>\n<table>\n<tr>\u5c5e\u6027\u503c\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>\u540d\u79f0<\/td>\n<td>Apache2 server-status<\/td>\n<td>\u2014<\/td>\n<\/tr>\n<tr>\n<td>\u7c7b\u578b<\/td>\n<td>HTTP agent<\/td>\n<td>Zabbix server\/proxy \u76f4\u63a5\u53d1\u8d77 HTTP \u8bf7\u6c42<\/td>\n<\/tr>\n<tr>\n<td>\u952e\u503c<\/td>\n<td>apache2.get<\/td>\n<td>\u4f9d\u8d56\u9879\u7684 master_item \u5747\u6307\u5411\u5b83<\/td>\n<\/tr>\n<tr>\n<td>URL<\/td>\n<td>{$STUB_STATUS_PROT}:\/\/{$STUB_STATUS_HOST}:{$STUB_STATUS_PORT}\/{$STUB_STATUS_PATH}<\/td>\n<td>\u7531\u56db\u4e2a\u5b8f\u52a8\u6001\u62fc\u63a5<\/td>\n<\/tr>\n<tr>\n<td>\u66f4\u65b0\u95f4\u9694<\/td>\n<td>1m&#xff08;README \u6807\u6ce8&#xff09;<\/td>\n<td>\u6574\u4e2a\u6a21\u677f\u552f\u4e00\u7684\u5468\u671f\u6027\u7f51\u7edc\u8bf7\u6c42<\/td>\n<\/tr>\n<tr>\n<td>\u503c\u7c7b\u578b<\/td>\n<td>TEXT<\/td>\n<td>\u5b58\u50a8\u5b8c\u6574\u72b6\u6001\u9875\u6587\u672c<\/td>\n<\/tr>\n<tr>\n<td>\u68c0\u7d22\u6a21\u5f0f<\/td>\n<td>BOTH<\/td>\n<td>\u540c\u65f6\u4fdd\u5b58\u54cd\u5e94\u5934\u4e0e\u54cd\u5e94\u4f53&#xff0c;\u4f9b\u89e6\u53d1\u5668\u68c0\u7d22 HTTP\/1.1 200 \u72b6\u6001\u884c<\/td>\n<\/tr>\n<tr>\n<td>\u5386\u53f2\u4fdd\u7559<\/td>\n<td>1h \/ trends \u5173\u95ed<\/td>\n<td>\u539f\u59cb\u6587\u672c\u53ea\u77ed\u6682\u4fdd\u7559<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>\u4f9d\u8d56\u9879&#xff1a;delay&#061;0 \u4e0e\u6b63\u5219\u63d0\u53d6<\/h4>\n<p>\u5176\u4f59 9 \u4e2a\u76d1\u63a7\u9879\u5168\u90e8\u662f DEPENDENT \u7c7b\u578b&#xff0c;delay&#061;0 \u8868\u793a\u4e0d\u4ea7\u751f\u72ec\u7acb\u91c7\u96c6\u5468\u671f&#xff0c;\u5b8c\u5168\u7ee7\u627f\u4e3b\u91c7\u96c6\u9879\u7684\u53d6\u503c\u2014\u2014\u8fd9\u6b63\u662f&#034;\u4e00\u6b21 HTTP \u8bf7\u6c42\u3001\u6d3e\u751f\u5168\u90e8\u6307\u6807&#034;\u7684\u8bbe\u8ba1\u7cbe\u9ad3&#xff0c;\u5bf9\u88ab\u76d1\u63a7\u7684 Apache \u4e0e\u7f51\u7edc\u5e26\u5bbd\u7684\u5f00\u9500\u90fd\u6781\u5c0f\u3002\u6bcf\u4e2a\u4f9d\u8d56\u9879\u901a\u8fc7 REGEX \u9884\u5904\u7406\u6b65\u9aa4\u4ece apache2.get \u7684\u539f\u59cb\u6587\u672c\u4e2d\u6293\u53d6\u76ee\u6807\u5b57\u6bb5&#xff0c;\u9884\u5904\u7406\u53c2\u6570\u4e3a \u6a21\u5f0f &#043; \u8f93\u51fa\u683c\u5f0f \\\\1&#xff08;\u5373\u8f93\u51fa\u7b2c\u4e00\u4e2a\u6355\u83b7\u7ec4&#xff09;\u3002<\/p>\n<p>\u4f9d\u8d56\u9879\u5b8c\u6574\u6e05\u5355\u5982\u4e0b&#xff08;\u540d\u79f0\u3001\u952e\u503c\u3001\u5355\u4f4d\u3001\u6b63\u5219\u5747\u53d6\u81ea 5.0 XML \/ 5.4 YAML&#xff09;&#xff1a;<\/p>\n<table>\n<tr>\u76d1\u63a7\u9879\u540d\u79f0\u952e\u503c\u503c\u7c7b\u578b \/ \u5355\u4f4d\u9884\u5904\u7406\u6b63\u5219<\/tr>\n<tbody>\n<tr>\n<td>Apache2 server version<\/td>\n<td>apache2.Version<\/td>\n<td>CHAR&#xff08;\u4e0d\u5b58\u8d8b\u52bf&#xff09;<\/td>\n<td>ServerVersion:\\\\s&#043;(.&#043;)<\/td>\n<\/tr>\n<tr>\n<td>Apache2 total accesses<\/td>\n<td>apache2.Accesses<\/td>\n<td>\u65e0\u7b26\u53f7\u6570\u503c<\/td>\n<td>Total Accesses:\\\\s&#043;([0-9]&#043;)<\/td>\n<\/tr>\n<tr>\n<td>Apache2 total requests size<\/td>\n<td>apache2.kBytes<\/td>\n<td>\u5355\u4f4d B<\/td>\n<td>Total Accesses:\\\\s&#043;([0-9]&#043;)<\/td>\n<\/tr>\n<tr>\n<td>Apache2 workers idle<\/td>\n<td>apache2.IdleWorkers<\/td>\n<td>\u65e0\u7b26\u53f7\u6570\u503c<\/td>\n<td>IdleWorkers:\\\\s&#043;([0-9]&#043;)<\/td>\n<\/tr>\n<tr>\n<td>Apache2 workers busy<\/td>\n<td>apache2.BusyWorkers<\/td>\n<td>\u65e0\u7b26\u53f7\u6570\u503c<\/td>\n<td>BusyWorkers:\\\\s&#043;([0-9]&#043;)<\/td>\n<\/tr>\n<tr>\n<td>Apache2 request size<\/td>\n<td>apache2.BytesPerReq<\/td>\n<td>FLOAT \/ B<\/td>\n<td>BytesPerReq:\\\\s&#043;([0-9]&#043;)<\/td>\n<\/tr>\n<tr>\n<td>Apache2 bytes per second<\/td>\n<td>apache2.BytesPerSec<\/td>\n<td>FLOAT \/ Bps<\/td>\n<td>BytesPerSec:\\\\s&#043;([0-9]&#043;)<\/td>\n<\/tr>\n<tr>\n<td>Apache2 requests per second<\/td>\n<td>apache2.ReqPerSec<\/td>\n<td>FLOAT \/ rps<\/td>\n<td>ReqPerSec:\\\\s&#043;(.*\\\\.[0-9]&#043;)<\/td>\n<\/tr>\n<tr>\n<td>Apache2 server uptime<\/td>\n<td>apache2.ServerUptimeSeconds<\/td>\n<td>\u5355\u4f4d uptime<\/td>\n<td>\\\\bUptime:\\\\s&#043;([0-9.]&#043;)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5176\u4e2d\u503c\u5f97\u6ce8\u610f\u7684\u5b9e\u6218\u7ec6\u8282&#xff1a;<\/p>\n<ul>\n<li>apache2.kBytes \u7684\u6b63\u5219\u4e0e apache2.Accesses \u5b8c\u5168\u76f8\u540c&#xff08;\u5747\u5339\u914d Total Accesses&#xff09;&#xff0c;\u4ece\u6e90\u7801\u7ed3\u6784\u770b\u7591\u4f3c\u590d\u5236\u7c98\u8d34\u9057\u7559&#xff1b;\u5b9e\u9645 mod_status \u81ea\u52a8\u8f93\u51fa\u4e2d\u603b\u5b57\u8282\u6570\u5bf9\u5e94\u7684\u662f Total kBytes: \u5b57\u6bb5\u3002\u82e5\u53d1\u73b0\u8be5\u76d1\u63a7\u9879\u65e0\u6570\u636e&#xff0c;\u8bf7\u6838\u5bf9\u771f\u5b9e\u8f93\u51fa\u5e76\u4fee\u6b63\u6b63\u5219\u3002<\/li>\n<li>\u90e8\u5206\u53d1\u884c\u7248\/\u7248\u672c\u8f93\u51fa\u7684\u662f\u5c0f\u5199 Total accesses:&#xff0c;\u800c\u6a21\u677f\u6b63\u5219\u4e2d\u7684 Total Accesses \u662f\u5927\u5c0f\u5199\u654f\u611f\u5339\u914d&#xff1b;\u540c\u6837&#xff0c;ReqPerSec \u6b63\u5219\u9700\u8981\u5b57\u6bb5\u503c\u5fc5\u987b\u542b\u5c0f\u6570\u70b9&#xff08;.*\\\\.[0-9]&#043;&#xff09;\u3002\u8fd9\u4e9b\u90fd\u5c5e\u4e8e&#034;\u4ee5\u5f53\u524d\u4ed3\u5e93\u6a21\u677f\u4e3a\u51c6\u3001\u5b9e\u9645\u73af\u5883\u9700\u9a8c\u8bc1&#034;\u7684\u6ce8\u610f\u70b9\u2014\u2014\u5148 curl \u786e\u8ba4\u5b57\u6bb5\u540d\u4e0e\u683c\u5f0f&#xff0c;\u518d\u51b3\u5b9a\u662f\u5426\u8c03\u6574\u9884\u5904\u7406\u3002<\/li>\n<li>apache2.ServerUptimeSeconds \u9879\u7684\u6b63\u5219\u5339\u914d Uptime: \u6807\u7b7e\u540e\u7684\u9996\u4e2a\u6570\u5b57\u4e32&#xff1b;\u4e0d\u540c Apache \u7248\u672c\u7684 uptime \u5b57\u6bb5\u5f62\u6001&#xff08;ServerUptimeSeconds: \/ ServerUptime: \/ \u8001\u7248\u672c Uptime:&#xff09;\u7565\u6709\u5dee\u5f02&#xff0c;\u540c\u6837\u5efa\u8bae\u4ee5\u771f\u5b9e\u8f93\u51fa\u4e3a\u51c6\u3002<\/li>\n<\/ul>\n<h3>\u5b8f\u914d\u7f6e&#xff1a;\u56db\u4e2a {$STUB_STATUS_*} \u5b8f\u5b9a\u5236\u72b6\u6001\u9875 URL<\/h3>\n<p>\u6a21\u677f\u5c06\u72b6\u6001\u9875\u5730\u5740\u62c6\u89e3\u4e3a\u56db\u4e2a\u6587\u672c\u5b8f&#xff08;README \u7684 &#034;Macros used&#034; \u8868\u683c&#xff09;&#xff0c;\u9ed8\u8ba4\u503c\u5982\u4e0b&#xff1a;<\/p>\n<table>\n<tr>\u5b8f\u540d\u79f0\u9ed8\u8ba4\u503c\u7c7b\u578b\u4f5c\u7528<\/tr>\n<tbody>\n<tr>\n<td>{$STUB_STATUS_HOST}<\/td>\n<td>localhost<\/td>\n<td>\u6587\u672c\u5b8f<\/td>\n<td>\u76ee\u6807 Apache \u4e3b\u673a\u540d\/IP<\/td>\n<\/tr>\n<tr>\n<td>{$STUB_STATUS_PATH}<\/td>\n<td>server-status?auto<\/td>\n<td>\u6587\u672c\u5b8f<\/td>\n<td>\u72b6\u6001\u9875\u8def\u5f84&#xff08;\u542b ?auto \u53c2\u6570&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>{$STUB_STATUS_PORT}<\/td>\n<td>80<\/td>\n<td>\u6587\u672c\u5b8f<\/td>\n<td>\u670d\u52a1\u7aef\u53e3<\/td>\n<\/tr>\n<tr>\n<td>{$STUB_STATUS_PROT}<\/td>\n<td>http<\/td>\n<td>\u6587\u672c\u5b8f<\/td>\n<td>\u534f\u8bae&#xff08;http \u6216 https&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e3b\u91c7\u96c6\u9879\u7684 URL \u5373\u7531\u8fd9\u56db\u4e2a\u5b8f\u76f4\u63a5\u62fc\u88c5&#xff1a;<\/p>\n<p>{$STUB_STATUS_PROT}:\/\/{$STUB_STATUS_HOST}:{$STUB_STATUS_PORT}\/{$STUB_STATUS_PATH}<\/p>\n<p>\u5b8f\u5728 5.0 XML \u4e0e\u5404\u7248\u672c YAML \u7684 macros \u6bb5\u4e2d\u539f\u6837\u5b9a\u4e49&#xff08;\u5982 {$STUB_STATUS_HOST} \u2192 localhost\u3001{$STUB_STATUS_PATH} \u2192 server-status?auto\u3001{$STUB_STATUS_PORT} \u2192 80\u3001{$STUB_STATUS_PROT} \u2192 http&#xff09;\u3002\u63a5\u5165\u65f6\u53ea\u9700\u5728\u4e3b\u673a\u7ea7\u522b\u8986\u76d6\u8fd9\u56db\u4e2a\u5b8f&#xff0c;\u5373\u53ef\u8ba9\u6a21\u677f\u76d1\u63a7\u4efb\u610f\u5730\u5740\u3001\u4efb\u610f\u7aef\u53e3\u3001HTTP \u6216 HTTPS \u7684 Apache \u5b9e\u4f8b&#xff0c;\u65e0\u9700\u6539\u52a8\u6a21\u677f\u672c\u8eab\u3002<\/p>\n<p>\u5178\u578b\u8986\u76d6\u573a\u666f&#xff1a;<\/p>\n<ul>\n<li>\u76d1\u63a7\u8fdc\u7a0b\u670d\u52a1\u5668&#xff1a;{$STUB_STATUS_HOST} &#061; \u76ee\u6807 IP\/FQDN&#xff1b;<\/li>\n<li>Apache \u76d1\u542c 8080&#xff1a;{$STUB_STATUS_PORT} &#061; 8080&#xff1b;<\/li>\n<li>\u5df2\u914d\u7f6e TLS&#xff1a;{$STUB_STATUS_PROT} &#061; https&#xff0c;\u5e76\u6ce8\u610f Zabbix \u4fa7\u76f8\u5e94\u8bc1\u4e66\u6821\u9a8c\/\u8df3\u8fc7\u8bbe\u7f6e&#xff1b;<\/li>\n<li>\u81ea\u5b9a\u4e49\u72b6\u6001\u9875\u8def\u5f84&#xff1a;{$STUB_STATUS_PATH} &#061; custom-status?auto\u3002<\/li>\n<\/ul>\n<h3>\u53ef\u7528\u6027\u89e6\u53d1\u5668&#xff1a;Failed to fetch apache2 server status page<\/h3>\n<p>\u867d\u7136 README \u7684 &#034;Triggers&#034; \u4e00\u8282\u6807\u6ce8&#034;\u65e0\u89e6\u53d1\u5668&#034;&#xff0c;\u4f46\u6a21\u677f\u5bfc\u51fa\u6587\u4ef6\u4e2d\u5b9e\u9645\u5185\u5d4c\u4e86\u4e00\u4e2a\u6302\u5728\u4e3b\u91c7\u96c6\u9879\u4e0a\u7684\u89e6\u53d1\u5668&#xff08;README \u8868\u683c\u672a\u6536\u5f55&#xff0c;\u8fd9\u662f\u9605\u8bfb\u4ed3\u5e93\u65f6\u5bb9\u6613\u9057\u6f0f\u7684\u70b9&#xff09;&#xff1a;<\/p>\n<table>\n<tr>\u5c5e\u60275.0&#xff08;XML&#xff09;5.4 \/ 6.0&#xff08;YAML&#xff09;<\/tr>\n<tbody>\n<tr>\n<td>\u540d\u79f0<\/td>\n<td>Failed to fetch apache2 server status page<\/td>\n<td>\u540c\u5de6<\/td>\n<\/tr>\n<tr>\n<td>\u95ee\u9898\u8868\u8fbe\u5f0f<\/td>\n<td>{str(&#034;HTTP\/1.1 200&#034;)}&#061;0 or {nodata(15m)}&#061;1<\/td>\n<td>find(\/App Apache2\/apache2.get,,&#034;like&#034;,&#034;HTTP\/1.1 200&#034;)&#061;0 or nodata(\/App Apache2\/apache2.get,15m)&#061;1<\/td>\n<\/tr>\n<tr>\n<td>\u6062\u590d\u8868\u8fbe\u5f0f<\/td>\n<td>{str(&#034;HTTP\/1.1 200&#034;)}&#061;1<\/td>\n<td>find(\/App Apache2\/apache2.get,,&#034;like&#034;,&#034;HTTP\/1.1 200&#034;)&#061;1<\/td>\n<\/tr>\n<tr>\n<td>\u6062\u590d\u6a21\u5f0f<\/td>\n<td>RECOVERY_EXPRESSION<\/td>\n<td>\u540c\u5de6<\/td>\n<\/tr>\n<tr>\n<td>\u4f18\u5148\u7ea7<\/td>\n<td>AVERAGE<\/td>\n<td>\u540c\u5de6<\/td>\n<\/tr>\n<tr>\n<td>\u624b\u52a8\u5173\u95ed<\/td>\n<td>YES<\/td>\n<td>\u540c\u5de6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5176\u903b\u8f91\u4e3a&#xff1a;\u5f53\u4e3b\u91c7\u96c6\u9879\u4fdd\u5b58\u7684\u6587\u672c\u4e2d\u68c0\u7d22\u4e0d\u5230 HTTP\/1.1 200 \u72b6\u6001\u884c&#xff08;\u9875\u9762\u65e0\u6cd5\u6b63\u5e38\u83b7\u53d6&#xff09;&#xff0c;\u6216\u8fde\u7eed 15 \u5206\u949f\u65e0\u65b0\u6570\u636e&#xff08;\u91c7\u96c6\u4e2d\u65ad&#xff09;\u65f6\u89e6\u53d1 AVERAGE \u544a\u8b66&#xff1b;\u4e00\u65e6\u72b6\u6001\u884c\u6062\u590d\u53ef\u89c1\u5373\u81ea\u52a8\u6062\u590d\u3002\u4e4b\u6240\u4ee5\u80fd\u68c0\u7d22\u5230\u72b6\u6001\u884c&#xff0c;\u6b63\u662f\u56e0\u4e3a\u4e3b\u91c7\u96c6\u9879\u8bbe\u7f6e\u4e86 retrieve_mode&#061;BOTH\u2014\u2014TEXT \u503c\u7c7b\u578b\u7684 HTTP \u91c7\u96c6\u9879\u4f1a\u540c\u65f6\u4fdd\u7559\u54cd\u5e94\u5934\u4e0e\u54cd\u5e94\u4f53&#xff0c;HTTP\/1.1 200 \u4fbf\u6765\u81ea\u54cd\u5e94\u5934\u7684\u72b6\u6001\u884c\u3002<\/p>\n<p>\u8fd9\u4e2a\u89e6\u53d1\u5668\u627f\u62c5\u4e86&#034;\u9875\u9762\u4e0d\u53ef\u8fbe\u3001\u8d85\u65f6\u3001\u8ba4\u8bc1\u5931\u8d25\u3001\u72b6\u6001\u9875\u88ab\u7981\u7528&#034;\u7b49\u573a\u666f\u7684\u515c\u5e95\u544a\u8b66&#xff0c;\u662f\u6a21\u677f\u4e2d\u552f\u4e00\u7684\u544a\u8b66\u903b\u8f91&#xff0c;\u5efa\u8bae\u5728\u63a5\u5165\u540e\u901a\u8fc7\u505c\u6389 Apache \u6216\u6539\u9519\u5b8f\u505a\u4e00\u6b21\u544a\u8b66\u6f14\u7ec3\u3002<\/p>\n<h3>\u5185\u7f6e\u56fe\u5f62&#xff1a;\u4e09\u5f20\u5f00\u7bb1\u5373\u7528\u7684\u8d8b\u52bf\u56fe<\/h3>\n<p>\u6a21\u677f\u5728 graphs \u6bb5\u5b9a\u4e49\u4e86\u4e09\u4e2a\u56fe\u5f62&#xff08;5.0 XML \u4e0e 5.4\/6.0 YAML \u5b8c\u5168\u4e00\u81f4&#xff09;&#xff1a;<\/p>\n<table>\n<tr>\u56fe\u5f62\u540d\u79f0\u5305\u542b\u76d1\u63a7\u9879\u7ed8\u56fe\u6837\u5f0f\/\u989c\u8272<\/tr>\n<tbody>\n<tr>\n<td>Apache2 requests<\/td>\n<td>apache2.ReqPerSec&#xff08;\u53f3\u8f74&#xff09;&#043; apache2.BytesPerSec<\/td>\n<td>BOLD_LINE 1A7C11 \/ GRADIENT_LINE 2774A4<\/td>\n<\/tr>\n<tr>\n<td>Apache2 request size<\/td>\n<td>apache2.Accesses &#043; apache2.kBytes<\/td>\n<td>BOLD_LINE E53935 \/ GRADIENT_LINE FFB300<\/td>\n<\/tr>\n<tr>\n<td>Apache2 workers<\/td>\n<td>apache2.BusyWorkers &#043; apache2.IdleWorkers<\/td>\n<td>GRADIENT_LINE 1A7C11 \/ GRADIENT_LINE 2774A4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u524d\u4e24\u5f20\u56fe ymin_type_1 \u5747\u4e3a FIXED&#xff08;\u4ece 0 \u8d77\u7ed8&#xff09;&#xff0c;\u5206\u522b\u53cd\u6620\u8bf7\u6c42\/\u541e\u5410\u901f\u7387\u4e0e\u7d2f\u8ba1\u8bbf\u95ee\/\u6d41\u91cf&#xff1b;Apache2 workers \u56fe\u7528\u4e8e\u89c2\u5bdf worker \u6c60\u7684\u7e41\u5fd9\u4e0e\u7a7a\u95f2\u5206\u5e03&#xff0c;\u662f\u5224\u65ad Apache \u662f\u5426&#034;\u88ab\u6253\u6ee1&#034;\u7684\u76f4\u89c2\u4f9d\u636e\u3002\u5bfc\u5165\u6a21\u677f\u540e\u8fd9\u4e9b\u56fe\u5f62\u4f1a\u81ea\u52a8\u51fa\u73b0\u5728\u4e3b\u673a\u7684\u56fe\u5f62\u5217\u8868\u4e2d&#xff0c;\u65e0\u9700\u989d\u5916\u914d\u7f6e\u3002<\/p>\n<h3>\u5bfc\u5165\u4e0e\u63a5\u5165 Zabbix \u7684\u5b8c\u6574\u6b65\u9aa4<\/h3>\n<p>\u53c2\u7167\u4ed3\u5e93\u6839 README \u7684\u901a\u7528\u6d41\u7a0b&#xff0c;\u7ed3\u5408\u672c\u6a21\u677f\u7279\u6027&#xff0c;\u63a8\u8350\u6309\u4ee5\u4e0b\u6b65\u9aa4\u63a5\u5165&#xff1a;<\/p>\n<li>\u9009\u62e9\u6b63\u786e\u7684\u5bfc\u51fa\u6587\u4ef6&#xff1a;Zabbix 5.0 \u5bfc\u5165 5.0 XML&#xff1b;Zabbix 5.4\/6.0 \u5206\u522b\u5bfc\u5165\u5bf9\u5e94\u7684 5.4 YAML \/ 6.0 YAML\u3002<\/li>\n<li>\u786e\u8ba4 Apache \u4fa7\u5c31\u7eea&#xff1a;\u6309\u4e0a\u6587\u542f\u7528 mod_status \u5e76\u653e\u884c\u72b6\u6001\u9875\u8bbf\u95ee&#xff0c;\u7528 curl &#034;http:\/\/localhost\/server-status?auto&#034; \u9a8c\u8bc1\u8f93\u51fa\u3002<\/li>\n<li>\u5bfc\u5165\u6a21\u677f&#xff1a;Zabbix Web \u754c\u9762 \u2192 \u6570\u636e\u6536\u96c6 \u2192 \u6a21\u677f \u2192 \u5bfc\u5165 \u2192 \u9009\u62e9\u6587\u4ef6 \u2192 \u5bfc\u5165\u3002\u5bfc\u5165\u540e\u53ef\u5728\u6a21\u677f\u5217\u8868\u4e2d\u770b\u5230 App Apache2&#xff08;\u5c5e\u4e8e Templates\/Applications \u7ec4&#xff09;\u3002<\/li>\n<li>\u94fe\u63a5\u5230\u4e3b\u673a\u5e76\u8986\u76d6\u5b8f&#xff1a;\u914d\u7f6e \u2192 \u4e3b\u673a \u2192 \u7f16\u8f91\u76ee\u6807\u4e3b\u673a \u2192 \u5728&#034;\u6a21\u677f&#034;\u4e2d\u94fe\u63a5 App Apache2&#xff1b;\u5728&#034;\u5b8f&#034;\u9875\u7b7e\u8986\u76d6 {$STUB_STATUS_HOST}&#xff08;\u76ee\u6807 Apache \u5730\u5740&#xff09;\u3001\u5fc5\u8981\u65f6\u8986\u76d6\u7aef\u53e3\/\u534f\u8bae\/\u8def\u5f84\u3002\u5982\u679c Zabbix server \u4e0e Apache \u540c\u673a&#xff0c;\u9ed8\u8ba4\u5b8f\u5373\u53ef\u76f4\u63a5\u5de5\u4f5c\u3002<\/li>\n<li>\u9a8c\u8bc1\u6570\u636e&#xff1a;\u7b49\u5f85 1&#xff5e;2 \u4e2a\u91c7\u96c6\u5468\u671f\u540e&#xff0c;\u5728&#034;\u76d1\u6d4b \u2192 \u6700\u65b0\u6570\u636e&#034;\u4e2d\u786e\u8ba4 apache2.get \u6709 TEXT \u503c\u30019 \u4e2a\u4f9d\u8d56\u9879\u5747\u6709\u6570\u503c&#xff1b;\u82e5\u67d0\u4f9d\u8d56\u9879\u663e\u793a&#034;\u4e0d\u652f\u6301&#034;&#xff0c;\u56de\u5230&#034;\u6838\u5bf9\u771f\u5b9e\u8f93\u51fa\u4e0e\u6b63\u5219&#034;\u4e00\u8282\u6392\u67e5\u5b57\u6bb5\u540d\u5dee\u5f02\u3002<\/li>\n<li>\u9a8c\u8bc1\u544a\u8b66&#xff1a;\u4e34\u65f6\u505c\u6389 Apache \u6216\u6545\u610f\u5199\u9519\u5b8f&#xff0c;\u786e\u8ba4 Failed to fetch apache2 server status page \u89e6\u53d1\u5668\u5728 15 \u5206\u949f\u5185\u8fdb\u5165\u95ee\u9898\u72b6\u6001&#xff0c;\u6062\u590d\u670d\u52a1\u540e\u81ea\u52a8\u6062\u590d\u3002<\/li>\n<h3>\u6e90\u7801\u7ea7\u5b9e\u73b0\u4f50\u8bc1\u901f\u67e5<\/h3>\n<p>\u82e5\u60f3\u6df1\u5165\u6838\u5bf9\u672c\u6587\u6240\u8ff0\u7ec6\u8282&#xff0c;\u53ef\u76f4\u63a5\u5728\u4ed3\u5e93\u4e2d\u67e5\u9605\u4ee5\u4e0b\u6587\u4ef6&#xff1a;<\/p>\n<ul>\n<li>5.0 README&#xff1a;\u6a21\u677f\u6982\u89c8\u3001\u5b8f\u8868\u683c\u3001\u91c7\u96c6\u9879\u6e05\u5355\u7684\u539f\u59cb\u51fa\u5904&#xff1b;<\/li>\n<li>5.0 XML&#xff1a;\u5b8c\u6574\u5b9a\u4e49\u4e86 1 \u4e2a HTTP agent \u4e3b\u9879 &#043; 9 \u4e2a\u4f9d\u8d56\u9879\u3001\u5168\u90e8 REGEX \u9884\u5904\u7406\u53c2\u6570\u30014 \u4e2a\u5b8f\u3001\u5185\u5d4c\u89e6\u53d1\u5668\u4e0e 3 \u4e2a\u56fe\u5f62&#xff1b;<\/li>\n<li>5.4 YAML \u4e0e 6.0 YAML&#xff1a;\u540c\u4e00\u6a21\u677f\u7684 5.4\/6.0 \u5bfc\u51fa\u5f62\u6001&#xff0c;\u989d\u5916\u643a\u5e26 uuid \u4e0e Application: Apache2 \u6807\u7b7e&#xff0c;\u89e6\u53d1\u5668\u8868\u8fbe\u5f0f\u5347\u7ea7\u4e3a find(&#8230;) \u8bed\u6cd5\u3002<\/li>\n<\/ul>\n<p>\u9700\u8981\u8bf4\u660e\u7684\u662f&#xff0c;\u5404\u7248\u672c\u5bfc\u51fa\u6587\u4ef6\u4e2d\u4e3b\u91c7\u96c6\u9879\u5747\u672a\u663e\u5f0f\u4e66\u5199 delay&#xff08;README \u6807\u6ce8\u4e3a 1m&#xff09;&#xff0c;\u4f9d\u8d56\u9879 delay&#061;0 \u610f\u5473\u7740\u5176\u66f4\u65b0\u5468\u671f\u5b8c\u5168\u8ddf\u968f\u4e3b\u91c7\u96c6\u9879&#xff1b;\u5982\u679c\u4f60\u5e0c\u671b\u63d0\u9ad8\u91c7\u96c6\u9891\u7387&#xff08;\u5982 30s&#xff09;&#xff0c;\u53ea\u9700\u4fee\u6539 apache2.get \u7684\u66f4\u65b0\u95f4\u9694\u5373\u53ef&#xff0c;\u4f9d\u8d56\u9879\u4f1a\u81ea\u52a8\u8ddf\u968f\u3002<\/p>\n<h3>\u540c\u7c7b\u6a21\u677f\u53c2\u8003<\/h3>\n<p>\u4ed3\u5e93 Applications\/Web-servers \u4e0b\u8fd8\u7ef4\u62a4\u4e86\u5b98\u65b9\u51fa\u54c1\u7684 Apache \u76d1\u63a7\u6a21\u677f template_apache_http_server&#xff1a;\u5b83\u4ee5 10s \u4e3a\u5468\u671f\u91c7\u96c6 server-status&#xff0c;\u5e76\u901a\u8fc7 18 \u4e2a\u4f9d\u8d56\u9879\u8986\u76d6\u66f4\u7ec6\u7c92\u5ea6\u7684 worker \u72b6\u6001&#xff08;reading\u3001writing\u3001keepalive\u3001DNS lookup\u3001logging\u3001closing \u7b49&#xff09;\u4e0e CPU \u8d1f\u8f7d\u3002\u76f8\u8f83\u4e4b\u4e0b&#xff0c;\u672c\u6a21\u677f&#xff08;App Apache2&#xff09;\u4ee5 1m \u5468\u671f\u30019 \u4e2a\u4f9d\u8d56\u9879\u63d0\u4f9b\u66f4\u8f7b\u91cf\u7684\u6838\u5fc3\u6307\u6807\u96c6&#xff0c;\u4e14\u901a\u8fc7\u5b8f\u628a\u72b6\u6001\u9875\u5730\u5740\u5b8c\u5168\u53c2\u6570\u5316\u2014\u2014\u4e24\u8005\u53ef\u6309\u76d1\u63a7\u5bc6\u5ea6\u9700\u6c42\u53d6\u820d&#xff0c;\u4e5f\u53ef\u4e92\u4e3a\u53c2\u7167\u7406\u89e3&#034;\u4e3b\u91c7\u96c6\u9879 &#043; \u4f9d\u8d56\u9879&#034;\u8fd9\u4e00\u793e\u533a\u6a21\u677f\u7684\u5e38\u89c1\u8bbe\u8ba1\u8303\u5f0f\u3002<\/p>\n<h3>\u7ed3\u8bed<\/h3>\n<p>App Apache2 \u6a21\u677f\u662f Zabbix \u793e\u533a&#034;\u6781\u7b80\u76d1\u63a7&#034;\u601d\u8def\u7684\u5178\u578b\u6837\u672c&#xff1a;\u4e00\u4e2a HTTP agent \u9879\u3001\u56db\u4e2a\u5730\u5740\u5b8f\u3001\u4e5d\u4e2a\u6b63\u5219\u4f9d\u8d56\u9879&#xff0c;\u4fbf\u5b8c\u6210\u4e86 Apache 2 \u670d\u52a1\u5668\u7248\u672c\u3001\u8bbf\u95ee\u91cf\u3001\u541e\u5410\u3001worker \u4e0e\u8fd0\u884c\u72b6\u6001\u7684\u5b8c\u6574\u76d1\u63a7\u95ed\u73af&#xff0c;\u5168\u7a0b\u65e0\u9700\u5916\u90e8\u811a\u672c\u3001\u65e0\u9700\u5728\u88ab\u76d1\u63a7\u7aef\u5b89\u88c5\u4efb\u4f55 Agent \u7ec4\u4ef6\u3002\u7ed3\u5408\u672c\u6587\u63d0\u4f9b\u7684\u6b63\u5219\u6838\u5bf9\u8981\u70b9\u3001\u5b8f\u8986\u76d6\u65b9\u6cd5\u4e0e\u544a\u8b66\u9a8c\u8bc1\u6b65\u9aa4&#xff0c;\u4f60\u53ef\u4ee5\u5feb\u901f\u5c06\u5176\u843d\u5730\u5230\u751f\u4ea7\u73af\u5883&#xff0c;\u5e76\u4f9d\u846b\u82a6\u753b\u74e2\u7406\u89e3\u4e43\u81f3\u81ea\u884c\u7f16\u5199\u540c\u98ce\u683c\u7684 HTTP \u4f9d\u8d56\u9879\u6a21\u677f\u3002<\/p>\n<p>  <img loading=\"lazy\" decoding=\"async\" class=\"gcb-icon-like\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261025063228-6adda27cb75c7.svg\" alt=\"\" width=\"16\" height=\"16\" \/> <span class=\"gcb-like-text\">\u8d5e<\/span>  <\/p>\n<p>   <span class=\"gcb-share-text\">\u5206\u4eab<\/span>  <\/p>\n<h3 class=\"gcb-project-title\">\u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011community-templates<\/h3>\n<p class=\"gcb-project-desc\">Zabbix Community Templates repository<\/p>\n<p>    <span class=\"gcb-project-addr-label\">\u9879\u76ee\u5730\u5740&#xff1a;<\/span><br \/>\n    <span class=\"gcb-project-addr-link\">https:\/\/gitcode.com\/gh_mirrors\/co\/community-templates<\/span> <\/p>\n<p>  <span class=\"gcb-project-btn\"> <span class=\"gcb-project-btn-main\">\u70b9\u51fb\u67e5\u770b<\/span> <span class=\"gcb-project-btn-sub\">\u514d\u8d39\u4e0b\u8f7d<\/span> <\/span> <\/p>\n<h4 class=\"gcb-related-title\">\u76f8\u5173\u63a8\u8350<\/h4>\n<ul class=\"gcb-related-list\">\n<li class=\"gcb-related-item\">\n<h5 class=\"gcb-related-item-title\">\u57fa\u4e8e HTTP agent \u7684 Zabbix Apache2 \u76d1\u63a7\u6a21\u677f&#xff1a;\u96f6\u5916\u90e8\u811a\u672c\u7684 mod_status \u91c7\u96c6\u65b9\u6848<\/h5>\n<p class=\"gcb-related-item-desc\">\u57fa\u4e8e HTTP agent \u7684 Zabbix Apache2 \u76d1\u63a7\u6a21\u677f&#xff1a;\u96f6\u5916\u90e8\u811a\u672c\u7684 mod_status \u91c7\u96c6\u65b9\u6848 \u672c\u7bc7\u6280\u672f\u6307\u5357\u56f4\u7ed5 community te<\/p>\n<\/li>\n<li class=\"gcb-related-item\">\n<h5 class=\"gcb-related-item-title\">Zabbix \u76d1\u63a7 Apache 2 Web \u670d\u52a1\u5668&#xff1a;community-templates \u65e0\u811a\u672c HTTP \u6a21\u677f\u6df1\u5ea6\u89e3\u6790<\/h5>\n<p class=\"gcb-related-item-desc\">Zabbix \u76d1\u63a7 Apache 2 Web \u670d\u52a1\u5668&#xff1a;community templates \u65e0\u811a\u672c HTTP \u6a21\u677f\u6df1\u5ea6\u89e3\u6790 \u5bfc\u8bfb \u672c\u6587\u56f4\u7ed5 Zabbix Co<\/p>\n<\/li>\n<li class=\"gcb-related-item\">\n<h5 class=\"gcb-related-item-title\">Zabbix Apache HTTP Server \u76d1\u63a7\u6a21\u677f\u6df1\u5ea6\u89e3\u6790&#xff1a;\u57fa\u4e8e mod_status \u4e0e HTTP Agent \u7684 1&#043;N \u4f9d\u8d56\u76d1\u63a7\u67b6\u6784&#xff08;community-templates&#xff09;<\/h5>\n<p class=\"gcb-related-item-desc\">Zabbix Apache HTTP Server \u76d1\u63a7\u6a21\u677f\u6df1\u5ea6\u89e3\u6790&#xff1a;\u57fa\u4e8e mod_status \u4e0e HTTP Agent \u7684 1&#043;N \u4f9d\u8d56\u76d1\u63a7\u67b6\u6784&#xff08;commu<\/p>\n<\/li>\n<\/ul>\n<p>  <span class=\"gcb-prev-next-label\">\u4e0a\u4e00\u7bc7&#xff1a;<\/span><br \/>\n   ParsecVDisplay\u5b8c\u5168\u6307\u5357&#xff1a;\u8f7b\u677e\u521b\u5efa\u9ad8\u6027\u80fd\u865a\u62df\u663e\u793a\u5668 <\/p>\n<p>  <span class=\"gcb-prev-next-label\">\u4e0b\u4e00\u7bc7&#xff1a;<\/span><br \/>\n   Windows\u9a71\u52a8\u7ec8\u6781\u6e05\u7406\u6307\u5357&#xff1a;3\u6b65\u91ca\u653eC\u76d810GB\u7a7a\u95f4 <\/p>\n<p>\u521b\u4f5c\u58f0\u660e\uff1a\u672c\u6587\u90e8\u5206\u5185\u5bb9\u7531AI\u8f85\u52a9\u751f\u6210\uff08AIGC\uff09\uff0c\u4ec5\u4f9b\u53c2\u8003<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011community-templates Zabbix Community Templates repository \u9879\u76ee\u5730\u5740&#xff1a; https:\/\/gitcode.com\/gh_mirrors\/co\/community-templates \u70b9\u51fb\u67e5\u770b \u514d\u8d39\u4e0b\u8f7d  \u672c\u7bc7\u6280\u672f\u6307\u5357\u56f4\u7ed5 Zabbix Community Templates \u4ed3\u5e93\u4e2d\u7684 App Apache2 \u6a21\u677f&#xff08;Applications\/template_apache_2_we<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"topic":[],"class_list":["post-117809","post","type-post","status-publish","format-standard","hentry","category-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Zabbix App Apache2 \u6a21\u677f\u5b9e\u6218\uff1a\u57fa\u4e8e HTTP Agent \u4e0e\u4f9d\u8d56\u9879\u96f6\u811a\u672c\u76d1\u63a7 Apache 2 Web \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/117809.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Zabbix App Apache2 \u6a21\u677f\u5b9e\u6218\uff1a\u57fa\u4e8e HTTP Agent \u4e0e\u4f9d\u8d56\u9879\u96f6\u811a\u672c\u76d1\u63a7 Apache 2 Web \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011community-templates Zabbix Community Templates repository \u9879\u76ee\u5730\u5740&#xff1a; https:\/\/gitcode.com\/gh_mirrors\/co\/community-templates \u70b9\u51fb\u67e5\u770b \u514d\u8d39\u4e0b\u8f7d \u672c\u7bc7\u6280\u672f\u6307\u5357\u56f4\u7ed5 Zabbix Community Templates \u4ed3\u5e93\u4e2d\u7684 App Apache2 \u6a21\u677f&#xff08;Applications\/template_apache_2_we\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/117809.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-25T06:32:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261025063228-6adda27cb75c7.svg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/117809.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/117809.html\",\"name\":\"Zabbix App Apache2 \u6a21\u677f\u5b9e\u6218\uff1a\u57fa\u4e8e HTTP Agent \u4e0e\u4f9d\u8d56\u9879\u96f6\u811a\u672c\u76d1\u63a7 Apache 2 Web \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-25T06:32:30+00:00\",\"dateModified\":\"2026-10-25T06:32:30+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/117809.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/117809.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/117809.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Zabbix App Apache2 \u6a21\u677f\u5b9e\u6218\uff1a\u57fa\u4e8e HTTP Agent \u4e0e\u4f9d\u8d56\u9879\u96f6\u811a\u672c\u76d1\u63a7 Apache 2 Web \u670d\u52a1\u5668\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Zabbix App Apache2 \u6a21\u677f\u5b9e\u6218\uff1a\u57fa\u4e8e HTTP Agent \u4e0e\u4f9d\u8d56\u9879\u96f6\u811a\u672c\u76d1\u63a7 Apache 2 Web \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/117809.html","og_locale":"zh_CN","og_type":"article","og_title":"Zabbix App Apache2 \u6a21\u677f\u5b9e\u6218\uff1a\u57fa\u4e8e HTTP Agent \u4e0e\u4f9d\u8d56\u9879\u96f6\u811a\u672c\u76d1\u63a7 Apache 2 Web \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011community-templates Zabbix Community Templates repository \u9879\u76ee\u5730\u5740&#xff1a; https:\/\/gitcode.com\/gh_mirrors\/co\/community-templates \u70b9\u51fb\u67e5\u770b \u514d\u8d39\u4e0b\u8f7d \u672c\u7bc7\u6280\u672f\u6307\u5357\u56f4\u7ed5 Zabbix Community Templates \u4ed3\u5e93\u4e2d\u7684 App Apache2 \u6a21\u677f&#xff08;Applications\/template_apache_2_we","og_url":"https:\/\/www.wsisp.com\/helps\/117809.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-25T06:32:30+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261025063228-6adda27cb75c7.svg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/117809.html","url":"https:\/\/www.wsisp.com\/helps\/117809.html","name":"Zabbix App Apache2 \u6a21\u677f\u5b9e\u6218\uff1a\u57fa\u4e8e HTTP Agent \u4e0e\u4f9d\u8d56\u9879\u96f6\u811a\u672c\u76d1\u63a7 Apache 2 Web \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-25T06:32:30+00:00","dateModified":"2026-10-25T06:32:30+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/117809.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/117809.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/117809.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Zabbix App Apache2 \u6a21\u677f\u5b9e\u6218\uff1a\u57fa\u4e8e HTTP Agent \u4e0e\u4f9d\u8d56\u9879\u96f6\u811a\u672c\u76d1\u63a7 Apache 2 Web \u670d\u52a1\u5668"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/117809","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=117809"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/117809\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=117809"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=117809"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=117809"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=117809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}