{"id":2015,"date":"2021-01-01T12:42:03","date_gmt":"2021-01-01T04:42:03","guid":{"rendered":"https:\/\/blog.pfchina.org\/?p=2015"},"modified":"2021-01-02T10:34:46","modified_gmt":"2021-01-02T02:34:46","slug":"%e4%bd%bf%e7%94%a8zabbix%e7%9b%91%e6%8e%a7pfsense-2-4","status":"publish","type":"post","link":"https:\/\/blog.pfchina.org\/?p=2015","title":{"rendered":"\u4f7f\u7528Zabbix\u76d1\u63a7pfSense"},"content":{"rendered":"<p style=\"text-align: justify;\"><a href=\"https:\/\/www.zabbix.com\/\">Zabbix<\/a>\u662f\u4e00\u4e2a\u9ad8\u5ea6\u96c6\u6210\u7684\u4f01\u4e1a\u7ea7\u5f00\u6e90\u7f51\u7edc\u76d1\u63a7\u89e3\u51b3\u65b9\u6848\uff0c\u63d0\u4f9b\u5206\u5e03\u5f0f\u76d1\u63a7\u4ee5\u53ca\u96c6\u4e2d\u7684Web\u7ba1\u7406\u754c\u9762\u3002zabbix\u53ef\u4ee5\u5bf9\u4e3b\u673a\u3001\u7f51\u7edc\u8bbe\u5907\u3001\u6570\u636e\u5e93\u6027\u80fd\u7b49\u5b9e\u65f6\u76d1\u63a7\uff0c\u5229\u7528\u53ef\u5b9a\u5236\u8b66\u544a\u673a\u5236\uff0c\u6765\u4fdd\u8bc1\u7ef4\u62a4\u4eba\u5458\u5feb\u901f\u89e3\u51b3\u95ee\u9898\uff1b\u63d0\u4f9b\u5206\u6790\u62a5\u8868\u53ca\u5b9e\u65f6\u7684\u56fe\u5f62\u5316\u6570\u636e\u5904\u7406\uff0c\u5b9e\u73b0\u5bf9\u4e3b\u673a7&#215;24\u5c0f\u65f6\u96c6\u4e2d\u76d1\u63a7\u3002 Zabbix\u901a\u8fc7C\/S\u6a21\u5f0f\u91c7\u96c6\u6570\u636e\uff0c\u901a\u8fc7B\/S\u6a21\u5f0f\u5728Web\u7aef\u5c55\u793a\u548c\u914d\u7f6e\uff0c\u901a\u8fc7SNMP\u534f\u8bae\u4f20\u8f93\uff0c\u88ab\u76d1\u63a7\u5bf9\u8c61\u53ea\u9700\u8981\u652f\u6301SNMP\u534f\u8bae\u6216\u8005\u8fd0\u884cZabbix\u2014agents\u4ee3\u7406\u7a0b\u5e8f\u5373\u53ef\u3002<\/p>\n<p style=\"text-align: justify;\">pfSense\u652f\u6301Zabbix\u76d1\u63a7\uff0c\u4e0b\u9762\u5728pfsense2.5(\u5f00\u53d1\u7248)\u4e0a\u4ecb\u7ecd\u914d\u7f6e\u8fc7\u7a0b\u3002\u672c\u4f8b\u4e2d\uff0cZabbix\u670d\u52a1\u5668IP\u5730\u5740\uff1a192.168.100.98\uff0cpfSense\u9632\u706b\u5899LAN\u63a5\u53e3\u5730\u5740\uff1a192.168.100.254\u3002<\/p>\n<h1 style=\"text-align: justify;\">\u4e00\u3001\u642d\u5efaZabbix\u670d\u52a1\u5668<\/h1>\n<p style=\"text-align: justify;\">\u5728Zabbix<a href=\"https:\/\/www.zabbix.com\/download\">\u5b98\u7f51<\/a>\u4e0a\uff0c\u6709\u4e0d\u540clinux\u7cfb\u7edf\u642d\u5efaZabbix\u670d\u52a1\u5668\u7684\u7b80\u8981\u8bf4\u660e\uff0c\u6211\u9009\u7528\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e3aUbuntu\uff0c\u642d\u5efa\u8fc7\u7a0b\u5982\u4e0b\uff1a<\/p>\n<h2 style=\"text-align: justify;\">1\u3001\u5b89\u88c5Zabbix\u4ed3\u5e93<\/h2>\n<pre># wget https:\/\/repo.zabbix.com\/zabbix\/5.2\/ubuntu\/pool\/main\/z\/zabbix-release\/zabbix-release_5.2-1+ubuntu20.04_all.deb\r\n# dpkg -i zabbix-release_5.2-1+ubuntu20.04_all.deb\r\n# apt update<\/pre>\n<h2 style=\"text-align: justify;\">2\u3001\u5b89\u88c5Zabbix\u670d\u52a1\u5668\u3001\u524d\u7aef\u3001\u4ee3\u7406<\/h2>\n<pre># apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent<\/pre>\n<h2 style=\"text-align: justify;\">3\u3001\u5b89\u88c5\u6570\u636e\u5e93<\/h2>\n<pre># apt install -y mysql-server<\/pre>\n<p style=\"text-align: justify;\">\u521d\u59cb\u5316\u6570\u636e\u5e93\uff0c\u8f93\u5165root\u8d26\u6237\u7684\u5bc6\u7801\uff0c\u5176\u4ed6\u8bbe\u7f6e\u5982\u679c\u6ca1\u4ec0\u4e48\u7279\u6b8a\u8981\u6c42\uff0c\u5efa\u8bae\u90fd\u9009&#8221;y&#8221;<\/p>\n<pre># mysql_secure_installation<\/pre>\n<h2 style=\"text-align: justify;\">4\u3001\u521b\u5efa\u6570\u636e\u5e93<\/h2>\n<p style=\"text-align: justify;\">\u5728\u6570\u636e\u5e93\u4e3b\u673a\u4e0a\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u65b0\u5efa\u6570\u636e\u5e93:<span style=\"color: #ff0000;\">zabbix<\/span>\uff0c\u7528\u6237\u540d:<span style=\"color: #ff0000;\">zabbix<\/span>\uff0c\u5bc6\u7801:<span style=\"color: #ff0000;\">password<\/span><\/p>\n<pre># mysql -uroot -p\r\npassword\r\nmysql&gt; create database zabbix character set utf8 collate utf8_bin;\r\nmysql&gt; create user zabbix@localhost identified by 'password';\r\nmysql&gt; grant all privileges on zabbix.* to zabbix@localhost;\r\nmysql&gt; quit;<\/pre>\n<h2 style=\"text-align: justify;\">5\u3001\u5bfc\u5165\u521d\u59cb\u67b6\u6784\u548c\u6570\u636e<\/h2>\n<p style=\"text-align: justify;\">\u8fd9\u91cc\u4f1a\u63d0\u793a\u8f93\u5165\u65b0\u521b\u5efa\u7684\u5bc6\u7801\u3002<\/p>\n<pre># zcat \/usr\/share\/doc\/zabbix-server-mysql*\/create.sql.gz | mysql -uzabbix -p zabbix<\/pre>\n<h2 style=\"text-align: justify;\">6\u3001\u914d\u7f6e\u6570\u636e\u5e93<\/h2>\n<p style=\"text-align: justify;\">\u7f16\u8f91\u6587\u4ef6 \/etc\/zabbix\/zabbix_server.conf\uff0c\u5c06\u4ee5\u4e0b\u5b57\u6bb5\u4fee\u6539\u4e3a\uff1a<\/p>\n<pre>DBPassword=password<\/pre>\n<p style=\"text-align: justify;\">\u7531\u4e8e\u6587\u4ef6\u4e3a\u53ea\u8bfb\u5c5e\u6027\uff0c\u5728\u4fee\u6539\u4e4b\u524d\u8bf7\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>Sudo chmod 777 \/etc\/zabbix\/zabbix_server.conf<\/pre>\n<h2 style=\"text-align: justify;\">7\u3001\u542f\u52a8Zabbix\u670d\u52a1\u5668\u548c\u4ee3\u7406\u8fdb\u7a0b<\/h2>\n<p style=\"text-align: justify;\">\u542f\u52a8Zabbix\u670d\u52a1\u5668\u548c\u4ee3\u7406\u8fdb\u7a0b\uff0c\u5e76\u4f7f\u5176\u5728\u7cfb\u7edf\u542f\u52a8\u65f6\u542f\u52a8\u3002<\/p>\n<pre># systemctl restart zabbix-server zabbix-agent apache2\r\n# systemctl enable zabbix-server zabbix-agent apache2<\/pre>\n<h2 style=\"text-align: justify;\">8\u3001\u767b\u5f55Zabbix\u670d\u52a1\u5668<\/h2>\n<p style=\"text-align: justify;\">\u5728\u6d4f\u89c8\u5668\u8f93\u5165\u201c<strong><span style=\"color: #ff0000;\">http:\/\/\u670d\u52a1\u5668IP\u5730\u5740\/zabbix<\/span><\/strong>\u201d\u8fdb\u884c\u8bbf\u95ee\u3002<\/p>\n<p style=\"text-align: justify;\">\u9ed8\u8ba4\u7684\u767b\u5f55\u5e10\u53f7\u548c\u5bc6\u7801\u4e3a\u201c<strong><span style=\"color: #ff0000;\">Admin<\/span><\/strong>\u201d\u3001\u201c<strong><span style=\"color: #ff0000;\">zabbix<\/span><\/strong>\u201c\u3002<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000; font-weight: bold; text-align: justify;\">\u4e8c\u3001\u5b89\u88c5Zabbix\u4ee3\u7406\u63d2\u4ef6<\/span><\/p>\n<div>\n<p>\u767b\u5f55\u5230pfSense\u9632\u706b\u5899\uff0c\u7136\u540e\u5bfc\u822a\u81f3\u201c \u7cfb\u7edf\u201d-&gt;\u201c\u63d2\u4ef6\u7ba1\u7406\u201d-&gt;\u201c\u53ef\u7528\u63d2\u4ef6\u201d\u3002\u641c\u7d22Zabbix\u5b57\u6bb5\uff0c\u4f1a\u6709\u51e0\u4e2a\u4e0d\u540c\u7684Zabbix-Agent\u7248\u672c\u3002\u6839\u636e\u9700\u8981\u9009\u62e9\u9002\u5408\u7684Zabbix\u7248\u672c\u3002\u5982\u679c\u670d\u52a1\u5668\u5b89\u88c5\u4e86Zabbix 5.2\uff0c\u5219\u5fc5\u987b\u9009\u62e9zabbix-agent5.2\u3002 <a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-130037.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6485\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-130037.jpg\" alt=\"\" width=\"1139\" height=\"522\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-130037.jpg 1139w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-130037-300x137.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-130037-1024x469.jpg 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-130037-768x352.jpg 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-130037-500x229.jpg 500w\" sizes=\"auto, (max-width: 1139px) 100vw, 1139px\" \/><\/a><\/p>\n<h1 style=\"text-align: justify;\">\u4e8c\u3001\u914d\u7f6eZabbix\u4ee3\u7406<\/h1>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u9700\u8981\u914d\u7f6eZabbix\u4ee3\u7406\u5e76\u5c06\u5176\u6307\u5411\u6211\u4eec\u7684\u670d\u52a1\u5668\u3002\u5bfc\u822a\u5230\u670d\u52a1-&gt; Zabbix\u4ee3\u7406\u3002\u9009\u4e2d\u201c \u542f\u7528Zabbix\u4ee3\u7406\u670d\u52a1\u201d\u9009\u9879\uff0c\u7136\u540e\u8f93\u5165Zabbix\u670d\u52a1\u5668\u7684IP\u5730\u5740\u3001\u670d\u52a1\u5668\u6d3b\u52a8\uff0c\u4e3b\u673a\u540d\u8f93\u5165pfSense\u9632\u706b\u5899\u7684FQDN\uff0c\u4e3a\u4e86\u6ee1\u8db3\u540e\u9762Zabbix\u670d\u52a1\u5668\u76d1\u63a7\u6a21\u677f\u7684\u8bbe\u7f6e\u8981\u6c42\uff0c\u8d85\u65f6\u503c\u8bbe\u4e3a5\uff0c\u5176\u4ed6\u8bbe\u7f6e\u91c7\u7528\u9ed8\u8ba4\u503c\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002 <a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/jietu20210101-184905.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6491\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/jietu20210101-184905.jpg\" alt=\"\" width=\"1137\" height=\"1014\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/jietu20210101-184905.jpg 1137w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/jietu20210101-184905-300x268.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/jietu20210101-184905-1024x913.jpg 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/jietu20210101-184905-768x685.jpg 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/jietu20210101-184905-336x300.jpg 336w\" sizes=\"auto, (max-width: 1137px) 100vw, 1137px\" \/><\/a><\/p>\n<p>\u672c\u793a\u4f8b\u672a\u9009\u62e9\u4efb\u4f55\u52a0\u5bc6\u9009\u9879\u3002<\/p>\n<p>\u6ce8\u610f\uff0c\u4e3a\u4e86\u6ee1\u8db3\u540e\u9762Zabbix\u670d\u52a1\u5668\u76d1\u63a7\u6a21\u677f\u7684\u8bbe\u7f6e\u8981\u6c42\uff0c\u5728<strong>\u9ad8\u7ea7\u529f\u80fd&gt;User Parameters<\/strong>\u91cc\uff0c\u8bf7\u586b\u5199\u5982\u4e0b\u5185\u5bb9\uff1a<\/p>\n<pre>AllowRoot=1\r\nUserParameter=pfsense.states.max,grep <span class=\"pl-s\"><span class=\"pl-pds\">\"<\/span>limit states<span class=\"pl-pds\">\"<\/span><\/span> \/tmp\/rules.limits <span class=\"pl-k\">|<\/span> cut -f4 -d <span class=\"pl-s\"><span class=\"pl-pds\">'<\/span> <span class=\"pl-pds\">'<\/span><\/span>\r\nUserParameter=pfsense.states.current,grep <span class=\"pl-s\"><span class=\"pl-pds\">\"<\/span>current entries<span class=\"pl-pds\">\"<\/span><\/span> \/tmp\/pfctl_si_out <span class=\"pl-k\">|<\/span> tr -s <span class=\"pl-s\"><span class=\"pl-pds\">'<\/span> <span class=\"pl-pds\">'<\/span><\/span> <span class=\"pl-k\">|<\/span> cut -f4 -d <span class=\"pl-s\"><span class=\"pl-pds\">'<\/span> <span class=\"pl-pds\">'<\/span><\/span>\r\nUserParameter=pfsense.mbuf.current,netstat -m <span class=\"pl-k\">|<\/span> grep <span class=\"pl-s\"><span class=\"pl-pds\">\"<\/span>mbuf clusters<span class=\"pl-pds\">\"<\/span><\/span> <span class=\"pl-k\">|<\/span> cut -f1 -d <span class=\"pl-s\"><span class=\"pl-pds\">'<\/span> <span class=\"pl-pds\">'<\/span><\/span> <span class=\"pl-k\">|<\/span> cut -d <span class=\"pl-s\"><span class=\"pl-pds\">'<\/span>\/<span class=\"pl-pds\">'<\/span><\/span> -f1\r\nUserParameter=pfsense.mbuf.cache,netstat -m <span class=\"pl-k\">|<\/span> grep <span class=\"pl-s\"><span class=\"pl-pds\">\"<\/span>mbuf clusters<span class=\"pl-pds\">\"<\/span><\/span> <span class=\"pl-k\">|<\/span> cut -f1 -d <span class=\"pl-s\"><span class=\"pl-pds\">'<\/span> <span class=\"pl-pds\">'<\/span><\/span> <span class=\"pl-k\">|<\/span> cut -d <span class=\"pl-s\"><span class=\"pl-pds\">'<\/span>\/<span class=\"pl-pds\">'<\/span><\/span> -f2\r\nUserParameter=pfsense.mbuf.max,netstat -m <span class=\"pl-k\">|<\/span> grep <span class=\"pl-s\"><span class=\"pl-pds\">\"<\/span>mbuf clusters<span class=\"pl-pds\">\"<\/span><\/span> <span class=\"pl-k\">|<\/span> cut -f1 -d <span class=\"pl-s\"><span class=\"pl-pds\">'<\/span> <span class=\"pl-pds\">'<\/span><\/span> <span class=\"pl-k\">|<\/span> cut -d <span class=\"pl-s\"><span class=\"pl-pds\">'<\/span>\/<span class=\"pl-pds\">'<\/span><\/span> -f4\r\nUserParameter=pfsense.discovery[<span class=\"pl-k\">*<\/span>],\/usr\/local\/bin\/php \/root\/scripts\/pfsense_zbx.php discovery <span class=\"pl-smi\">$1<\/span>\r\nUserParameter=pfsense.value[<span class=\"pl-k\">*<\/span>],\/usr\/local\/bin\/php \/root\/scripts\/pfsense_zbx.php <span class=\"pl-smi\">$1<\/span> <span class=\"pl-smi\">$2<\/span> <span class=\"pl-smi\">$3<\/span><\/pre>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/jietu20210101-185012.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6492\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/jietu20210101-185012.jpg\" alt=\"\" width=\"1140\" height=\"1000\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/jietu20210101-185012.jpg 1140w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/jietu20210101-185012-300x263.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/jietu20210101-185012-1024x898.jpg 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/jietu20210101-185012-768x674.jpg 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/jietu20210101-185012-342x300.jpg 342w\" sizes=\"auto, (max-width: 1140px) 100vw, 1140px\" \/><\/a><\/p>\n<h1>\u4e09\u3001\u6dfb\u52a0\u76d1\u63a7\u811a\u672c<\/h1>\n<p><a style=\"text-decoration-line: underline;\" href=\"https:\/\/github.com\/rbicelli\/pfsense-zabbix-template\">GitHub<\/a>\u4e0b\u8f7d\u9002\u7528pfSense\u7684\u76d1\u63a7\u6a21\u677f\uff0c\u5982\u679c\u4e0d\u80fd\u8bbf\u95eeGitHup\uff0c\u70b9<a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/pfsense-zabbix-template-master.zip\">\u8fd9\u91cc<\/a>\u672c\u5730\u4e0b\u8f7d\uff0c\u89e3\u538b\u7f29\u5907\u7528\uff0c\u8be5\u6a21\u677f\u7684\u4f7f\u7528\u8bf4\u660e\u8be6\u89c1README.md\u6587\u4ef6\u3002<\/p>\n<p>\u8fdb\u5165pfSense\u7684shell\u73af\u5883\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>mkdir \/root\/scripts\r\ncurl -o \/root\/scripts\/pfsense_zbx.php https:\/\/raw.githubusercontent.com\/rbicelli\/pfsense-zabbix-template\/master\/pfsense_zbx.php<\/pre>\n<p>\u5982\u679c\u4f60\u7684\u7f51\u7edc\u73af\u5883\u4e0d\u80fd\u6b63\u5e38\u8bbf\u95eeGitHup\uff0c\u53ef\u4ee5\u4f7f\u7528Winscp\u5c06\u538b\u7f29\u5305\u91cc\u7684pfsense_zbx.php\u6587\u4ef6\u624b\u52a8\u4e0a\u4f20\u5230\/root\/scripts\u76ee\u5f55\u3002<\/p>\n<h1 style=\"text-align: justify;\">\u56db\u3001\u6dfb\u52a0\u9632\u706b\u5899\u89c4\u5219<\/h1>\n<p style=\"text-align: justify;\">\u5728\u5185\u7f51\u8bbf\u95ee\uff0c\u65e0\u9700\u6dfb\u52a0\u4efb\u4f55\u9632\u706b\u5899\u89c4\u5219\u3002\u5982\u679cZabbix\u670d\u52a1\u5668\u5728\u5916\u90e8\u7f51\u7edc\uff0c\u5fc5\u987b\u5728WAN\u63a5\u53e3\u4e0a\u6dfb\u52a0\u9632\u706b\u5899\u89c4\u5219\uff0c\u4ee5\u5141\u8bb8Zabbix\u4e3b\u673a\u8bbf\u95eepfSense\u768410050\u7aef\u53e3\u3002\u8f6c\u5230\u9632\u706b\u5899-&gt;\u89c4\u5219-&gt;WAN\uff0c\u6dfb\u52a0\u4e00\u4e2a\u65b0\u89c4\u5219\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002<span id=\"ezoic-pub-ad-placeholder-121\"><\/span><span id=\"ezoic-pub-ad-placeholder-130\"><\/span><\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-125557.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6482\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-125557.jpg\" alt=\"\" width=\"1134\" height=\"950\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-125557.jpg 1134w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-125557-300x251.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-125557-1024x858.jpg 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-125557-768x643.jpg 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-125557-358x300.jpg 358w\" sizes=\"auto, (max-width: 1134px) 100vw, 1134px\" \/><\/a> <a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-125623.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6483\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-125623.jpg\" alt=\"\" width=\"1155\" height=\"245\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-125623.jpg 1155w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-125623-300x64.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-125623-1024x217.jpg 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-125623-768x163.jpg 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-125623-500x106.jpg 500w\" sizes=\"auto, (max-width: 1155px) 100vw, 1155px\" \/><\/a><\/p>\n<h1 style=\"text-align: justify;\">\u4e94\u3001\u6dfb\u52a0\u4e3b\u673a\u5230Zabbix<\/h1>\n<p style=\"text-align: justify;\">\u8981\u4f7f\u7528Zabbix\u76d1\u89c6pfSense\uff0c\u6211\u4eec\u9700\u8981\u5c06\u5b83\u6dfb\u52a0\u5230Zabbix\u670d\u52a1\u5668\u4e2d\u3002\u5728\u6dfb\u52a0\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u5148\u6dfb\u52a0\u9002\u7528pfSense\u7684\u76d1\u63a7\u6a21\u677f\u3002\u767b\u5f55\u5230Zabbix\uff0c\u5bfc\u822a\u5230\u914d\u7f6e-&gt;\u6a21\u677f\uff0c\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684\u5bfc\u5165\uff0c\u9009\u4e2d\u7b2c\u56db\u6b65\u4e0b\u8f7d\u7684\u538b\u7f29\u5305\u4e2d\u7684\u4e24\u4e2axml\u6587\u4ef6\uff0c\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-122528.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6471\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-122528.jpg\" alt=\"\" width=\"1493\" height=\"336\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-122528.jpg 1493w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-122528-300x68.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-122528-1024x230.jpg 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-122528-768x173.jpg 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-122528-500x113.jpg 500w\" sizes=\"auto, (max-width: 1493px) 100vw, 1493px\" \/><\/a><\/p>\n<p style=\"text-align: left;\">\u4e0b\u9762\u6dfb\u52a0\u4e3b\u673a\u3002\u5bfc\u822a\u5230\u914d\u7f6e-&gt;\u4e3b\u673a\uff0c\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684\u521b\u5efa\u4e3b\u673a\uff0c\u6839\u636e\u63d0\u793a\u8f93\u5165\u5404\u9879\u53c2\u6570\u3002\u8f93\u5165pfSense\u4e3b\u673a\u540d\uff0c\u53ef\u89c1\u540d\u79f0\uff0c\u6dfb\u52a0\u5408\u9002\u7684\u7ec4\uff08\u53ef\u4ee5\u81ea\u5df1\u65b0\u5efa\uff09\u3002\u5728Interfaces\u4e0b\u9762\u5355\u51fb\u6dfb\u52a0\uff0c\u7136\u540e\u8f93\u5165pfSense\u7684IP\u5730\u5740\u3001\u8bbf\u95ee\u7aef\u53e3\uff0c\u70b9\u51fb\u66f4\u65b0\u3002 <a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-123105.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6472\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-123105.jpg\" alt=\"\" width=\"1064\" height=\"528\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-123105.jpg 1064w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-123105-300x149.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-123105-1024x508.jpg 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-123105-768x381.jpg 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-123105-500x248.jpg 500w\" sizes=\"auto, (max-width: 1064px) 100vw, 1064px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><span id=\"ezoic-pub-ad-placeholder-131\"><\/span>\u8f6c\u5230\u6a21\u677f\u9009\u9879\u5361\u5e76\u94fe\u63a5\u65b0\u6a21\u677f\u3002\u9009\u62e9pfsense Active\u548cpfsense active:OpenVPN server user Auth\uff0c\u5355\u51fb\u6dfb\u52a0\u3002\u5b8c\u6210\u6b64\u64cd\u4f5c\u540e\uff0c\u7b49\u5f85\u7cfb\u7edf\u6536\u96c6\u7edf\u8ba1\u6570\u636e\uff0c\u8be5\u8fc7\u7a0b\u53ef\u80fd\u9700\u8981\u82b1\u8d39\u6570\u5206\u949f\u3002<span id=\"ezoic-pub-ad-placeholder-123\"><\/span><\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-224948.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6496\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-224948.jpg\" alt=\"\" width=\"973\" height=\"333\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-224948.jpg 973w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-224948-300x103.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-224948-768x263.jpg 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-224948-500x171.jpg 500w\" sizes=\"auto, (max-width: 973px) 100vw, 973px\" \/><\/a><\/p>\n<h1 style=\"text-align: justify;\">\u4e94<span style=\"color: #000000; font-weight: bold;\">\u3001\u4f7f\u7528Zabbix\u76d1\u63a7pfSense<\/span><\/h1>\n<p style=\"text-align: justify;\">\u5b8c\u6210\u6240\u6709\u64cd\u4f5c\u540e\uff0c\u56de\u5230\u914d\u7f6e-&gt;\u4e3b\u673a\uff0c\u5c06\u770b\u5230\u9632\u706b\u5899\u663e\u793a\u5176\u6240\u6709\u5e94\u7528\u7a0b\u5e8f\uff0c\u9879\u76ee\uff0c\u89e6\u53d1\u5668\uff0c\u56fe\u5f62\u7b49\u3002\u5355\u51fb\u56fe\u5f62\u53ef\u67e5\u770b\u9632\u706b\u5899\u7684\u5404\u9879\u72b6\u6001\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-123914.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6475\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-123914.jpg\" alt=\"\" width=\"1494\" height=\"483\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-123914.jpg 1494w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-123914-300x97.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-123914-1024x331.jpg 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-123914-768x248.jpg 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-123914-500x162.jpg 500w\" sizes=\"auto, (max-width: 1494px) 100vw, 1494px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u5bfc\u822a\u5230\u76d1\u6d4b -&gt;\u4e3b\u673a\uff0c\u9009\u62e9pfSense\u9632\u706b\u5899\u548c\u8981\u67e5\u770b\u7684\u56fe\u8868\u3002\u5982\u679c\u6b63\u786e\u5b8c\u6210\u6240\u6709\u64cd\u4f5c\uff0c\u5219\u4f1a\u663e\u793a\u4e00\u4e9b\u56fe\u8868\u6570\u636e\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-123658.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6474\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-123658.jpg\" alt=\"\" width=\"1503\" height=\"490\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-123658.jpg 1503w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-123658-300x98.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-123658-1024x334.jpg 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-123658-768x250.jpg 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-123658-500x163.jpg 500w\" sizes=\"auto, (max-width: 1503px) 100vw, 1503px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-124138.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6476\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-124138.jpg\" alt=\"\" width=\"1314\" height=\"499\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-124138.jpg 1314w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-124138-300x114.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-124138-1024x389.jpg 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-124138-768x292.jpg 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/Jietu20210101-124138-500x190.jpg 500w\" sizes=\"auto, (max-width: 1314px) 100vw, 1314px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-124355.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6478\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-124355.jpg\" alt=\"\" width=\"1305\" height=\"761\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-124355.jpg 1305w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-124355-300x175.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-124355-1024x597.jpg 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-124355-768x448.jpg 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/01\/Jietu20210101-124355-500x292.jpg 500w\" sizes=\"auto, (max-width: 1305px) 100vw, 1305px\" \/><\/a><\/p>\n<p>\u81f3\u6b64\uff0cZabbix\u76d1\u63a7pfSense\u914d\u7f6e\u5b8c\u6210\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Zabbix\u662f\u4e00\u4e2a\u9ad8\u5ea6\u96c6\u6210\u7684\u4f01\u4e1a\u7ea7\u5f00\u6e90\u7f51\u7edc\u76d1\u63a7\u89e3\u51b3\u65b9\u6848\uff0c\u63d0\u4f9b\u5206\u5e03\u5f0f\u76d1\u63a7\u4ee5\u53ca\u96c6\u4e2d\u7684 &hellip; <a href=\"https:\/\/blog.pfchina.org\/?p=2015\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[154],"class_list":["post-2015","post","type-post","status-publish","format-standard","hentry","category-pfsense","tag-zabbix"],"_links":{"self":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/2015","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2015"}],"version-history":[{"count":0,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/2015\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2015"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}