<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://www.ichiayi.com/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>Jonathan&#039;s Wiki 筆記 - tech:zabbix</title>
        <description></description>
        <link>https://www.ichiayi.com/</link>
        <lastBuildDate>Fri, 05 Jun 2026 22:57:29 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://www.ichiayi.com/_media/wiki/dokuwiki.svg</url>
            <title>Jonathan&#039;s Wiki 筆記</title>
            <link>https://www.ichiayi.com/</link>
        </image>
        <item>
            <title>HAProxy 納入 Zabbix 監控</title>
            <link>https://www.ichiayi.com/tech/zabbix/haproxy</link>
            <description>HAProxy 納入 Zabbix 監控

	*  Prerequisites
		*  Zabbix Server &gt;= 2.x
		*  Zabbix Frontend &gt;= 2.x
		*  HAProxy &gt;= 1.3
		*  Socat


@HAProxy Server 安裝程序

	*  新增 userparameter_haproxy.conf 

vi /etc/zabbix/zabbix_agentd.d/userparameter_haproxy.conf</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 25 May 2015 11:35:12 +0000</pubDate>
        </item>
        <item>
            <title>KVM 納入 Zabbix 監控</title>
            <link>https://www.ichiayi.com/tech/zabbix/kvm</link>
            <description>KVM 納入 Zabbix 監控

@KVM Server 設定程序

	*  

cd /usr/local/bin/
wget https://github.com/bushvin/zabbix-kvm-res/raw/master/bin/zabbix-kvm-res.py
chmod a+x zabbix-kvm-res.py
cd /etc/zabbix/zabbix_agentd.d
wget https://github.com/bushvin/zabbix-kvm-res/raw/master/zabbix_agentd.conf/UserParameters
service zabbix-agent restart</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 30 Oct 2016 03:23:41 +0000</pubDate>
        </item>
        <item>
            <title>nginx 納入 Zabbix 監控</title>
            <link>https://www.ichiayi.com/tech/zabbix/ngnix</link>
            <description>nginx 納入 Zabbix 監控

@nginx Server 設定程序

	*  設定 nginx 提供狀態頁面

vi /etc/nginx/conf.d/default.conf


:
    location / {
        root   /usr/share/nginx/html;
        index  index.html index.htm;
    }

    location /nginx_status {
        stub_status on;
        access_log   off;
        allow 127.0.0.1;
        deny all;
    }

    #error_page  404              /404.html;
:</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 06 Oct 2015 12:35:13 +0000</pubDate>
        </item>
        <item>
            <title>openvpn 納入 Zabbix 監控</title>
            <link>https://www.ichiayi.com/tech/zabbix/openvpn</link>
            <description>openvpn 納入 Zabbix 監控

@openvpn Server 設定程序

	*  安裝相關的套件 

yum install zabbix-sender nc


	*  OpenVPN 設定啟用 management 功能
		*  /etc/selinux/config 內要關閉 SELINUX=disabled
		*  
vi /etc/openvpn/server.conf</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 06 Oct 2015 12:59:23 +0000</pubDate>
        </item>
        <item>
            <title>Percona 納入 Zabbix 監控</title>
            <link>https://www.ichiayi.com/tech/zabbix/percona</link>
            <description>Percona 納入 Zabbix 監控

@percona server

	*  安裝 Zabbix 版本

zabbix-release-2.4-1.el6.noarch
zabbix-2.4.5-1.el6.x86_64
zabbix-agent-2.4.5-1.el6.x86_64



yum install php php-mysql
yum install percona-zabbix-templates
cd /etc/zabbix/zabbix_agentd.d
cp -a /var/lib/zabbix/percona/templates/userparameter_percona_mysql.conf .
service zabbix-agent restart</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 26 Jun 2015 22:52:56 +0000</pubDate>
        </item>
        <item>
            <title>pgbouncer 納入 Zabbix 監控</title>
            <link>https://www.ichiayi.com/tech/zabbix/pgbouncer</link>
            <description>pgbouncer 納入 Zabbix 監控

@pgbouncer Server 設定程序

	*  新增 connection.pl 

vi /usr/local/bin/connection.pl



#!/usr/bin/perl
# Date : 19:44 2015/10/5
# Author : Jonathan Tsai &lt;tryweb@ichiayi.com&gt;
# Desc : Get connection# for Zabbix

$chkport=!defined($ARGV[0])?&quot;5432&quot;:$ARGV[0];
$mrtgline1 = `netstat -n | grep &quot;:$chkport &quot;| wc -l|awk &#039;{print\$1 - 1}&#039;`;
print($mrtgline1);</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 05 Oct 2015 12:14:30 +0000</pubDate>
        </item>
        <item>
            <title>[未完成] rsnapshot 納入 Zabbix 監控</title>
            <link>https://www.ichiayi.com/tech/zabbix/rsnapshot</link>
            <description>[未完成] rsnapshot 納入 Zabbix 監控

@rsnapshot Server 設定程序

@Zabbix Server 設定程序

	*  將 zbx_rsnapshot_templates.xml 匯入至 Zabbix Server → Configuration → Templates → Import

參考網址

	*  &lt;https://github.com/YetOpen/zabbix-scripts/tree/master/zabbix-rsnapshot&gt;

rsnapshot zabbix draft</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 02 Jul 2015 10:28:51 +0000</pubDate>
        </item>
        <item>
            <title>[未完成]Zabbix 納入 S.M.A.R.T 硬碟監控</title>
            <link>https://www.ichiayi.com/tech/zabbix/smart_hdd</link>
            <description>[未完成]Zabbix 納入 S.M.A.R.T 硬碟監控

@ Linux Server

@ Zabbix Server

參考網址

	*  &lt;https://mescanef.net/blog/2014/09/smart-disk-monitoring-using-zabbix/&gt;
	*  &lt;http://baptiste-wicht.com/posts/2013/12/zabbix-low-level-discovery-cores-cpus-hard-disk.html&gt;
	*  &lt;https://github.com/thecamels/zabbix&gt;

smart hdd zabbix draft</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 14 Apr 2016 06:26:22 +0000</pubDate>
        </item>
    </channel>
</rss>
